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

java.lang.Object
  上位を拡張 jp.go.aist.rtm.RTC.port.PortAdmin

public class PortAdmin
extends java.lang.Object

Portの管理を行うクラスです。


入れ子のクラスの概要
protected  class PortAdmin.find_port
           
protected  class PortAdmin.find_port_name
           
protected  class PortAdmin.port_prof_collect
           
 
コンストラクタの概要
PortAdmin(org.omg.CORBA.ORB orb, org.omg.PortableServer.POA poa)
          コンストラクタです。
 
メソッドの概要
 void activatePorts()
          全ての Port のインターフェースを activates する。
 boolean addPort(PortBase port)
           Regsiter the Port
 boolean addPort(PortService port)
           Regsiter the Port
 void deactivatePorts()
          全ての Port のインターフェースを deactivates する。
 void deletePort(PortBase port)
           [local interface] Unregister Port
 void deletePort(PortService port)
           [local interface] Unregister Port
 void deletePortByName(java.lang.String portName)
           Unregister the Port's registration by its name
 void finalizePorts()
           Deactivate all Ports and unregister them
 PortBase getPort(java.lang.String portName)
           Get pointer to the Port's servant
 PortServiceListHolder getPortList()
          登録されているPortのリストを取得します。
 PortProfileListHolder getPortProfileList()
           Get PorProfileList
 PortService getPortRef(java.lang.String portName)
           Get the reference to Port object
 PortServiceListHolder getPortServiceList()
           Get PortServiceList
 void registerPort(PortBase port)
          Portサーバントを登録します。
 void registerPort(PortService port)
           Regsiter the Port
 boolean removePort(PortBase port)
           Unregister the Port registration
 boolean removePort(PortService port)
           Unregister the Port registration
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PortAdmin

public PortAdmin(org.omg.CORBA.ORB orb,
                 org.omg.PortableServer.POA poa)

コンストラクタです。

パラメータ:
orb - ORBオブジェクト
poa - POAオブジェクト
メソッドの詳細

getPortList

public PortServiceListHolder getPortList()

登録されているPortのリストを取得します。

戻り値:
Portオブジェクトリストを内包するPortServiceListHolderオブジェクト

getPortServiceList

public PortServiceListHolder getPortServiceList()
Get PortServiceList

This operation returns the pointer to the PortServiceList of Ports registered by addPort().

戻り値:
The pointer points PortServiceList

activatePorts

public void activatePorts()

全ての Port のインターフェースを activates する。


deactivatePorts

public void deactivatePorts()

全ての Port のインターフェースを deactivates する。


getPortProfileList

public final PortProfileListHolder getPortProfileList()
Get PorProfileList

A This operation gets the Profile list of Ports registered by addPort().

戻り値:
The pointer points PortProfile list

getPortRef

public PortService getPortRef(java.lang.String portName)
Get the reference to Port object

This operation returns the reference of Port object specified by port_name. The port specified by port_name must be already registered in addPort().

パラメータ:
portName - The name of Port to be returned the reference.
戻り値:
PortService_ptr Port object reference.

getPort

public PortBase getPort(java.lang.String portName)
Get pointer to the Port's servant

This operation returns the pointer to the PortBase servant registered by addPort(). The port specified by port_name must be already registered in addPort().

パラメータ:
portName - The name of Port
戻り値:
PortBase The Ojbect to Port's servant.

addPort

public boolean addPort(PortBase port)

Regsiter the Port

This operation registers the Port's servant given by argument. The given Port's servant will be activated on the POA that is given to the constructor, and the created object reference is set to the Port's profile.

パラメータ:
port - The Port's servant.
戻り値:
Register result (Successful:true, Failed:false)

addPort

public boolean addPort(PortService port)

Regsiter the Port

This operation registers the Port's servant given by argument. The given Port's servant will be activated on the POA that is given to the constructor, and the created object reference is set to the Port's profile.

パラメータ:
port - The Port's servant.
戻り値:
Register result (Successful:true, Failed:false)

registerPort

public void registerPort(PortBase port)

Portサーバントを登録します。

パラメータ:
port - 登録するPortサーバント

registerPort

public void registerPort(PortService port)
Regsiter the Port

This operation registers the Port's servant given by argument. The given Port's servant will be activated on the POA that is given to the constructor, and the created object reference is set to the Port's profile.

パラメータ:
port - The Port's servant.

removePort

public boolean removePort(PortBase port)
Unregister the Port registration

This operation unregisters the Port registration. When the Port is unregistered, Port is deactivated, and the object reference in the Port's profile is set to nil.

パラメータ:
port - The Port's servant.
戻り値:
Unregister result (Successful:true, Failed:false)

removePort

public boolean removePort(PortService port)
Unregister the Port registration

This operation unregisters the Port registration. When the Port is unregistered, Port is deactivated, and the object reference in the Port's profile is set to nil.

パラメータ:
port - The Port's servant.
戻り値:
Unregister result (Successful:true, Failed:false)

deletePort

public void deletePort(PortBase port)
[local interface] Unregister Port

This operation unregisters a Port held by this RTC. When the Port is unregistered, Port is deactivated, and the object reference in the Port's profile is set to nil.

パラメータ:
port - The Port's servant.

deletePort

public void deletePort(PortService port)
[local interface] Unregister Port

This operation unregisters a Port held by this RTC. When the Port is unregistered, Port is deactivated, and the object reference in the Port's profile is set to nil.

パラメータ:
port - The Port's servant.

deletePortByName

public void deletePortByName(java.lang.String portName)
Unregister the Port's registration by its name

This operation unregister the Port's registration specified by port_ name. When the Port is unregistered, Port is deactivated, and the object reference in the Port's profile is set to nil.

パラメータ:
portName - The Port's name.

finalizePorts

public void finalizePorts()
Deactivate all Ports and unregister them

This operation deactivates the all Port and deletes the all Port's registrations from the list.