|
| virtual void | readValuesFromEnv (std::vector< InterfaceQueued::AttributePacket > &updatedAttrs)=0 |
| |
| virtual void | writeValuesToEnv (std::vector< InterfaceQueued::AttributePacket > &updatedAttrs)=0 |
| |
| virtual void | open ()=0 |
| |
| virtual void | close ()=0 |
| |
Definition at line 18 of file InterfaceWorker.h.
◆ Ptr
◆ close()
| virtual void DPsim::InterfaceWorker::close |
( |
| ) |
|
|
pure virtual |
Close the interface and all connections to the environment After this has been called, no further calls to readValuesFromEnv or writeValuesToEnv will occur
Implemented in DPsim::InterfaceWorkerVillas.
◆ open()
| virtual void DPsim::InterfaceWorker::open |
( |
| ) |
|
|
pure virtual |
Open the interface and set up the connection to the environment This is guaranteed to be called before any calls to readValuesFromEnv and writeValuesToEnv
Implemented in DPsim::InterfaceWorkerVillas.
◆ readValuesFromEnv()
| virtual void DPsim::InterfaceWorker::readValuesFromEnv |
( |
std::vector< InterfaceQueued::AttributePacket > & | updatedAttrs | ) |
|
|
pure virtual |
Function that will be called on loop in its separate thread. Should be used to read values from the environment and push them into updatedAttrs updatedAttrs will always be empty when this function is invoked
Implemented in DPsim::InterfaceWorkerVillas.
◆ writeValuesToEnv()
| virtual void DPsim::InterfaceWorker::writeValuesToEnv |
( |
std::vector< InterfaceQueued::AttributePacket > & | updatedAttrs | ) |
|
|
pure virtual |
Function that will be called on loop in its separate thread. Should be used to read values from updatedAttrs and write them to the environment The updatedAttrs list will not be cleared by the caller in between function calls When this function is called, updatedAttrs will include at least one value.
Implemented in DPsim::InterfaceWorkerVillas.
◆ mCurrentSequenceInterfaceToDpsim
| UInt DPsim::InterfaceWorker::mCurrentSequenceInterfaceToDpsim = 1 |
|
protected |
◆ mLog
| CPS::Logger::Log DPsim::InterfaceWorker::mLog |
◆ mOpened
| bool DPsim::InterfaceWorker::mOpened |
|
protected |
The documentation for this class was generated from the following file: