MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
fmu Class Referenceabstract

#include <mbdynFMI.h>

Inheritance diagram for fmu:
Collaboration diagram for fmu:

Public Types

enum  SimulationTypes { IMPORT, COSIM }
 

Public Member Functions

 fmu (fmi_import_context_t *text, int type)
 
virtual void parseXML (fmi_import_context_t *context, const char *dirPath)=0
 
virtual void setCallBackFunction ()=0
 
virtual void ImportCreateDLL (void)=0
 
virtual bool CheckInput (const std::string)=0
 
virtual int GetNumOfContinousStates (void)=0
 
virtual int GetNumOfEventIndicators (void)=0
 
virtual int GetNumOfVar (void)=0
 
virtual void Initialize (double dTol, double time, double rTol)=0
 
virtual void EventIndicatorInit (void)=0
 
virtual void SetRelativeTol (double dTol)=0
 
virtual void SetTime (double time)=0
 
virtual void SetStates (double *states)=0
 
virtual void SetValuesByVariable (const std::string, double)=0
 
virtual int GetRefValueFromString (const char *s)=0
 
virtual double GetStateFromRefValue (unsigned int i)=0
 
virtual void GetStateDerivatives (double *)=0
 
virtual void GetStates (double *)=0
 
virtual void GetDirectionalDerivatives (FullMatrixHandler *, int *, int, double *)=0
 
virtual bool SupportsDirectionalDerivatives ()=0
 
virtual bool CheckInterrupts (double, double *)=0
 
virtual void InitializeAsSlave (const char *, double, double)=0
 
virtual void CSPropogate (double tcur, double dt)=0
 
virtual ~fmu (void)
 

Public Attributes

int simType
 
fmi_import_context_t * context
 

Detailed Description

Definition at line 65 of file mbdynFMI.h.

Member Enumeration Documentation

Enumerator
IMPORT 
COSIM 

Definition at line 67 of file mbdynFMI.h.

67  {
68  IMPORT,
69  COSIM
70  };

Constructor & Destructor Documentation

fmu::fmu ( fmi_import_context_t *  text,
int  type 
)
inline

Definition at line 75 of file mbdynFMI.h.

References context, and simType.

75  {
76  context = text;
77  simType = type;
78  }
fmi_import_context_t * context
Definition: mbdynFMI.h:73
int simType
Definition: mbdynFMI.h:72
fmu::~fmu ( void  )
virtual

Definition at line 468 of file mbdynFMI.cc.

References NO_OP.

468  {
469  NO_OP;
470 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

virtual bool fmu::CheckInput ( const std::string  )
pure virtual

Implemented in fmu2, and fmu1.

Referenced by ModuleFMU::ModuleFMU().

virtual bool fmu::CheckInterrupts ( double  ,
double *   
)
pure virtual

Implemented in fmu2, and fmu1.

virtual void fmu::CSPropogate ( double  tcur,
double  dt 
)
pure virtual

Implemented in fmu2, and fmu1.

Referenced by ModuleFMU::AssRes().

virtual void fmu::EventIndicatorInit ( void  )
pure virtual

Implemented in fmu2, and fmu1.

Referenced by ModuleFMU::ModuleFMU().

virtual void fmu::GetDirectionalDerivatives ( FullMatrixHandler ,
int ,
int  ,
double *   
)
pure virtual

Implemented in fmu2, and fmu1.

Referenced by ModuleFMU::AssJac().

virtual int fmu::GetNumOfContinousStates ( void  )
pure virtual

Implemented in fmu2, and fmu1.

Referenced by ModuleFMU::ModuleFMU().

virtual int fmu::GetNumOfEventIndicators ( void  )
pure virtual

Implemented in fmu2, and fmu1.

Referenced by ModuleFMU::ModuleFMU().

virtual int fmu::GetNumOfVar ( void  )
pure virtual

Implemented in fmu2, and fmu1.

Referenced by ModuleFMU::iGetNumPrivData().

virtual int fmu::GetRefValueFromString ( const char *  s)
pure virtual

Implemented in fmu2, and fmu1.

Referenced by ModuleFMU::iGetPrivDataIdx(), and ModuleFMU::ModuleFMU().

virtual void fmu::GetStateDerivatives ( double *  )
pure virtual

Implemented in fmu2, and fmu1.

Referenced by ModuleFMU::AssRes(), and ModuleFMU::SetValue().

virtual double fmu::GetStateFromRefValue ( unsigned int  i)
pure virtual

Implemented in fmu2, and fmu1.

Referenced by ModuleFMU::dGetPrivData().

virtual void fmu::GetStates ( double *  )
pure virtual

Implemented in fmu2, and fmu1.

Referenced by ModuleFMU::SetValue().

virtual void fmu::ImportCreateDLL ( void  )
pure virtual

Implemented in fmu2, and fmu1.

Referenced by ModuleFMU::ModuleFMU().

virtual void fmu::Initialize ( double  dTol,
double  time,
double  rTol 
)
pure virtual

Implemented in fmu2, and fmu1.

Referenced by ModuleFMU::ModuleFMU().

virtual void fmu::InitializeAsSlave ( const char *  ,
double  ,
double   
)
pure virtual

Implemented in fmu2, and fmu1.

Referenced by ModuleFMU::ModuleFMU().

virtual void fmu::parseXML ( fmi_import_context_t *  context,
const char *  dirPath 
)
pure virtual

Implemented in fmu2, and fmu1.

Referenced by ModuleFMU::ModuleFMU().

virtual void fmu::setCallBackFunction ( )
pure virtual

Implemented in fmu2, and fmu1.

Referenced by ModuleFMU::ModuleFMU().

virtual void fmu::SetRelativeTol ( double  dTol)
pure virtual

Implemented in fmu2, and fmu1.

virtual void fmu::SetStates ( double *  states)
pure virtual

Implemented in fmu2, and fmu1.

Referenced by ModuleFMU::AssRes().

virtual void fmu::SetTime ( double  time)
pure virtual

Implemented in fmu2, and fmu1.

Referenced by ModuleFMU::AssRes().

virtual void fmu::SetValuesByVariable ( const std::string  ,
double   
)
pure virtual

Implemented in fmu2, and fmu1.

Referenced by ModuleFMU::AssRes().

virtual bool fmu::SupportsDirectionalDerivatives ( )
pure virtual

Implemented in fmu2, and fmu1.

Referenced by ModuleFMU::ModuleFMU().

Member Data Documentation

fmi_import_context_t* fmu::context

Definition at line 73 of file mbdynFMI.h.

Referenced by fmu(), fmu1::~fmu1(), and fmu2::~fmu2().

int fmu::simType

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