|
DPsim
|
#include <Interface.h>
Public Types | |
| typedef std::shared_ptr< Interface > | Ptr |
Public Member Functions | |
| Interface (const String &name="", spdlog::level::level_enum logLevel=spdlog::level::level_enum::info) | |
| virtual | ~Interface ()=default |
| 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) |
Public Attributes | |
| std::vector< std::tuple< CPS::AttributeBase::Ptr, UInt, bool, bool > > | mImportAttrsDpsim |
| std::vector< std::tuple< CPS::AttributeBase::Ptr, UInt > > | mExportAttrsDpsim |
Protected Attributes | |
| CPS::Logger::Log | mLog |
| String | mName |
| bool | mSyncOnSimulationStart |
| UInt | mCurrentSequenceDpsimToInterface = 1 |
| UInt | mNextSequenceInterfaceToDpsim = 1 |
| std::atomic< bool > | mOpened |
Additional Inherited Members | |
Static Public Member Functions inherited from SharedFactory< Interface > | |
| static std::shared_ptr< Interface > | make (Args &&...args) |
Definition at line 19 of file Interface.h.
| typedef std::shared_ptr<Interface> DPsim::Interface::Ptr |
Definition at line 22 of file Interface.h.
|
inline |
Definition at line 24 of file Interface.h.
|
virtualdefault |
|
virtual |
Definition at line 20 of file Interface.cpp.
|
virtual |
Definition at line 9 of file Interface.cpp.
|
pure virtual |
Implemented in DPsim::InterfaceQueued, and DPsim::InterfaceVillasQueueless.
|
inlinevirtual |
Definition at line 44 of file Interface.h.
|
pure virtual |
Implemented in DPsim::InterfaceQueued, and DPsim::InterfaceVillasQueueless.
|
pure virtual |
Implemented in DPsim::InterfaceQueued, and DPsim::InterfaceVillasQueueless.
|
virtual |
Reimplemented in DPsim::InterfaceQueued.
Definition at line 30 of file Interface.cpp.
|
pure virtual |
Implemented in DPsim::InterfaceQueued, and DPsim::InterfaceVillasQueueless.
|
pure virtual |
Function called by the Simulation to perform interface synchronization.
Implemented in DPsim::InterfaceQueued, and DPsim::InterfaceVillasQueueless.
|
protected |
Definition at line 61 of file Interface.h.
| std::vector<std::tuple<CPS::AttributeBase::Ptr, UInt> > DPsim::Interface::mExportAttrsDpsim |
Definition at line 51 of file Interface.h.
| std::vector<std::tuple<CPS::AttributeBase::Ptr, UInt, bool, bool> > DPsim::Interface::mImportAttrsDpsim |
Definition at line 49 of file Interface.h.
|
protected |
Definition at line 58 of file Interface.h.
|
protected |
Definition at line 59 of file Interface.h.
|
protected |
Definition at line 62 of file Interface.h.
|
protected |
Definition at line 63 of file Interface.h.
|
protected |
Definition at line 60 of file Interface.h.