public abstract class InPortConnector extends ConnectorBase
The base class to derive subclasses for InPort's Push/Pull Connectors
ConnectorBase.ConnectorInfo, ConnectorBase.ConnectorInfoHolder
Modifier and Type | Field and Description |
---|---|
protected BufferBase<org.omg.CORBA.portable.OutputStream> |
m_buffer |
protected boolean |
m_isLittleEndian |
protected org.omg.CORBA.ORB |
m_orb |
protected ConnectorBase.ConnectorInfo |
m_profile |
protected Logbuf |
rtcout |
Constructor and Description |
---|
InPortConnector(ConnectorBase.ConnectorInfo profile,
BufferBase<org.omg.CORBA.portable.OutputStream> buffer)
Constructor
|
Modifier and Type | Method and Description |
---|---|
abstract ReturnCode |
disconnect()
Disconnect connection
|
BufferBase<org.omg.CORBA.portable.OutputStream> |
getBuffer()
Getting Buffer
|
java.lang.String |
id()
Getting Connector ID
|
boolean |
isLittleEndian()
Returns endian
|
java.lang.String |
name()
Getting Connector name
|
ConnectorBase.ConnectorInfo |
profile()
Getting ConnectorInfo
|
abstract ReturnCode |
read(DataRef<org.omg.CORBA.portable.InputStream> data)
Reading data
|
void |
setEndian(boolean isLittleEndian)
Setting an endian type
|
abstract void |
setListener(ConnectorBase.ConnectorInfo profile,
ConnectorListeners listeners)
Set the listener.
|
activate, deactivate
protected Logbuf rtcout
protected ConnectorBase.ConnectorInfo m_profile
protected BufferBase<org.omg.CORBA.portable.OutputStream> m_buffer
protected boolean m_isLittleEndian
protected org.omg.CORBA.ORB m_orb
public InPortConnector(ConnectorBase.ConnectorInfo profile, BufferBase<org.omg.CORBA.portable.OutputStream> buffer)
profile
-
ConnectorInfo object which includes connection informationbuffer
-
A pointer to the buffer of the connectorpublic final ConnectorBase.ConnectorInfo profile()
This operation returns ConnectorInfo
profile
in class ConnectorBase
public final java.lang.String id()
This operation returns Connector ID
id
in class ConnectorBase
public final java.lang.String name()
This operation returns Connector name
name
in class ConnectorBase
public abstract ReturnCode disconnect()
This operation disconnect this connection
disconnect
in class ConnectorBase
public BufferBase<org.omg.CORBA.portable.OutputStream> getBuffer()
This operation returns this connector's buffer
getBuffer
in class ConnectorBase
public void setEndian(boolean isLittleEndian)
This operation set this connector's endian type
isLittleEndian
-
true: little, false: bigpublic boolean isLittleEndian()
This value is true if the architecture is little-endian; false if it is big-endian.
public abstract void setListener(ConnectorBase.ConnectorInfo profile, ConnectorListeners listeners)
profile
-
Connector informationlisteners
-
Listener objectspublic abstract ReturnCode read(DataRef<org.omg.CORBA.portable.InputStream> data)