FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
CSwitch.h
1#ifndef CSwitch_H
2#define CSwitch_H
3
71#include <fhsim/simobject/SimObject.h>
72#include "../math/SignalBlock.h"
73
74#include <string>
75
77{
78 public:
79 enum SwitchType
80 {
81 PASS1_IF2_POSITIVE,
82 PASS3_IF2_POSITIVE,
83 PASS1_IF2_ZERO,
84 PASS3_IF2_ZERO
85 };
86
88 CSwitch(std::string sSimObjectName, ISimObjectCreator* pCreator);
89 ~CSwitch();
90 virtual void OdeFcn(const double dT, const double* const adX, double* const adXDot) const { }
91
92 const double* Output(const double T, const double* const X);
93
94
95
96 protected:
97 SwitchType Type;
98
99 ISignalPort* m_Input1;
100 ISignalPort* m_Input2;
101 ISignalPort* m_Input3;
102
103
104};
105
106
107#endif
Definition CSwitch.h:77
CSwitch(std::string sSimObjectName, ISimObjectCreator *pCreator)
Constructor.
Definition SignalBlock.h:18