Marine systems simulation
CSignalList.h
1#ifndef C_CSIGNALLIST_H
2#define C_CSIGNALLIST_H
46#include <SimObject.h>
47
48class CSignalList : public SimObject
49{
50 public:
52 CSignalList(std::string sSimObjectName, ISimObjectCreator* pCreator);
54
56 void OdeFcn(const double dT, const double* const adX, double* const adXDot, const bool bIsMajorTimeStep){};
57
59 const double* Output(const double dT, const double* const adX);
60
61#ifdef FH_VISUALIZATION
63 virtual void RenderInit(Ogre::Root* const ogreRoot, ISimObjectCreator* const creator) { }
64
66 virtual void RenderUpdate(const double T, const double* const X) { }
67#endif
68
69 protected:
70 int m_portWidth;
71 int m_signalLength;
72 double** m_values;
73 double* m_times;
74};
75
76
77#endif
Definition: CSignalList.h:49
void OdeFcn(const double dT, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
Calculates the state derivatives.
Definition: CSignalList.h:56
const double * Output(const double dT, const double *const adX)
Outputs the constant value on the output port.
CSignalList(std::string sSimObjectName, ISimObjectCreator *pCreator)
The constructor sets the pointer to the output object and the parser object.