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

Public Member Functions

 ExternalLinkStandard (std::string simObjectName, ISimObjectCreator *creator)
 
virtual ~ExternalLinkStandard ()
 reads parameters, registers states, input/output ports and shared resources
 
virtual bool SetMyOutputPort (const std::string &portName, const double *portValueArray)
 
virtual bool SetMyOutputPortWithCopy (const std::string &portName, const double *portValueArray)
 Sets value of externalobject output port. Only stores pointer, does NOT copy values.
 
virtual const double * GetMyInputPort (const std::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 std::vector< std::string > GetAllInputPorts ()
 Gets value of externalobject input port.
 
virtual std::vector< std::string > GetAllOutputPorts ()
 Get names of all input ports.
 
virtual int GetInputPortSize (std::string portName)
 Get names of all output ports.
 
virtual int GetOutputPortSize (std::string portName)
 Get size of input port, -1 if the name or index is unknown.
 
virtual int GetInputPortSize (int portIndex)
 Get size of output port, -1 if the name or index is unknown.
 
virtual int GetOutputPortSize (int portIndex)
 Get size of input port, -1 if the name or index is unknown.
 
virtual int GetMyInputPortIndex (const std::string &portName)
 Get size of output port, -1 if the name or index is unknown.
 
virtual bool SetMyOutputPortWithIndex (const int portName, const double *portValueArray)
 Gets index of externalobject input port, -1 if the name is unknown.
 
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
 
std::map< std::string, int > m_OutputPortIndex
 number of inputPorts;
 
std::map< std::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: