Marine systems simulation
Equal.h
1#ifndef FHSIMBASE_BOOLEAN_EQUAL_H
2#define FHSIMBASE_BOOLEAN_EQUAL_H
3
4#include <SimObject.h>
5
61class Equal : public SimObject
62{
63 public:
80 Equal(std::string simObjectName, ISimObjectCreator* creator);
81
82#ifdef FH_VISUALIZATION
84 virtual void RenderInit(Ogre::Root* const ogreRoot, ISimObjectCreator* const creator) { }
85
87 virtual void RenderUpdate(const double T, const double* const X) { }
88#endif
89
90 private:
91 // ODE function (no-op, as this simobject has no time dependence).
92 void OdeFcn(const double T, const double* const X,
93 double* const XDot, const bool isMajorTimeStep) { }
94
95 // Input ports
96 ISignalPort* m_in1;
97 ISignalPort* m_in2;
98
99 // Output port
100 const double* Out(const double T, const double* X);
101
102 // Output port storage
103 double m_out;
104};
105
106
107#endif //FHSIMBASE_BOOLEAN_EQUAL_H
Definition: Equal.h:62
Equal(std::string simObjectName, ISimObjectCreator *creator)
Standard simobject onstructor.