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#include <string>
6
59class And : public SimObject
60{
61 public:
78 And(std::string simObjectName, ISimObjectCreator* creator);
79
80
81
82 private:
83 // ODE function (no-op, as this simobject has no time dependence).
84 void OdeFcn(const double T, const double* const X,
85 double* const XDot) const { }
86
87 // Input ports
88 ISignalPort* m_in1;
89 ISignalPort* m_in2;
90
91 // Output port
92 const double* Out(const double T, const double* X);
93
94 // Output port storage
95 double m_out;
96};
97#endif //FHSIMBASE_BOOLEAN_AND_H
Definition And.h:60
And(std::string simObjectName, ISimObjectCreator *creator)
Standard simobject onstructor.