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