jp.go.aist.rtm.RTC.port
Class InPortConnector

java.lang.Object
  extended by jp.go.aist.rtm.RTC.port.ConnectorBase
      extended by jp.go.aist.rtm.RTC.port.InPortConnector
Direct Known Subclasses:
InPortPullConnector, InPortPushConnector

public abstract class InPortConnector
extends ConnectorBase

InPortConnector base class

The base class to derive subclasses for InPort's Push/Pull Connectors


Nested Class Summary
 
Nested classes/interfaces inherited from class jp.go.aist.rtm.RTC.port.ConnectorBase
ConnectorBase.ConnectorInfo, ConnectorBase.ConnectorInfoHolder
 
Field Summary
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  com.sun.corba.se.spi.orb.ORB m_spi_orb
           
protected  Logbuf rtcout
           
 
Constructor Summary
InPortConnector(ConnectorBase.ConnectorInfo profile, BufferBase<org.omg.CORBA.portable.OutputStream> buffer)
           Constructor
 
Method Summary
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.
 
Methods inherited from class jp.go.aist.rtm.RTC.port.ConnectorBase
activate, deactivate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rtcout

protected Logbuf rtcout

m_profile

protected ConnectorBase.ConnectorInfo m_profile

m_buffer

protected BufferBase<org.omg.CORBA.portable.OutputStream> m_buffer

m_isLittleEndian

protected boolean m_isLittleEndian

m_spi_orb

protected com.sun.corba.se.spi.orb.ORB m_spi_orb

m_orb

protected org.omg.CORBA.ORB m_orb
Constructor Detail

InPortConnector

public InPortConnector(ConnectorBase.ConnectorInfo profile,
                       BufferBase<org.omg.CORBA.portable.OutputStream> buffer)
Constructor

Parameters:
profile - ConnectorInfo object which includes connection information
buffer - A pointer to the buffer of the connector
Method Detail

profile

public final ConnectorBase.ConnectorInfo profile()
Getting ConnectorInfo

This operation returns ConnectorInfo

Specified by:
profile in class ConnectorBase
Returns:
ConnectorInfo object which is owned by this connector

id

public final java.lang.String id()
Getting Connector ID

This operation returns Connector ID

Specified by:
id in class ConnectorBase
Returns:
A pointer to the connector id string

name

public final java.lang.String name()
Getting Connector name

This operation returns Connector name

Specified by:
name in class ConnectorBase
Returns:
A pointer to the connector's name string

disconnect

public abstract ReturnCode disconnect()
Disconnect connection

This operation disconnect this connection

Specified by:
disconnect in class ConnectorBase
Returns:
ReturnCode

getBuffer

public BufferBase<org.omg.CORBA.portable.OutputStream> getBuffer()
Getting Buffer

This operation returns this connector's buffer

Specified by:
getBuffer in class ConnectorBase
Returns:
A pointer to the buffer owned by this connector

setEndian

public void setEndian(boolean isLittleEndian)
Setting an endian type

This operation set this connector's endian type

Parameters:
isLittleEndian - true: little, false: big

isLittleEndian

public boolean isLittleEndian()
Returns endian

This value is true if the architecture is little-endian; false if it is big-endian.

Returns:
Returns the endian setting.

setListener

public abstract void setListener(ConnectorBase.ConnectorInfo profile,
                                 ConnectorListeners listeners)
Set the listener.

Parameters:
profile - Connector information
listeners - Listener objects

read

public abstract ReturnCode read(DataRef<org.omg.CORBA.portable.InputStream> data)
Reading data