QCSDataEngineSim Class
Simulation data produced by math functions. More...
Header: | #include <QCSDataEngineSim> |
Inherits: | QCSDataEngine |
Public Functions
QCSDataEngineSim(QObject *parent = Q_NULLPTR) | |
virtual | ~QCSDataEngineSim() |
Reimplemented Public Functions
virtual ObjectModel * | allData() |
virtual void | close(QCSData *data) |
virtual void | create(QCSData *data) |
virtual QString | description() |
virtual QString | name() |
virtual void | setValue(QCSData *data, const QVariant value) |
- 6 public functions inherited from QCSDataEngine
- 32 public functions inherited from QObject
Additional Inherited Members
- 3 properties inherited from QCSDataEngine
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 1 signal inherited from QCSDataEngine
- 2 signals inherited from QObject
- 1 public variable inherited from QObject
- 10 static public members inherited from QObject
- 9 protected functions inherited from QObject
- 2 protected variables inherited from QObject
Detailed Description
Simulation data produced by math functions.
This data engine source has a sim:// scheme, followed by the data name. The following data names are available:
Data name | Data type | Data Count | Update | Description |
---|---|---|---|---|
random | double | 1 | 1 Hz | radom number between 0.0 and 1.0. |
sin | double | 1 | 1 Hz | sinous function of an interal integer counter. |
wave | double | 20 | 1 Hz | sinous of an integer array, in which the first element is the internal counter. |
enum | enum | 1 | Passive | Enum value with two states, OFF and ON. |
Member Function Documentation
QCSDataEngineSim::QCSDataEngineSim(QObject *parent = Q_NULLPTR)
Default constructs an instance of QCSDataEngineSim.
[virtual]
QCSDataEngineSim::~QCSDataEngineSim()
Destroys the instance of QCSDataEngineSim. The destructor is virtual.
[virtual]
ObjectModel *QCSDataEngineSim::allData()
Reimplemented from QCSDataEngine::allData().
[virtual]
void QCSDataEngineSim::close(QCSData *data)
Reimplemented from QCSDataEngine::close().
[virtual]
void QCSDataEngineSim::create(QCSData *data)
Reimplemented from QCSDataEngine::create().
[virtual]
QString QCSDataEngineSim::description()
Reimplemented from QCSDataEngine::description().
[virtual]
QString QCSDataEngineSim::name()
Reimplemented from QCSDataEngine::name().
Returns the source scheme sim.
[virtual]
void QCSDataEngineSim::setValue(QCSData *data, const QVariant value)
Reimplemented from QCSDataEngine::setValue().