jp.go.aist.rtm.RTC.port
クラス InPortBase

java.lang.Object
  上位を拡張 org.omg.PortableServer.Servant
      上位を拡張 RTC.PortServicePOA
          上位を拡張 jp.go.aist.rtm.RTC.port.PortBase
              上位を拡張 jp.go.aist.rtm.RTC.port.InPortBase
すべての実装されたインタフェース:
SDOServiceOperations, org.omg.CORBA.portable.InvokeHandler, PortServiceOperations
直系の既知のサブクラス:
InPort

public class InPortBase
extends PortBase

InPortBase

Port for InPort

This is an implementation class for the data input port.


入れ子のクラスの概要
 
クラス jp.go.aist.rtm.RTC.port.PortBase から継承された入れ子のクラス/インタフェース
PortBase.connect_func, PortBase.disconnect_all_func, PortBase.disconnect_func, PortBase.find_conn_id, PortBase.find_interface, PortBase.find_port_ref
 
フィールドの概要
protected  java.util.Vector<InPortConnector> m_connectors
           
protected  java.util.Vector<java.lang.String> m_consumerTypes
           
protected  Properties m_properties
           
protected  java.util.Vector<java.lang.String> m_providerTypes
           
protected  boolean m_singlebuffer
           
protected  BufferBase<org.omg.CORBA.portable.OutputStream> m_thebuffer
           
 
クラス jp.go.aist.rtm.RTC.port.PortBase から継承されたフィールド
m_objref, m_onConnected, m_onConnectionLost, m_onDisconnected, m_onPublishInterfaces, m_onSubscribeInterfaces, m_onUnsubscribeInterfaces, m_profile, m_profile_mutex, rtcout
 
コンストラクタの概要
InPortBase(java.lang.String name, java.lang.String data_type)
           Constructor
 
メソッドの概要
 void activateInterfaces()
           Activate all Port interfaces This operation activate all interfaces that is registered in the ports.
protected  InPortConnector createConnector(ConnectorProfileHolder cprof, Properties prop, InPortProvider provider)
           InPortPushConnector creation Connector is created, preserves it in m_connectors.
protected  InPortConnector createConnector(ConnectorProfileHolder cprof, Properties prop, OutPortConsumer consumer)
           InPortPullConnector creation Connector is created, preserves it in m_connectors.
protected  OutPortConsumer createConsumer(ConnectorProfileHolder cprof, Properties prop)
           InPort provider creation OutPortConsumer is created.
protected  InPortProvider createProvider(ConnectorProfileHolder cprof, Properties prop)
           InPort provider creation InPortProvider is created, and information is published to ConnectorProfile.
 void deactivateInterfaces()
           Deactivate all Port interfaces This operation deactivate all interfaces that is registered in the ports.
 void init()
           init
protected  void initConsumers()
           OutPort consumer initialization
protected  void initProviders()
           InPort provider initialization
 boolean isLittleEndian()
           
 Properties properties()
           
protected  ReturnCode_t publishInterfaces(ConnectorProfileHolder cprof)
           Publish interface information Publish interface information.
protected  ReturnCode_t subscribeInterfaces(ConnectorProfileHolder cprof)
           Subscribe to the interface Subscribe to interface.
protected  void unsubscribeInterfaces(ConnectorProfile connector_profile)
           Disconnect the interface connection Disconnect the interface connection.
 
クラス jp.go.aist.rtm.RTC.port.PortBase から継承されたメソッド
_this, addProperty, appendInterface, appendProperty, connect, connectNext, deleteInterface, disconnect_all, disconnect, disconnectNext, eraseConnectorProfile, findConnProfile, findConnProfileIndex, get_connector_profile, get_connector_profiles, get_port_profile, getPortProfile, getPortRef, getProfile, getUUID, isEmptyId, isExistingConnId, notify_connect, notify_disconnect, setName, setOnConnected, setOnConnectionLost, setOnDisconnected, setOnPublishInterfaces, setOnSubscribeInterfaces, setOnUnsubscribeInterfaces, setOwner, setPortRef, setUUID, updateConnectorProfile
 
クラス RTC.PortServicePOA から継承されたメソッド
_all_interfaces, _invoke, _this
 
クラス org.omg.PortableServer.Servant から継承されたメソッド
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

m_singlebuffer

protected boolean m_singlebuffer

m_thebuffer

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

m_properties

protected Properties m_properties

m_providerTypes

protected java.util.Vector<java.lang.String> m_providerTypes

m_consumerTypes

protected java.util.Vector<java.lang.String> m_consumerTypes

m_connectors

protected java.util.Vector<InPortConnector> m_connectors
コンストラクタの詳細

InPortBase

public InPortBase(java.lang.String name,
                  java.lang.String data_type)

Constructor

パラメータ:
name - Port name
data_type - Specify the data type used in the InPort object.
メソッドの詳細

properties

public Properties properties()

init

public void init()

init


activateInterfaces

public void activateInterfaces()

Activate all Port interfaces

This operation activate all interfaces that is registered in the

ports.

定義:
クラス PortBase 内の activateInterfaces

deactivateInterfaces

public void deactivateInterfaces()

Deactivate all Port interfaces

This operation deactivate all interfaces that is registered in the

ports.

定義:
クラス PortBase 内の deactivateInterfaces

publishInterfaces

protected ReturnCode_t publishInterfaces(ConnectorProfileHolder cprof)

Publish interface information

Publish interface information.

Assign the Provider information that owned by this port

to ConnectorProfile#properties

定義:
クラス PortBase 内の publishInterfaces
パラメータ:
cprof - The connector profile
戻り値:
The return code of ReturnCode_t type

subscribeInterfaces

protected ReturnCode_t subscribeInterfaces(ConnectorProfileHolder cprof)

Subscribe to the interface

Subscribe to interface.

Derive Provider information that matches Consumer owned by the Port

from ConnectorProfile#properties and

set the Consumer to the reference of the CORBA object.

定義:
クラス PortBase 内の subscribeInterfaces
パラメータ:
cprof - The connector profile
戻り値:
ReturnCode_t The return code of ReturnCode_t type

unsubscribeInterfaces

protected void unsubscribeInterfaces(ConnectorProfile connector_profile)

Disconnect the interface connection

Disconnect the interface connection.

Release all objects set in Consumer associated with

given ConnectorProfile and unscribe the interface.

定義:
クラス PortBase 内の unsubscribeInterfaces
パラメータ:
connector_profile - The connector profile

initProviders

protected void initProviders()

InPort provider initialization


initConsumers

protected void initConsumers()

OutPort consumer initialization


createProvider

protected InPortProvider createProvider(ConnectorProfileHolder cprof,
                                        Properties prop)

InPort provider creation

InPortProvider is created,

and information is published to ConnectorProfile.

null is returned if failing in creation.


createConsumer

protected OutPortConsumer createConsumer(ConnectorProfileHolder cprof,
                                         Properties prop)

InPort provider creation

OutPortConsumer is created.

null is returned if failing in creation.


createConnector

protected InPortConnector createConnector(ConnectorProfileHolder cprof,
                                          Properties prop,
                                          InPortProvider provider)

InPortPushConnector creation

Connector is created,

preserves it in m_connectors.

null is returned if failing in creation.


createConnector

protected InPortConnector createConnector(ConnectorProfileHolder cprof,
                                          Properties prop,
                                          OutPortConsumer consumer)

InPortPullConnector creation

Connector is created,

preserves it in m_connectors.

0 is returned if failing in creation.


isLittleEndian

public boolean isLittleEndian()