FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
CSwitch Class Reference
+ Inheritance diagram for CSwitch:
+ Collaboration diagram for CSwitch:

Public Types

enum  SwitchType { PASS1_IF2_POSITIVE , PASS3_IF2_POSITIVE , PASS1_IF2_ZERO , PASS3_IF2_ZERO }
 
- Public Types inherited from fhsim_base::SignalBlock
enum class  PortWidthRule { DefaultOne , Required }
 Whether the parameter PortWidth must be in the input file. More...
 

Public Member Functions

 CSwitch (std::string sSimObjectName, ISimObjectCreator *pCreator)
 Constructor.
 
virtual void OdeFcn (const double dT, const double *const adX, double *const adXDot) const
 
const double * Output (const double T, const double *const X)
 
- Public Member Functions inherited from fhsim_base::SignalBlock
 SignalBlock (const std::string &name, ISimObjectCreator *creator, PortWidthRule rule=PortWidthRule::DefaultOne)
 

Protected Attributes

SwitchType Type
 
ISignalPort * m_Input1
 
ISignalPort * m_Input2
 
ISignalPort * m_Input3
 
- Protected Attributes inherited from fhsim_base::SignalBlock
std::vector< double > m_out
 The output buffer, PortWidth() elements. A block may resize it, for example to the width of an output port that differs from PortWidth.
 

Additional Inherited Members

- Static Public Member Functions inherited from fhsim_base::SignalBlock
static int ReadCount (ISimObjectCreator *creator, const std::string &name, int defaultValue)
 
static int ReadCount (ISimObjectCreator *creator, const std::string &name)
 As above for a count that must be in the file.
 
- Protected Member Functions inherited from fhsim_base::SignalBlock
int PortWidth () const
 The number of elements in the signals of the block (the parameter PortWidth).
 
std::vector< double > ReadScalarOrVector (ISimObjectCreator *creator, const std::string &name, double defaultValue) const
 
std::vector< double > ReadScalarOrVector (ISimObjectCreator *creator, const std::string &name) const
 

The documentation for this class was generated from the following file: