DPsim
Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
DPsim::Interface Class Referenceabstract
Inheritance diagram for DPsim::Interface:
[legend]
Collaboration diagram for DPsim::Interface:
[legend]

Public Types

typedef std::shared_ptr< InterfacePtr
 

Public Member Functions

 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)
 

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)
 

Detailed Description

Definition at line 19 of file Interface.h.


The documentation for this class was generated from the following files: