|
| | 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 |
| |
Definition at line 22 of file InterfaceWorkerVillas.h.
◆ Ptr
◆ Sample
| using DPsim::InterfaceWorkerVillas::Sample = struct node::Sample |
◆ InterfaceWorkerVillas()
| InterfaceWorkerVillas::InterfaceWorkerVillas |
( |
const String & | nodeConfig, |
|
|
UInt | queueLenght = 512, |
|
|
UInt | sampleLenght = 64, |
|
|
spdlog::level::level_enum | logLevel = spdlog::level::level_enum::info ) |
◆ close()
| void InterfaceWorkerVillas::close |
( |
| ) |
|
|
overridevirtual |
◆ configureExport()
| void InterfaceWorkerVillas::configureExport |
( |
UInt | attributeId, |
|
|
const std::type_info & | type, |
|
|
UInt | idx, |
|
|
Bool | waitForOnWrite, |
|
|
const String & | name = "", |
|
|
const String & | unit = "" ) |
|
virtual |
◆ configureImport()
| void InterfaceWorkerVillas::configureImport |
( |
UInt | attributeId, |
|
|
const std::type_info & | type, |
|
|
UInt | idx, |
|
|
const String & | name = "", |
|
|
const String & | unit = "" ) |
|
virtual |
◆ open()
| void InterfaceWorkerVillas::open |
( |
| ) |
|
|
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.
◆ printSignals()
| void InterfaceWorkerVillas::printSignals |
( |
| ) |
const |
◆ readValuesFromEnv()
| void InterfaceWorkerVillas::readValuesFromEnv |
( |
std::vector< InterfaceQueued::AttributePacket > & | updatedAttrs | ) |
|
|
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.
◆ writeValuesToEnv()
| void InterfaceWorkerVillas::writeValuesToEnv |
( |
std::vector< InterfaceQueued::AttributePacket > & | updatedAttrs | ) |
|
|
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.
◆ villasAffinity
| UInt InterfaceWorkerVillas::villasAffinity = 0 |
|
static |
◆ villasHugePages
| UInt InterfaceWorkerVillas::villasHugePages = 100 |
|
static |
◆ villasPriority
| UInt InterfaceWorkerVillas::villasPriority = 0 |
|
static |
The documentation for this class was generated from the following files: