32 #ifndef _OMS_COMPONENT_FMU_ME_H_ 33 #define _OMS_COMPONENT_FMU_ME_H_ 43 #include <pugixml.hpp> 45 #include <unordered_map> 117 fmi2_import_t*
fmu = NULL;
136 std::map<fmi2_value_reference_t, oms_fault_type_t>
fib;
ComponentFMUME(const ComRef &cref, System *parentSystem, const std::string &fmuPath)
Definition: ComponentFMUME.cpp:46
FMU info.
Definition: FMUInfo.h:45
fmi2_event_info_t eventInfo
Definition: ComponentFMUME.h:119
fmi2_event_info_t * getEventInfo()
Definition: ComponentFMUME.h:100
oms_status_enu_t initializeDependencyGraph_outputs()
Definition: ComponentFMUME.cpp:462
Definition: ResultWriter.h:68
size_t getNumberOfEventIndicators() const
Definition: ComponentFMUME.h:92
System * parentSystem
Definition: Component.h:143
oms_status_enu_t instantiate()
Definition: ComponentFMUME.cpp:511
size_t getNumberOfContinuousStates() const
Definition: ComponentFMUME.h:91
oms_status_enu_t initializeDependencyGraph_initialUnknowns()
Definition: ComponentFMUME.cpp:370
Definition: Variable.h:44
std::vector< Variable > allVariables
Definition: ComponentFMUME.h:125
size_t nEventIndicators
Definition: ComponentFMUME.h:121
std::vector< bool > exportVariables
Definition: ComponentFMUME.h:130
oms_status_enu_t getInteger(const ComRef &cref, int &value)
Definition: ComponentFMUME.cpp:724
oms_status_enu_t exportToSSVTemplate(pugi::xml_node &ssvNode)
Definition: ComponentFMUME.cpp:358
oms_status_enu_t setContinuousStates(double *states)
Definition: ComponentFMUME.cpp:1095
FMUInfo fmuInfo
Definition: ComponentFMUME.h:123
std::vector< Variable > outputs
Definition: ComponentFMUME.h:127
oms_status_enu_t
Definition: Types.h:43
fmi2_import_t * getFMU()
Definition: ComponentFMUME.h:99
oms_status_enu_t getBoolean(const ComRef &cref, bool &value)
Definition: ComponentFMUME.cpp:671
size_t nContinuousStates
Definition: ComponentFMUME.h:120
ComponentFMUME & operator=(ComponentFMUME const ©)
not implemented
~ComponentFMUME()
Definition: ComponentFMUME.cpp:51
oms_status_enu_t getEventindicators(double *eventindicators)
Definition: ComponentFMUME.cpp:1122
Variable * getVariable(const ComRef &cref)
Definition: ComponentFMUME.cpp:767
fmi2_callback_functions_t callbackFunctions
Definition: ComponentFMUME.h:115
oms_status_enu_t getNominalsOfContinuousStates(double *nominals)
Definition: ComponentFMUME.cpp:1113
std::vector< Variable > inputs
Definition: ComponentFMUME.h:126
oms_status_enu_t exportToSSD(pugi::xml_node &node, pugi::xml_node &ssvNode) const
Definition: ComponentFMUME.cpp:318
oms_status_enu_t setFaultInjection(const ComRef &signal, oms_fault_type_enu_t faultType, double faultValue)
Definition: ComponentFMUME.cpp:1169
oms_status_enu_t getDerivatives(double *derivatives)
Definition: ComponentFMUME.cpp:1104
ComRef - component reference.
Definition: ComRef.h:43
std::map< fmi2_value_reference_t, oms_fault_type_t > fib
fault injection blocks
Definition: ComponentFMUME.h:136
Definition: Component.h:56
oms_status_enu_t getReal(const ComRef &cref, double &value)
Definition: ComponentFMUME.cpp:816
fmi2_import_t * fmu
Definition: ComponentFMUME.h:117
oms_status_enu_t setReal(const ComRef &cref, double value)
Definition: ComponentFMUME.cpp:941
jm_callbacks callbacks
Definition: ComponentFMUME.h:114
oms_status_enu_t terminate()
Definition: ComponentFMUME.cpp:622
oms_status_enu_t getContinuousStates(double *states)
Definition: ComponentFMUME.cpp:1086
std::unordered_map< unsigned int, unsigned int > resultFileMapping
Definition: ComponentFMUME.h:134
Definition: ComponentFMUME.h:50
std::vector< Variable > parameters
Definition: ComponentFMUME.h:128
std::vector< Variable > calculatedParameters
Definition: ComponentFMUME.h:129
oms_fault_type_enu_t
Definition: Types.h:76
oms_status_enu_t deleteStartValue(const ComRef &cref)
Definition: ComponentFMUME.cpp:936
oms_status_enu_t initialize()
Definition: ComponentFMUME.cpp:601
Values values
start values defined before instantiating the FMU and external inputs defined after initialization ...
Definition: ComponentFMUME.h:132
oms_status_enu_t doEventIteration()
Definition: ComponentFMUME.cpp:581
ComRef cref
Definition: Component.h:144
const char * signal
Definition: Tags.cpp:38
oms_status_enu_t setBoolean(const ComRef &cref, bool value)
Definition: ComponentFMUME.cpp:859
oms_status_enu_t exportToSSMTemplate(pugi::xml_node &ssmNode)
Definition: ComponentFMUME.cpp:364
oms_status_enu_t updateSignals(ResultWriter &resultWriter)
Definition: ComponentFMUME.cpp:1046
oms_status_enu_t setInteger(const ComRef &cref, int value)
Definition: ComponentFMUME.cpp:898
oms_status_enu_t reset()
Definition: ComponentFMUME.cpp:633
oms_status_enu_t addSignalsToResults(const char *regex)
Definition: ComponentFMUME.cpp:1131
bool getCanGetAndSetFMUstate() const
Definition: FMUInfo.h:58
bool getCanGetAndSetState()
Definition: ComponentFMUME.h:102
oms::ComRef getValidCref(ComRef cref)
Definition: ComponentFMUME.cpp:571
static Component * NewComponent(const oms::ComRef &cref, System *parentSystem, const std::string &fmuPath)
Definition: ComponentFMUME.cpp:59
oms_status_enu_t removeSignalsFromResults(const char *regex)
Definition: ComponentFMUME.cpp:1150
oms_status_enu_t registerSignalsForResultFile(ResultWriter &resultFile)
Definition: ComponentFMUME.cpp:983
const FMUInfo * getFMUInfo() const
Definition: ComponentFMUME.h:57
fmi_import_context_t * context
Definition: ComponentFMUME.h:116