|
ExperimentManager script class
1.1.0.1
The Experiment Manager script class reference.
|
The cExperimentStructure class. More...
Inherits QObject, and QScriptable.
Public Slots | |
| void | resetExperimentState () |
| resetExperiment slot. More... | |
Signals | |
| void | experimentStarted () |
| experimentStarted() signal. More... | |
| void | experimentStopped () |
| experimentStopped() signal. More... | |
| void | externalTriggerRecieved () |
| externalTriggerRecieved() signal. More... | |
Public Member Functions | |
| void | clearExperiment () |
| clearExperiment slot. More... | |
| cBlockStructure * | createBlock () |
| createBlock slot. More... | |
| cObjectStructure * | createObject () |
| createObject slot. More... | |
| int | getBlockCount () const |
| getBlockCount slot. More... | |
| QList< int > | getBlockIDList () |
| getBlockIDList slot. More... | |
| cBlockStructure * | getBlockPointerByID (const int &nBlockID) |
| getBlockPointerByID slot. More... | |
| ExperimentStructuresNameSpace::strcExperimentStructureState | getCurrentExperimentState () const |
| getCurrentExperimentState slot. More... | |
| bool | getExperimentDebugMode () const |
| getExperimentDebugMode slot. More... | |
| int | getExperimentID () const |
| getExperimentID slot. More... | |
| QString | getExperimentName () const |
| getExperimentName slot. More... | |
| int | getExternalTriggerCount () const |
| getExternalTriggerCount slot. More... | |
| int | getObjectCount () const |
| getObjectCount slot. More... | |
| QList< cMethodStructure * > * | getObjectFinalizationList (const int &nObjectID) |
| getObjectFinalizationList slot. More... | |
| QList< int > | getObjectIDList () |
| getObjectIDList slot. More... | |
| QList< cMethodStructure * > * | getObjectInitializationList (const int &nObjectID) |
| getObjectInitializationList slot. More... | |
| QList< cMethodConnectionStructure * > * | getObjectMethodConnectionList (const int &nObjectID) |
| getObjectMethodConnectionList slot. More... | |
| cObjectStructure * | getObjectPointerByID (const int &nObjectID) |
| getObjectPointerByID slot. More... | |
| void | incrementExternalTrigger () |
| incrementExternalTrigger slot. More... | |
| bool | insertObject (cObjectStructure *cObject) |
| insertObject slot. More... | |
| bool | insertObjectFinalization (cMethodStructure *pObjectFinalization) |
| insertObjectFinalization slot. More... | |
| bool | insertObjectInitialization (cMethodStructure *pObjectInitialization) |
| insertObjectInitialization slot. More... | |
| bool | insertObjectMethodConnection (cMethodConnectionStructure *pMethodConnection) |
| insertObjectMethodConnection slot. More... | |
| bool | prepareExperiment (const bool &bIgnoreNoDefinedBlocks=false) |
| prepareExperiment slot. More... | |
| void | setExperimentDebugMode (const bool &bValue) |
| setExperimentDebugMode slot. More... | |
| void | setExperimentID (const int &nValue) |
| setExperimentID slot. More... | |
| void | setExperimentName (const QString &sValue) |
| setExperimentName slot. More... | |
| void | startExperiment () |
| startExperiment slot. More... | |
Properties | |
| bool | ExperimentDebugMode |
| ExperimentDebugMode property. More... | |
| int | ExperimentID |
| ExperimentID property. More... | |
| QString | ExperimentName |
| ExperimentName property. More... | |
The cExperimentStructure class.
The cExperimentStructure class is a container to store the experiment structure, it can be created/changed dynamically or loaded from a EXML file and is internally used by the ExperimentManager to store the Experiment Structure in memory.
| void cExperimentStructure::clearExperiment | ( | ) |
clearExperiment slot.
This function removes all settings in the current Experiment Structure.
| cBlockStructure* cExperimentStructure::createBlock | ( | ) |
createBlock slot.
This function constructs a new cBlockStructure structure object and inserts it in the current Experiment Structure.
| cObjectStructure* cExperimentStructure::createObject | ( | ) |
createObject slot.
This function inserts a new cObjectStructure structure in the current Experiment Structure.
|
signal |
experimentStarted() signal.
This signal is emitted when the Experiment is started.
|
signal |
experimentStopped() signal.
This signal is emitted when the Experiment is stopped.
|
signal |
externalTriggerRecieved() signal.
This signal is emitted when the Experiment Manager/Engine receives an external trigger.
| int cExperimentStructure::getBlockCount | ( | ) | const |
getBlockCount slot.
This function return the number of defined blocks in the current experiment.
| QList<int> cExperimentStructure::getBlockIDList | ( | ) |
getBlockIDList slot.
This function returns an array containing all declared Block ID's.
| cBlockStructure* cExperimentStructure::getBlockPointerByID | ( | const int & | nBlockID | ) |
getBlockPointerByID slot.
This function returns a pointer to a cBlockStructure identified by a block ID.
| nBlockID | a integer value defining the block ID from the requested Block pointer. |
|
inline |
getCurrentExperimentState slot.
This function returns a copy of the current Experiment Structure state, see ExperimentStructuresNameSpace::strcExperimentStructureState.
|
inline |
getExperimentDebugMode slot.
This function returns the current Experiment Debug mode.
|
inline |
getExperimentID slot.
This function returns the current Experiment ID.
|
inline |
getExperimentName slot.
This function returns the current Experiment Name.
| int cExperimentStructure::getExternalTriggerCount | ( | ) | const |
getExternalTriggerCount slot.
This function returns the total number of received external triggers from the experiment since it was started.
| int cExperimentStructure::getObjectCount | ( | ) | const |
getObjectCount slot.
This function return the number of defined Objects in the current experiment.
| QList<cMethodStructure*>* cExperimentStructure::getObjectFinalizationList | ( | const int & | nObjectID | ) |
getObjectFinalizationList slot.
This function returns a pointer to a cMethodStructure List containing all finalization methods for a specified object ID.
| QList<int> cExperimentStructure::getObjectIDList | ( | ) |
getObjectIDList slot.
This function returns an array containing all declared Object ID's.
| QList<cMethodStructure*>* cExperimentStructure::getObjectInitializationList | ( | const int & | nObjectID | ) |
getObjectInitializationList slot.
This function returns a pointer to a cMethodStructure List containing all initialization methods for a specified object ID.
| QList<cMethodConnectionStructure*>* cExperimentStructure::getObjectMethodConnectionList | ( | const int & | nObjectID | ) |
getObjectMethodConnectionList slot.
This function returns a pointer to a cMethodConnectionStructure List identified by a object ID.
| nObjectID | a integer value defining the Object ID from the requested Object Method connection structure list pointer. |
| cObjectStructure* cExperimentStructure::getObjectPointerByID | ( | const int & | nObjectID | ) |
getObjectPointerByID slot.
This function returns a pointer to a cObjectStructure identified by a Object ID.
| nObjectID | a integer value defining the Object ID from the requested Object pointer. |
| void cExperimentStructure::incrementExternalTrigger | ( | ) |
incrementExternalTrigger slot.
This function increments the current Experiment External trigger with 1. It is used to control the Experiment Structure.
| bool cExperimentStructure::insertObject | ( | cObjectStructure * | cObject | ) |
insertObject slot.
This function inserts a new cObjectStructure structure in the current Experiment Structure.
| cObject | a pointer to a cObjectStructure that needs to be inserted. |
| bool cExperimentStructure::insertObjectFinalization | ( | cMethodStructure * | pObjectFinalization | ) |
insertObjectFinalization slot.
This function inserts a new cMethodStructure structure finalization method in the current Experiment Structure.
| pObjectFinalization | a pointer to a cMethodStructure that needs to be inserted. |
| bool cExperimentStructure::insertObjectInitialization | ( | cMethodStructure * | pObjectInitialization | ) |
insertObjectInitialization slot.
This function inserts a new cMethodStructure structure initialization method in the current Experiment Structure.
| pObjectInitialization | a pointer to a cMethodStructure that needs to be inserted. |
| bool cExperimentStructure::insertObjectMethodConnection | ( | cMethodConnectionStructure * | pMethodConnection | ) |
insertObjectMethodConnection slot.
This function inserts a new cMethodConnection structure in the current Experiment Structure.
| pMethodConnection | a pointer to a cMethodConnectionStructure that needs to be inserted. |
| bool cExperimentStructure::prepareExperiment | ( | const bool & | bIgnoreNoDefinedBlocks = false | ) |
prepareExperiment slot.
This function prepares the current Experiment so it can be started.
| bIgnoreNoDefinedBlocks | a boolean value (default = false), if set to true than the function returns true even when there are no blocks yet defined. |
|
inlineslot |
resetExperiment slot.
This function resets the current Experiment Structure state, see ExperimentStructuresNameSpace::strcExperimentStructureState.
|
inline |
setExperimentDebugMode slot.
This function configures the Experiment Debug mode.
| bValue | a boolean value determining whether the debug mode should be enabled. |
|
inline |
setExperimentID slot.
This function sets the Experiment ID.
| nValue | a integer value containing the new Experiment ID. |
|
inline |
setExperimentName slot.
This function sets the Experiment Name.
| sValue | a string value containing the new Experiment File Name. |
|
inline |
startExperiment slot.
This function starts the current Experiment and will then wait for an external trigger, see cExperimentStructure::incrementExternalTrigger().
|
readwrite |
ExperimentDebugMode property.
Use this property to set or retrieve the Experiment Debug Mode.
|
readwrite |
ExperimentID property.
Use this property to set or retrieve the Experiment ID.
|
readwrite |
ExperimentName property.
Use this property to set or retrieve the Experiment Name.
1.8.10