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