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 OutPortBase |
m_directOutPort
OutProt pointer to the peer in the same process
|
protected boolean |
m_isLittleEndian |
(package private) ConnectorListeners |
m_listeners
A reference to a ConnectorListener
|
protected org.omg.CORBA.ORB |
m_orb |
protected ConnectorListeners |
m_outPortListeners
A pointer to a OutPort's ConnectorListener
|
protected ConnectorBase.ConnectorInfo |
m_profile |
protected Logbuf |
rtcout |
Constructor and Description |
---|
InPortConnector(ConnectorBase.ConnectorInfo profile,
ConnectorListeners listeners,
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.
|
boolean |
setOutPort(OutPortBase directOutPort)
Sets the object of OutPort
|
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
ConnectorListeners m_listeners
protected OutPortBase m_directOutPort
protected ConnectorListeners m_outPortListeners
public InPortConnector(ConnectorBase.ConnectorInfo profile, ConnectorListeners listeners, 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)
public boolean setOutPort(OutPortBase directOutPort)
Set an object of OutPortBase for a direct port.
directOutPort
-
OutPortBase object