55 #include <FMI2/fmi2_import.h>
56 #include <FMI/fmi_import_context.h>
75 fmu(fmi_import_context_t* text,
int type){
80 virtual void parseXML(fmi_import_context_t*
context,
const char* dirPath) = 0;
85 virtual bool CheckInput(
const std::string) = 0;
91 virtual void Initialize(
double dTol,
double time,
double rTol) = 0;
95 virtual void SetTime(
double time) = 0;
96 virtual void SetStates(
double* states) = 0;
109 virtual void CSPropogate(
double tcur,
double dt) = 0;
130 fmi1_import_variable_t*
v;
134 fmi1_value_reference_t *
vrs;
143 fmu1(fmi_import_context_t* text,
int type):
fmu::
fmu(text, type){
155 void Initialize(
double dTol,
double time,
double rTol);
194 fmi2_import_variable_t*
v;
199 fmi2_value_reference_t *
vrs;
208 fmu2(fmi_import_context_t* text,
int type):
fmu::
fmu(text, type){
220 void Initialize(
double dTol,
double time,
double rTol);
virtual int GetNumOfEventIndicators(void)=0
fmi1_import_variable_t * v
void EventIndicatorInit(void)
virtual void InitializeAsSlave(const char *, double, double)=0
virtual void SetValuesByVariable(const std::string, double)=0
void GetStateDerivatives(double *)
virtual void GetStateDerivatives(double *)=0
double GetStateFromRefValue(unsigned int i)
virtual void GetStates(double *)=0
virtual bool CheckInterrupts(double, double *)=0
virtual void CSPropogate(double tcur, double dt)=0
int GetNumOfContinousStates(void)
void SetStates(double *states)
int GetRefValueFromString(const char *s)
virtual void SetRelativeTol(double dTol)=0
fmi1_real_t * eventIndicators
fmu(fmi_import_context_t *text, int type)
void GetStateDerivatives(double *)
int GetNumOfEventIndicators(void)
void CSPropogate(double tcur, double dt)
fmu1(fmi_import_context_t *text, int type)
void SetStates(double *states)
bool SupportsDirectionalDerivatives()
virtual void GetDirectionalDerivatives(FullMatrixHandler *, int *, int, double *)=0
void SetRelativeTol(double dTol)
void GetDirectionalDerivatives(FullMatrixHandler *, int *, int, double *)
fmi1_event_info_t eventInfo
void Initialize(double dTol, double time, double rTol)
void SetTime(double time)
void parseXML(fmi_import_context_t *context, const char *dirPath)
virtual void EventIndicatorInit(void)=0
virtual void SetTime(double time)=0
fmi2_value_reference_t * vrs
void CSPropogate(double tcur, double dt)
fmi1_real_t * eventIndicatorsPrev
void InitializeAsSlave(const char *location, double tstart, double tend)
fmu2(fmi_import_context_t *text, int type)
virtual bool SupportsDirectionalDerivatives()=0
fmi2_event_info_t eventInfo
fmi1_boolean_t intermediateResults
void ImportCreateDLL(void)
void SetValuesByVariable(const std::string, double)
bool CheckInput(const std::string)
virtual int GetRefValueFromString(const char *s)=0
void SetValuesByVariable(const std::string, double)
fmi2_real_t * eventIndicators
void parseXML(fmi_import_context_t *context, const char *dirPath)
fmi_import_context_t * context
fmi2_boolean_t callEventUpdate
virtual double GetStateFromRefValue(unsigned int i)=0
void SetRelativeTol(double dTol)
double GetStateFromRefValue(unsigned int i)
bool CheckInterrupts(double, double *)
fmi2_real_t relativeTolerance
void EventIndicatorInit(void)
bool SupportsDirectionalDerivatives()
void setCallBackFunction()
void ImportCreateDLL(void)
virtual void ImportCreateDLL(void)=0
fmi2_callback_functions_t callBackFunctions
fmi2_boolean_t terminateSimulation
virtual void Initialize(double dTol, double time, double rTol)=0
fmi1_callback_functions_t callBackFunctions
void SetTime(double time)
void setCallBackFunction()
int GetNumOfEventIndicators(void)
fmi2_real_t * eventIndicatorsPrev
int GetNumOfContinousStates(void)
bool CheckInput(const std::string)
bool CheckInterrupts(double, double *)
int GetRefValueFromString(const char *s)
virtual bool CheckInput(const std::string)=0
virtual void parseXML(fmi_import_context_t *context, const char *dirPath)=0
fmi1_value_reference_t * vrs
void GetDirectionalDerivatives(FullMatrixHandler *, int *, int, double *)
fmi1_real_t relativeTolerance
virtual void setCallBackFunction()=0
void InitializeAsSlave(const char *, double, double)
fmi2_boolean_t intermediateResults
void Initialize(double dTol, double time, double rTol)
virtual int GetNumOfVar(void)=0
virtual void SetStates(double *states)=0
fmi2_import_variable_t * v
virtual int GetNumOfContinousStates(void)=0