DPsim
|
Public Types | |
using | Ptr = std::shared_ptr< InterfaceWorkerVillas > |
using | Sample = struct node::Sample |
![]() | |
using | Ptr = std::shared_ptr< InterfaceWorker > |
Public Member Functions | |
InterfaceWorkerVillas (const String &nodeConfig, UInt queueLenght=512, UInt sampleLenght=64, spdlog::level::level_enum logLevel=spdlog::level::level_enum::info) | |
void | open () override |
void | close () override |
void | readValuesFromEnv (std::vector< InterfaceQueued::AttributePacket > &updatedAttrs) override |
void | readValuesFromEnv (std::vector< std::tuple< CPS::AttributeBase::Ptr, UInt, bool, bool >> &updatedAttrs) |
void | writeValuesToEnv (std::vector< InterfaceQueued::AttributePacket > &updatedAttrs) override |
void | writeValuesToEnv (std::vector< std::tuple< CPS::AttributeBase::Ptr, UInt >> &updatedAttrs) |
virtual void | configureImport (UInt attributeId, const std::type_info &type, UInt idx, const String &name="", const String &unit="") |
virtual void | configureExport (UInt attributeId, const std::type_info &type, UInt idx, Bool waitForOnWrite, const String &name="", const String &unit="") |
void | printSignals () const |
Static Public Attributes | |
static UInt | villasPriority = 0 |
static UInt | villasAffinity = 0 |
static UInt | villasHugePages = 100 |
Additional Inherited Members | |
![]() | |
static std::shared_ptr< InterfaceWorkerVillas > | make (Args &&...args) |
![]() | |
CPS::Logger::Log | mLog |
![]() | |
bool | mOpened |
UInt | mCurrentSequenceInterfaceToDpsim = 1 |
Definition at line 22 of file InterfaceWorkerVillas.h.
|
overridevirtual |
Close the interface and all connections to the environment After this has been called, no further calls to readValuesFromEnv
or writeValuesToEnv
will occur
Implements DPsim::InterfaceWorker.
Definition at line 167 of file InterfaceWorkerVillas.cpp.
|
overridevirtual |
Open the interface and set up the connection to the environment This is guaranteed to be called before any calls to readValuesFromEnv
and writeValuesToEnv
Implements DPsim::InterfaceWorker.
Definition at line 36 of file InterfaceWorkerVillas.cpp.
|
overridevirtual |
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
Implements DPsim::InterfaceWorker.
Definition at line 192 of file InterfaceWorkerVillas.cpp.
|
overridevirtual |
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
Implements DPsim::InterfaceWorker.
Definition at line 290 of file InterfaceWorkerVillas.cpp.