Marine systems simulation
CConstant.h
1#ifndef C_CONSTANT_H
2#define C_CONSTANT_H
44#include <SimObject.h>
45
46class CConstant : public SimObject
47{
48 public:
50 CConstant(std::string sSimObjectName, ISimObjectCreator* pCreator);
51 ~CConstant();
52
54 void OdeFcn(const double dT, const double* const adX, double* const adXDot, const bool bIsMajorTimeStep){};
55
57 const double* Output(const double dT, const double* const adX);
58
59#ifdef FH_VISUALIZATION
61 virtual void RenderInit(Ogre::Root* const ogreRoot, ISimObjectCreator* const creator) { }
62
64 virtual void RenderUpdate(const double T, const double* const X) { }
65#endif
66
67 protected:
68 double* m_adValues;
69};
70
71
72#endif
Definition: CConstant.h:47
const double * Output(const double dT, const double *const adX)
Outputs the constant value on the output port.
void OdeFcn(const double dT, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
Calculates the state derivatives.
Definition: CConstant.h:54
CConstant(std::string sSimObjectName, ISimObjectCreator *pCreator)
The constructor sets the pointer to the output object and the parser object.