Marine systems simulation
CSum.h
1#ifndef CSum_H
2#define CSum_H
3
59#include "SimObject.h"
60
61#include <string>
62
63class CSum : public SimObject
64{
65 public:
67 CSum(std::string sSimObjectName, ISimObjectCreator* pCreator);
68 ~CSum();
69
71 virtual void OdeFcn(const double dT, const double* const adX, double* const adXDot, const bool bIsMajorTimeStep) { }
72 virtual const double* Out(const double dT, const double* const adX);
73
74#ifdef FH_VISUALIZATION
75 virtual void RenderInit(Ogre::Root* const ogreRoot, ISimObjectCreator* const creator)
76 { }
77 virtual void RenderUpdate(const double T, const double* const X) { }
78#endif
79 protected:
80 ISignalPort** m_apInPorts;
81 double* m_adOutSignal;
85};
86
87
88#endif
Definition: CSum.h:64
int m_iPortWidth
Definition: CSum.h:84
virtual void OdeFcn(const double dT, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
Calculates the state derivatives.
Definition: CSum.h:71
int m_iNumInput
The number of input ports.
Definition: CSum.h:82
CSum(std::string sSimObjectName, ISimObjectCreator *pCreator)
The constructor sets the pointer to the output object and the parser object.