47#ifndef EXTERNAL_LINK_STANDARD_H
48#define EXTERNAL_LINK_STANDARD_H
54#include "ExternalLink.h"
67 virtual bool SetMyOutputPort(
const string& portName,
const double* portValueArray);
88 const double*
externalPort(
const double T,
const double*
const X,
const int index);
Definition: ExternalLinkStandard.h:63
virtual bool SetMyOutputPort(int portIndex, const double *portValueArray)
Gets value of externalobject input port.
int m_numInputPorts
size of all input ports
Definition: ExternalLinkStandard.h:96
double ** m_LocalBufferArrays
size of all output ports
Definition: ExternalLinkStandard.h:92
int m_numOutputPorts
holds pointers to initialized values
Definition: ExternalLinkStandard.h:93
map< string, int > m_OutputPortIndex
number of inputPorts;
Definition: ExternalLinkStandard.h:97
virtual int GetMyInputPortIndex(const string &portName)
Get size of output port.
virtual int GetOutputPortSize(string portName)
Get size of input port.
virtual bool SetMyOutputPortWithCopy(const string &portName, const double *portValueArray)
Sets value of externalobject output port. Only stores pointer, does NOT copy values.
const double ** m_OutputArrays
indexed output port. See PortDefs.h.
Definition: ExternalLinkStandard.h:90
virtual int GetOutputPortSize(int portIndex)
Get size of input port.
virtual bool SetMyOutputPortWithCopyWithIndex(const int portName, const double *portValueArray)
Sets value of externalobject output port. Only stores pointer, does NOT copy values.
virtual bool SetMyOutputPortWithCopy(int portIndex, const double *portValueArray)
Sets value of externalobject output port. Only stores pointer, does NOT copy values.
int * m_inputPortSize
holds pointers to all input port ISignalPorts
Definition: ExternalLinkStandard.h:95
virtual int GetInputPortSize(int portIndex)
Get size of output port.
virtual bool SetMyOutputPortWithIndex(const int portName, const double *portValueArray)
Gets index of externalobject input port.
ISignalPort ** m_InputPorts
number of outputPorts;
Definition: ExternalLinkStandard.h:94
virtual int GetInputPortSize(string portName)
Get names of all output ports.
const double * externalPort(const double T, const double *const X, const int index)
Sets value of externalobject output port. Copies values to internal buffer.
static std::recursive_mutex s_Mutex
maps the names of input ports to index in m_InputPorts
Definition: ExternalLinkStandard.h:102
virtual vector< string > GetAllInputPorts()
Gets value of externalobject input port.
int * m_outputPortSize
holds pointers to all output port arrays
Definition: ExternalLinkStandard.h:91
virtual ~ExternalLinkStandard()
reads parameters, registers states, input/output ports and shared resources
virtual const double * GetMyInputPort(int portIndex)
Sets value of externalobject output port. Copies values to internal buffer.
virtual vector< string > GetAllOutputPorts()
Get names of all input ports.
map< string, int > m_InputPortIndex
maps the names of output ports to index in m_OutputArrays
Definition: ExternalLinkStandard.h:98
virtual const double * GetMyInputPort(const string &portName)
Sets value of externalobject output port. Copies values to internal buffer.