|
| | Interface (const String &name="", spdlog::level::level_enum logLevel=spdlog::level::level_enum::info) |
| |
|
virtual void | open ()=0 |
| |
|
virtual void | close ()=0 |
| |
|
virtual void | syncExports ()=0 |
| |
| virtual void | syncImports ()=0 |
| | Function called by the Simulation to perform interface synchronization.
|
| |
|
virtual CPS::Task::List | getTasks ()=0 |
| |
| virtual void | setLogger (CPS::Logger::Log log) |
| |
| virtual String & | getName () |
| |
| virtual void | addImport (CPS::AttributeBase::Ptr attr, bool blockOnRead=false, bool syncOnSimulationStart=true) |
| |
| virtual void | addExport (CPS::AttributeBase::Ptr attr) |
| |
|
| static std::shared_ptr< Interface > | make (Args &&...args) |
| |
Definition at line 19 of file Interface.h.
◆ Ptr
| typedef std::shared_ptr<Interface> DPsim::Interface::Ptr |
◆ Interface()
| DPsim::Interface::Interface |
( |
const String & | name = "", |
|
|
spdlog::level::level_enum | logLevel = spdlog::level::level_enum::info ) |
|
inline |
◆ addExport()
◆ addImport()
| void DPsim::Interface::addImport |
( |
CPS::AttributeBase::Ptr | attr, |
|
|
bool | blockOnRead = false, |
|
|
bool | syncOnSimulationStart = true ) |
|
virtual |
◆ getName()
| virtual String & DPsim::Interface::getName |
( |
| ) |
|
|
inlinevirtual |
◆ setLogger()
| void DPsim::Interface::setLogger |
( |
CPS::Logger::Log | log | ) |
|
|
virtual |
◆ syncImports()
| virtual void DPsim::Interface::syncImports |
( |
| ) |
|
|
pure virtual |
◆ mCurrentSequenceDpsimToInterface
| UInt DPsim::Interface::mCurrentSequenceDpsimToInterface = 1 |
|
protected |
◆ mExportAttrsDpsim
◆ mImportAttrsDpsim
◆ mLog
| CPS::Logger::Log DPsim::Interface::mLog |
|
protected |
◆ mName
| String DPsim::Interface::mName |
|
protected |
◆ mNextSequenceInterfaceToDpsim
| UInt DPsim::Interface::mNextSequenceInterfaceToDpsim = 1 |
|
protected |
◆ mOpened
| std::atomic<bool> DPsim::Interface::mOpened |
|
protected |
◆ mSyncOnSimulationStart
| bool DPsim::Interface::mSyncOnSimulationStart |
|
protected |
The documentation for this class was generated from the following files: