Marine systems simulation
ExternalLinkStandard Class Reference
+ Inheritance diagram for ExternalLinkStandard:
+ Collaboration diagram for ExternalLinkStandard:

Public Member Functions

 ExternalLinkStandard (string simObjectName, ISimObjectCreator *creator)
 
virtual ~ExternalLinkStandard ()
 reads parameters, registers states, input/output ports and shared resources
 
virtual bool SetMyOutputPort (const string &portName, const double *portValueArray)
 
virtual bool SetMyOutputPortWithCopy (const string &portName, const double *portValueArray)
 Sets value of externalobject output port. Only stores pointer, does NOT copy values.
 
virtual const double * GetMyInputPort (const string &portName)
 Sets value of externalobject output port. Copies values to internal buffer.
 
virtual bool SetMyOutputPort (int portIndex, const double *portValueArray)
 Gets value of externalobject input port.
 
virtual bool SetMyOutputPortWithCopy (int portIndex, const double *portValueArray)
 Sets value of externalobject output port. Only stores pointer, does NOT copy values.
 
virtual const double * GetMyInputPort (int portIndex)
 Sets value of externalobject output port. Copies values to internal buffer.
 
virtual vector< string > GetAllInputPorts ()
 Gets value of externalobject input port.
 
virtual vector< string > GetAllOutputPorts ()
 Get names of all input ports.
 
virtual int GetInputPortSize (string portName)
 Get names of all output ports.
 
virtual int GetOutputPortSize (string portName)
 Get size of input port.
 
virtual int GetInputPortSize (int portIndex)
 Get size of output port.
 
virtual int GetOutputPortSize (int portIndex)
 Get size of input port.
 
virtual int GetMyInputPortIndex (const string &portName)
 Get size of output port.
 
virtual bool SetMyOutputPortWithIndex (const int portName, const double *portValueArray)
 Gets index of externalobject input port.
 
virtual bool SetMyOutputPortWithCopyWithIndex (const int portName, const double *portValueArray)
 Sets value of externalobject output port. Only stores pointer, does NOT copy values.
 

Protected Member Functions

const double * externalPort (const double T, const double *const X, const int index)
 Sets value of externalobject output port. Copies values to internal buffer.
 

Protected Attributes

const double ** m_OutputArrays
 indexed output port. See PortDefs.h.
 
int * m_outputPortSize
 holds pointers to all output port arrays
 
double ** m_LocalBufferArrays
 size of all output ports
 
int m_numOutputPorts
 holds pointers to initialized values
 
ISignalPort ** m_InputPorts
 number of outputPorts;
 
int * m_inputPortSize
 holds pointers to all input port ISignalPorts
 
int m_numInputPorts
 size of all input ports
 
map< string, int > m_OutputPortIndex
 number of inputPorts;
 
map< string, int > m_InputPortIndex
 maps the names of output ports to index in m_OutputArrays
 

Static Protected Attributes

static std::recursive_mutex s_Mutex
 maps the names of input ports to index in m_InputPorts
 

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