Marine systems simulation
CIntegrator.h
1#ifndef CIntegrator_H
2#define CIntegrator_H
3
58#include "SimObject.h"
59
60#include <string>
61
62class CIntegrator : public SimObject
63{
64 public:
66 CIntegrator(std::string sSimObjectName, ISimObjectCreator* pCreator);
67
69 void OdeFcn(const double dT, const double* const adX, double* const adXDot, const bool bIsMajorTimeStep);
70
71 const double* Output(const double T, const double* const X);
72
73 void InitialConditionSetup(const double T, const double* const currentIC, double* const updatedIC, ISimObjectCreator* const creator);
74
75#ifdef FH_VISUALIZATION
77 virtual void RenderInit(Ogre::Root* const ogreRoot, ISimObjectCreator* const creator) { }
78
80 virtual void RenderUpdate(const double T, const double* const X) { }
81#endif
82
83 protected:
84 ISignalPort* m_IcPort;
85 ISignalPort* m_Input;
86 int m_StateIndex;
89};
90#endif
Definition: CIntegrator.h:63
CIntegrator(std::string sSimObjectName, ISimObjectCreator *pCreator)
Constructor.
int m_iPortWidth
Definition: CIntegrator.h:88