Marine systems simulation
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 Member Functions

 CSwitch (std::string sSimObjectName, ISimObjectCreator *pCreator)
 Constructor.
 
virtual void OdeFcn (const double dT, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
 
const double * Output (const double T, const double *const X)
 

Protected Attributes

SwitchType Type
 
ISignalPort * m_Input1
 
ISignalPort * m_Input2
 
ISignalPort * m_Input3
 
double * m_Signal
 
int m_iPortWidth
 The width of the input and output ports.
 

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