OMSimulatorLib
The OMSimulator project is a FMI-based co-simulation environment that supports ordinary (i.e., non-delayed) and TLM connections.
|
#include <Component.h>
Public Member Functions | |
virtual | ~Component () |
virtual oms_status_enu_t | addSignalsToResults (const char *regex)=0 |
virtual oms_status_enu_t | exportToSSD (pugi::xml_node &node, Snapshot &snapshot, std::string variantName) const =0 |
virtual oms_status_enu_t | exportToSSV (pugi::xml_node &ssvNode) |
virtual void | getFilteredUnitDefinitionsToSSD (std::map< std::string, std::map< std::string, std::string >> &unitDefinitions) |
virtual void | getFilteredEnumerationDefinitionsToSSD (std::map< std::string, std::map< std::string, std::string >> &enumerationDefinitions) |
virtual oms_status_enu_t | initialize ()=0 |
virtual oms_status_enu_t | instantiate ()=0 |
virtual oms_status_enu_t | registerSignalsForResultFile (ResultWriter &resultFile)=0 |
virtual oms_status_enu_t | removeSignalsFromResults (const char *regex)=0 |
virtual oms_status_enu_t | reset ()=0 |
virtual oms_status_enu_t | terminate ()=0 |
virtual oms_status_enu_t | updateSignals (ResultWriter &resultWriter)=0 |
virtual Variable * | getVariable (const ComRef &cref)=0 |
virtual bool | getCanGetAndSetState () |
virtual const FMUInfo * | getFMUInfo () const |
virtual oms_status_enu_t | deleteStartValue (const ComRef &cref) |
virtual std::vector< Values > | getValuesResources () |
virtual Values & | getValues () |
virtual oms_status_enu_t | setValuesResources (Values &values) |
virtual oms_status_enu_t | updateOrDeleteStartValueInReplacedComponent (std::vector< std::string > &warningList) |
virtual oms_status_enu_t | exportToSSMTemplate (pugi::xml_node &ssmNode) |
virtual oms_status_enu_t | exportToSSVTemplate (pugi::xml_node &ssvNode, Snapshot &snapshot) |
virtual oms_status_enu_t | freeState () |
virtual oms_status_enu_t | getBoolean (const ComRef &cref, bool &value) |
virtual oms_status_enu_t | getInteger (const ComRef &cref, int &value) |
virtual oms_status_enu_t | getReal (const ComRef &cref, double &value) |
virtual oms_status_enu_t | getString (const ComRef &cref, std::string &value) |
virtual oms_status_enu_t | getRealOutputDerivative (const ComRef &cref, SignalDerivative &der) |
virtual oms_status_enu_t | getDirectionalDerivative (const ComRef &unknownCref, const ComRef &knownCref, double &value) |
virtual oms_status_enu_t | restoreState () |
virtual oms_status_enu_t | saveState () |
virtual oms_status_enu_t | setBoolean (const ComRef &cref, bool value) |
virtual oms_status_enu_t | setFaultInjection (const ComRef &signal, oms_fault_type_enu_t faultType, double faultValue) |
virtual oms_status_enu_t | setInteger (const ComRef &cref, int value) |
virtual oms_status_enu_t | setReal (const ComRef &cref, double value) |
virtual oms_status_enu_t | setString (const ComRef &cref, const std::string &value) |
virtual oms_status_enu_t | setUnit (const ComRef &cref, const std::string &value) |
virtual oms_status_enu_t | setRealInputDerivative (const ComRef &cref, const SignalDerivative &der) |
virtual oms_status_enu_t | stepUntil (double stopTime) |
virtual oms_status_enu_t | newResources (const std::string &ssvFileName, const std::string &ssmFileName, bool externalResources) |
virtual oms_status_enu_t | addResources (std::string &filename) |
virtual oms_status_enu_t | deleteReferencesInSSD (const std::string &filename) |
virtual oms_status_enu_t | deleteResourcesInSSP (const std::string &filename) |
const ComRef & | getCref () const |
ComRef | getFullCref () const |
Element * | getElement () |
Connector * | getConnector (const ComRef &cref) |
Connector ** | getConnectors () |
oms_status_enu_t | deleteConnector (const ComRef &cref) |
void | getAllResources (std::vector< std::string > &resources) const |
const std::string & | getPath () const |
const std::string & | getTempDir () const |
void | setPath (const std::string &newPath) |
void | setTempDir (const std::string &tempDir) |
oms_component_enu_t | getType () const |
void | fetchAllVars (bool enableOption) |
System * | getParentSystem () const |
Model & | getModel () const |
void | setGeometry (const ssd::ElementGeometry &geometry) |
oms_status_enu_t | addTLMBus (const oms::ComRef &cref, oms_tlm_domain_t domain, const int dimensions, const oms_tlm_interpolation_t interpolation) |
oms::TLMBusConnector * | getTLMBusConnector (const oms::ComRef &cref) |
TLMBusConnector ** | getTLMBusConnectors () |
oms_status_enu_t | addConnectorToTLMBus (const ComRef &busCref, const ComRef &connectorCref, const std::string type) |
oms_status_enu_t | deleteConnectorFromTLMBus (const ComRef &busCref, const ComRef &connectorCref) |
const DirectedGraph & | getInitialUnknownsGraph () |
const DirectedGraph & | getOutputsGraph () |
oms_status_enu_t | rename (const ComRef &newCref) |
rename submodules, e.g., fmu:s More... | |
virtual void | getFilteredSignals (std::vector< Connector > &filteredSignals) const =0 |
Protected Member Functions | |
Component (const ComRef &cref, oms_component_enu_t type, System *parentSystem, const std::string &path) | |
Component (Component const &) | |
not implemented More... | |
Component & | operator= (Component const &) |
not implemented More... | |
virtual oms_status_enu_t | renameValues (const ComRef &oldCref, const ComRef &newCref) |
Protected Attributes | |
DirectedGraph | initialUnknownsGraph |
DirectedGraph | outputsGraph |
Element | element |
std::vector< Connector * > | connectors |
std::vector< TLMBusConnector * > | tlmbusconnectors |
Clock | clock |
unsigned int | clock_id |
bool | fetchAllVars_ = false |
Private Attributes | |
System * | parentSystem |
ComRef | cref |
oms_component_enu_t | type |
std::string | path |
resource file (fmu, mat) More... | |
std::string | tempDir |
unzipped fmu More... | |
Values | values |
|
virtual |
|
protected |
|
protected |
not implemented
oms_status_enu_t oms::Component::addConnectorToTLMBus | ( | const ComRef & | busCref, |
const ComRef & | connectorCref, | ||
const std::string | type | ||
) |
|
inlinevirtual |
|
pure virtual |
Implemented in oms::ComponentFMUCS, oms::ComponentFMUME, oms::ComponentTable, and oms::ExternalModel.
oms_status_enu_t oms::Component::addTLMBus | ( | const oms::ComRef & | cref, |
oms_tlm_domain_t | domain, | ||
const int | dimensions, | ||
const oms_tlm_interpolation_t | interpolation | ||
) |
oms_status_enu_t oms::Component::deleteConnector | ( | const ComRef & | cref | ) |
oms_status_enu_t oms::Component::deleteConnectorFromTLMBus | ( | const ComRef & | busCref, |
const ComRef & | connectorCref | ||
) |
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentFMUME.
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentFMUME.
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentFMUME.
|
pure virtual |
Implemented in oms::ComponentFMUCS, oms::ExternalModel, oms::ComponentFMUME, and oms::ComponentTable.
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, oms::ComponentFMUME, and oms::ComponentTable.
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentFMUME.
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentFMUME.
|
inline |
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentTable.
|
inline |
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, oms::ComponentFMUME, and oms::ComponentTable.
|
inlinevirtual |
Reimplemented in oms::ComponentFMUME, oms::ComponentFMUCS, and oms::ComponentTable.
oms::Connector * oms::Component::getConnector | ( | const ComRef & | cref | ) |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentFMUME.
|
inline |
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentFMUME.
|
pure virtual |
Implemented in oms::ComponentFMUCS, oms::ComponentFMUME, oms::ComponentTable, and oms::ExternalModel.
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentFMUME.
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentFMUME.
oms::ComRef oms::Component::getFullCref | ( | ) | const |
|
inline |
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, oms::ComponentFMUME, and oms::ComponentTable.
oms::Model & oms::Component::getModel | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, oms::ComponentFMUME, and oms::ComponentTable.
|
inlinevirtual |
Reimplemented in oms::ComponentTable, and oms::ComponentFMUCS.
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentFMUME.
|
inline |
oms::TLMBusConnector * oms::Component::getTLMBusConnector | ( | const oms::ComRef & | cref | ) |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentFMUME.
|
inlinevirtual |
Implemented in oms::ComponentFMUCS, oms::ComponentFMUME, oms::ComponentTable, and oms::ExternalModel.
|
pure virtual |
Implemented in oms::ComponentFMUCS, oms::ComponentFMUME, oms::ExternalModel, and oms::ComponentTable.
|
pure virtual |
Implemented in oms::ComponentFMUCS, oms::ComponentFMUME, oms::ExternalModel, and oms::ComponentTable.
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentFMUME.
|
pure virtual |
Implemented in oms::ComponentFMUCS, oms::ComponentFMUME, oms::ComponentTable, and oms::ExternalModel.
|
pure virtual |
Implemented in oms::ComponentFMUCS, oms::ComponentFMUME, oms::ComponentTable, and oms::ExternalModel.
oms_status_enu_t oms::Component::rename | ( | const ComRef & | newCref | ) |
rename submodules, e.g., fmu:s
|
inlineprotectedvirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentFMUME.
|
pure virtual |
Implemented in oms::ComponentFMUCS, oms::ComponentFMUME, oms::ExternalModel, and oms::ComponentTable.
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentTable.
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentTable.
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentFMUME.
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentFMUME.
|
inline |
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentFMUME.
|
inline |
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentFMUME.
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS.
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentFMUME.
|
inline |
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentFMUME.
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentFMUME.
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentTable.
|
pure virtual |
Implemented in oms::ComponentFMUCS, oms::ComponentFMUME, oms::ExternalModel, and oms::ComponentTable.
|
inlinevirtual |
Reimplemented in oms::ComponentFMUCS, and oms::ComponentFMUME.
|
pure virtual |
Implemented in oms::ComponentFMUCS, oms::ComponentFMUME, oms::ComponentTable, and oms::ExternalModel.
|
protected |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
private |
resource file (fmu, mat)
|
private |
unzipped fmu
|
protected |
|
private |
|
private |