Marine systems simulation
CProduct.h
1#ifndef CProduct_H
2#define CProduct_H
3
63#include "SimObject.h"
64
65#include <string>
66
67class CProduct : public SimObject
68{
69 public:
71 CProduct(std::string sSimObjectName, ISimObjectCreator* pCreator);
72 ~CProduct();
73
74 virtual void OdeFcn(const double dT, const double* const adX, double* const adXDot, const bool bIsMajorTimeStep) { }
75
76 const double* Output(const double T, const double* const X);
77
78
79#ifdef FH_VISUALIZATION
81 virtual void RenderInit(Ogre::Root* const ogreRoot, ISimObjectCreator* const creator) { }
82
84 virtual void RenderUpdate(const double T, const double* const X) { }
85#endif
86
87 protected:
88 ISignalPort* m_Input1;
89 ISignalPort* m_Input2;
90
91 double* m_Signal;
92
95
97 {
98 ProdType_Elementwise,
99 ProdType_Cross,
100 ProdType_Dot,
101 ProdType_Scalar
102 };
103 EProdType m_EProdType;
104};
105
106
107#endif
Definition: CProduct.h:68
CProduct(std::string sSimObjectName, ISimObjectCreator *pCreator)
Constructor.
EProdType
< Enumerator for the kind of product
Definition: CProduct.h:97
int m_iPortWidth
Definition: CProduct.h:94