FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
CLogic.h
1#ifndef C_LOGIC_H
2#define C_LOGIC_H
3
63#include <fhsim/simobject/SimObject.h>
64#include "SignalBlock.h"
65#include <string>
66#include <vector>
67
69{
70 public:
72 CLogic(std::string sSimObjectName, ISimObjectCreator* pCreator);
73 ~CLogic();
74 virtual void OdeFcn(const double dT, const double* const adX, double* const adXDot) const { }
75
76 const double* Output(const double T, const double* const X);
77
78
79
80 protected:
81 std::vector<ISignalPort*> m_Input;
82
83
86 {
87 LogicType_OR,
88 LogicType_XOR,
89 LogicType_AND,
90 };
91
95};
96
97
98#endif
Definition CLogic.h:69
int m_iNumInput
Definition CLogic.h:93
ELogicType
An enumerator which tells which kind of logics is wanted.
Definition CLogic.h:86
ELogicType m_ELogicType
The type of logic.
Definition CLogic.h:94
CLogic(std::string sSimObjectName, ISimObjectCreator *pCreator)
The constructor sets the pointer to the output object and the parser object.
Definition SignalBlock.h:18