#include <Generator.h>
|
| | CGenerator (std::string &sName, GenType type) |
| | Abstract class constructor to initialize common components. More...
|
| |
| GenType | GetType () const override |
| | Gets type of the generator. More...
|
| |
| const std::string & | GetName () const override |
| | Gets name. More...
|
| |
| void | SetName (std::string &sName) override |
| | Sets name. More...
|
| |
| void | SetDelay (int nD) override |
| | Sets the delay in samples. More...
|
| |
| void | SaveHistory () override |
| | Internally saves a current state in relation with the output signal generation. More...
|
| |
| void | LoadHistory () override |
| | Restores an internal state saved with SaveHistory() method. More...
|
| |
| virtual void | LoadState (boost::property_tree::ptree::value_type const &vParams)=0 |
| | Sets generator parameters. More...
|
| |
| virtual void | SaveState (boost::property_tree::ptree &pt) const =0 |
| |
| virtual double | GenerateNext ()=0 |
| | Used to generate next signal sample. More...
|
| |
|
virtual void | Reset ()=0 |
| | Resets the generator to the enter state.
|
| |
|
|
const GenType | m_Type |
| | generator type
|
| |
|
std::string | m_sName |
| | generator name
|
| |
|
int | m_nI |
| | number of sample in a sequence
|
| |
|
int | m_nIBack |
| | saved state of the m_nI variable
|
| |
|
int | m_nDelay |
| | delay of the output in samples
|
| |
Abstract class to implement common functionality of generator classes.
- Class is connected to SUniqueNameController to provide it with unique name registration.
| CGenerator::CGenerator |
( |
std::string & |
sName, |
|
|
GenType |
type |
|
) |
| |
Abstract class constructor to initialize common components.
- Parameters
-
| [in] | sName | Proposed name of the generator to register. |
| [in] | type | Type of the generator. |
| const std::string & CGenerator::GetName |
( |
| ) |
const |
|
overridevirtual |
Gets name.
- Returns
- Name of the object.
Implements IGenerator.
| GenType CGenerator::GetType |
( |
| ) |
const |
|
overridevirtual |
Gets type of the generator.
- Returns
- Type of the generator object.
Implements IGenerator.
| void CGenerator::LoadHistory |
( |
| ) |
|
|
overridevirtual |
| virtual void CGenerator::LoadState |
( |
boost::property_tree::ptree::value_type const & |
vParams | ) |
|
|
pure virtual |
| void CGenerator::SaveHistory |
( |
| ) |
|
|
overridevirtual |
| virtual void CGenerator::SaveState |
( |
boost::property_tree::ptree & |
pt | ) |
const |
|
pure virtual |
| void CGenerator::SetDelay |
( |
int |
nD | ) |
|
|
overridevirtual |
Sets the delay in samples.
- Parameters
-
Implements IGenerator.
| void CGenerator::SetName |
( |
std::string & |
sName | ) |
|
|
overridevirtual |
Sets name.
- Parameters
-
| [in] | sName | Name of the object instance to register. |
Implements IGenerator.
The documentation for this class was generated from the following files:
- SimulationChain/Source/Generator.h
- SimulationChain/Source/Generator.cpp