32 #ifndef _OMS_COMPONENT_FMU_ME_H_
33 #define _OMS_COMPONENT_FMU_ME_H_
45 #include <pugixml.hpp>
47 #include <unordered_map>
61 oms_status_enu_t
exportToSSD(pugi::xml_node& node,
Snapshot& snapshot, std::string variantName)
const;
62 oms_status_enu_t
exportToSSV(pugi::xml_node& ssvNode);
70 oms_status_enu_t
reset();
81 oms_status_enu_t
getBoolean(
const fmi2ValueReference& vr,
bool& value);
83 oms_status_enu_t
getInteger(
const fmi2ValueReference& vr,
int& value);
85 oms_status_enu_t
getReal(
const fmi2ValueReference& vr,
double& value);
87 oms_status_enu_t
getString(
const fmi2ValueReference& vr, std::string& value);
93 oms_status_enu_t
setTime(
double time);
96 oms_status_enu_t
getDirectionalDerivativeHeper(
const int unknownIndex,
const int knownIndex,
const std::vector<int>& dependencyList,
double& value);
125 oms_status_enu_t
newResources(
const std::string& ssvFilename,
const std::string& ssmFilename,
bool externalResources);
164 std::map<fmi2ValueReference, oms_fault_type_t>
fib;
ComRef - component reference.
Definition: ComRef.h:47
Definition: ComponentFMUME.h:53
oms_status_enu_t registerSignalsForResultFile(ResultWriter &resultFile)
Definition: ComponentFMUME.cpp:1762
const FMUInfo * getFMUInfo() const
Definition: ComponentFMUME.h:59
oms_status_enu_t deleteStartValue(const ComRef &cref)
Definition: ComponentFMUME.cpp:1543
~ComponentFMUME()
Definition: ComponentFMUME.cpp:53
oms_status_enu_t deleteReferencesInSSD(const std::string &filename)
Definition: ComponentFMUME.cpp:845
oms::ComRef getValidCref(ComRef cref)
Definition: ComponentFMUME.cpp:775
oms_status_enu_t getDirectionalDerivativeHeper(const int unknownIndex, const int knownIndex, const std::vector< int > &dependencyList, double &value)
Definition: ComponentFMUME.cpp:1412
oms_status_enu_t getReal(const ComRef &cref, double &value)
Definition: ComponentFMUME.cpp:1158
oms_status_enu_t renameValues(const ComRef &oldCref, const ComRef &newCref)
Definition: ComponentFMUME.cpp:1980
oms_status_enu_t reset()
Definition: ComponentFMUME.cpp:893
std::vector< unsigned int > derivatives
Definition: ComponentFMUME.h:154
oms_status_enu_t setTime(double time)
Definition: ComponentFMUME.cpp:1021
std::vector< unsigned int > parameters
Definition: ComponentFMUME.h:157
Variable * getVariable(const ComRef &cref)
Definition: ComponentFMUME.cpp:1109
oms_status_enu_t setBoolean(const ComRef &cref, bool value)
Definition: ComponentFMUME.cpp:1440
std::unordered_map< unsigned int, unsigned int > resultFileMapping
Definition: ComponentFMUME.h:162
oms_status_enu_t getContinuousStates(double *states)
Definition: ComponentFMUME.cpp:1865
oms_status_enu_t setContinuousStates(double *states)
Definition: ComponentFMUME.cpp:1874
void getFilteredEnumerationDefinitionsToSSD(std::map< std::string, std::map< std::string, std::string >> &enumerationDefinitions)
Definition: ComponentFMUME.cpp:406
ComponentFMUME & operator=(ComponentFMUME const ©)
not implemented
std::vector< unsigned int > inputs
Definition: ComponentFMUME.h:155
void getFilteredSignals(std::vector< Connector > &filteredSignals) const
Definition: ComponentFMUME.cpp:1971
FMUInfo fmuInfo
Definition: ComponentFMUME.h:150
std::vector< unsigned int > calculatedParameters
Definition: ComponentFMUME.h:153
void getFilteredUnitDefinitionsToSSD(std::map< std::string, std::map< std::string, std::string >> &unitDefinitions)
Definition: ComponentFMUME.cpp:384
oms_status_enu_t terminate()
Definition: ComponentFMUME.cpp:882
std::map< fmi2ValueReference, oms_fault_type_t > fib
fault injection blocks
Definition: ComponentFMUME.h:164
fmiHandle * getFMU()
Definition: ComponentFMUME.h:116
oms_status_enu_t addSignalsToResults(const char *regex)
Definition: ComponentFMUME.cpp:1910
oms_status_enu_t setInteger(const ComRef &cref, int value)
Definition: ComponentFMUME.cpp:1492
Values values
start values defined before instantiating the FMU and external inputs defined after initialization
Definition: ComponentFMUME.h:160
static Component * NewComponent(const oms::ComRef &cref, System *parentSystem, const std::string &fmuPath, std::string replaceComponent="")
Definition: ComponentFMUME.cpp:61
oms_status_enu_t getString(const ComRef &cref, std::string &value)
Definition: ComponentFMUME.cpp:1250
oms_status_enu_t removeSignalsFromResults(const char *regex)
Definition: ComponentFMUME.cpp:1929
fmi2EventInfo * getEventInfo()
Definition: ComponentFMUME.h:117
std::vector< Variable > allVariables
Definition: ComponentFMUME.h:152
fmiHandle * fmu
Definition: ComponentFMUME.h:145
oms_status_enu_t initialize()
Definition: ComponentFMUME.cpp:861
oms_status_enu_t exportToSSMTemplate(pugi::xml_node &ssmNode)
Definition: ComponentFMUME.cpp:423
oms_status_enu_t initializeDependencyGraph_outputs()
Definition: ComponentFMUME.cpp:549
oms_status_enu_t deleteResourcesInSSP(const std::string &filename)
Definition: ComponentFMUME.cpp:853
oms_status_enu_t initializeDependencyGraph_initialUnknowns()
Definition: ComponentFMUME.cpp:446
oms_status_enu_t getBoolean(const ComRef &cref, bool &value)
Definition: ComponentFMUME.cpp:931
Values & getValues()
Definition: ComponentFMUME.h:77
size_t getNumberOfContinuousStates() const
Definition: ComponentFMUME.h:108
oms_status_enu_t exportToSSVTemplate(pugi::xml_node &ssvNode, Snapshot &snapshot)
Definition: ComponentFMUME.cpp:416
oms_status_enu_t setResourcesHelper1(Values value)
Definition: ComponentFMUME.cpp:694
fmi2EventInfo eventInfo
Definition: ComponentFMUME.h:147
size_t nEventIndicators
Definition: ComponentFMUME.h:148
oms_status_enu_t exportToSSD(pugi::xml_node &node, Snapshot &snapshot, std::string variantName) const
Definition: ComponentFMUME.cpp:348
oms_status_enu_t setFaultInjection(const ComRef &signal, oms_fault_type_enu_t faultType, double faultValue)
Definition: ComponentFMUME.cpp:1948
std::vector< bool > exportVariables
Definition: ComponentFMUME.h:158
oms_status_enu_t getInteger(const ComRef &cref, int &value)
Definition: ComponentFMUME.cpp:1029
oms_status_enu_t doEventIteration()
Definition: ComponentFMUME.cpp:785
size_t getNumberOfEventIndicators() const
Definition: ComponentFMUME.h:109
oms_status_enu_t setValuesResources(Values &values)
Definition: ComponentFMUME.cpp:1568
ComponentFMUME(ComponentFMUME const ©)
not implemented
oms_status_enu_t instantiate()
Definition: ComponentFMUME.cpp:629
ComponentFMUME(const ComRef &cref, System *parentSystem, const std::string &fmuPath)
Definition: ComponentFMUME.cpp:48
oms_status_enu_t updateOrDeleteStartValueInReplacedComponent(std::vector< std::string > &warningList)
Definition: ComponentFMUME.cpp:1581
oms_status_enu_t exportToSSV(pugi::xml_node &ssvNode)
Definition: ComponentFMUME.cpp:411
bool getCanGetAndSetState()
Definition: ComponentFMUME.h:119
fmi2CallbackLogger omsfmi2logger
Definition: ComponentFMUME.h:144
oms_status_enu_t updateSignals(ResultWriter &resultWriter)
Definition: ComponentFMUME.cpp:1825
oms_status_enu_t getNominalsOfContinuousStates(double *nominals)
Definition: ComponentFMUME.cpp:1892
oms_status_enu_t getEventindicators(double *eventindicators)
Definition: ComponentFMUME.cpp:1901
oms_status_enu_t setReal(const ComRef &cref, double value)
Definition: ComponentFMUME.cpp:1607
void dumpInitialUnknowns()
Definition: ComponentFMUME.cpp:429
oms_status_enu_t newResources(const std::string &ssvFilename, const std::string &ssmFilename, bool externalResources)
Definition: ComponentFMUME.cpp:805
oms_status_enu_t setString(const ComRef &cref, const std::string &value)
Definition: ComponentFMUME.cpp:1665
oms_status_enu_t getDirectionalDerivative(const ComRef &unknownCref, const ComRef &knownCref, double &value)
Definition: ComponentFMUME.cpp:1330
oms_status_enu_t setUnit(const ComRef &cref, const std::string &value)
Definition: ComponentFMUME.cpp:1721
oms_status_enu_t setResourcesHelper2(Values value)
Definition: ComponentFMUME.cpp:718
std::vector< unsigned int > outputs
Definition: ComponentFMUME.h:156
oms_status_enu_t getDerivatives(double *derivatives)
Definition: ComponentFMUME.cpp:1883
Definition: Component.h:60
ComRef cref
Definition: Component.h:167
System * parentSystem
Definition: Component.h:166
FMU info.
Definition: FMUInfo.h:45
bool getCanGetAndSetFMUstate() const
Definition: FMUInfo.h:56
Definition: ResultWriter.h:69
Definition: Snapshot.h:47
Definition: Variable.h:46
const char * signal
Definition: Tags.cpp:38