|
| PyInterfaceVillas (py::dict config, CPS::UInt queueLength, CPS::UInt sampleLength, const CPS::String &name, CPS::UInt downsampling) |
|
| InterfaceVillas (const String &nodeConfig, UInt queueLength=512, UInt sampleLength=64, const String &name="", UInt downsampling=1) |
| create a new InterfaceVillas instance More...
|
|
void | importAttribute (CPS::AttributeBase::Ptr attr, UInt idx, Bool blockOnRead=false, Bool syncOnSimulationStart=true, const String &name="", const String &unit="") |
| configure an attribute import More...
|
|
void | exportAttribute (CPS::AttributeBase::Ptr attr, UInt idx, Bool waitForOnWrite, const String &name="", const String &unit="") |
| configure an attribute export More...
|
|
void | printVillasSignals () const |
|
| Interface (std::shared_ptr< InterfaceWorker > intf, const String &name="", UInt downsampling=1) |
|
virtual void | open () |
|
virtual void | close () |
|
virtual void | pushDpsimAttrsToQueue () |
|
virtual void | popDpsimAttrsFromQueue (bool isSync=false) |
|
virtual void | syncExports () |
|
virtual void | syncImports () |
| Function called by the Simulation to perform interface synchronization.
|
|
virtual CPS::Task::List | getTasks () |
|
void | setLogger (CPS::Logger::Log log) |
|
|
enum | AttributePacketFlags { PACKET_NO_FLAGS = 0
, PACKET_CLOSE_INTERFACE = 1
} |
|
typedef std::shared_ptr< Interface > | Ptr |
|
using | AttributePacket = struct AttributePacket { CPS::AttributeBase::Ptr value |
|
static std::shared_ptr< Interface > | make (Args &&...args) |
|
static std::shared_ptr< InterfaceVillas > | make (Args &&...args) |
|
UInt | attributeId |
|
UInt | sequenceId |
|
unsigned char | flags |
|
std::vector< std::tuple< CPS::AttributeBase::Ptr, UInt, bool, bool > > | mImportAttrsDpsim |
|
std::vector< std::tuple< CPS::AttributeBase::Ptr, UInt > > | mExportAttrsDpsim |
|
virtual void | addImport (CPS::AttributeBase::Ptr attr, bool blockOnRead=false, bool syncOnSimulationStart=true) |
|
virtual void | addExport (CPS::AttributeBase::Ptr attr) |
|
std::shared_ptr< InterfaceWorker > | mInterfaceWorker |
|
CPS::Logger::Log | mLog |
|
String | mName |
|
bool | mSyncOnSimulationStart |
|
UInt | mCurrentSequenceDpsimToInterface = 1 |
|
UInt | mNextSequenceInterfaceToDpsim = 1 |
|
UInt | mDownsampling |
|
std::atomic< bool > | mOpened |
|
std::thread | mInterfaceWriterThread |
|
std::thread | mInterfaceReaderThread |
|
std::shared_ptr< moodycamel::BlockingReaderWriterQueue< AttributePacket > > | mQueueDpsimToInterface |
|
std::shared_ptr< moodycamel::BlockingReaderWriterQueue< AttributePacket > > | mQueueInterfaceToDpsim |
|
Definition at line 15 of file pybind-dpsim-villas.cpp.
The documentation for this class was generated from the following file: