FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
Equal.h
1#ifndef FHSIMBASE_BOOLEAN_EQUAL_H
2#define FHSIMBASE_BOOLEAN_EQUAL_H
3
4#include <fhsim/simobject/SimObject.h>
5#include <string>
6
62class Equal : public SimObject
63{
64 public:
81 Equal(std::string simObjectName, ISimObjectCreator* creator);
82
83
84 private:
85 // ODE function (no-op, as this simobject has no time dependence).
86 void OdeFcn(const double T, const double* const X,
87 double* const XDot) const { }
88
89 // Input ports
90 ISignalPort* m_in1;
91 ISignalPort* m_in2;
92
93 // Output port
94 const double* Out(const double T, const double* X);
95
96 // Output port storage
97 double m_out;
98};
99
100
101#endif //FHSIMBASE_BOOLEAN_EQUAL_H
Definition Equal.h:63
Equal(std::string simObjectName, ISimObjectCreator *creator)
Standard simobject onstructor.