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

java.lang.Object
  extended by jp.go.aist.rtm.RTC.port.PortAdmin

public class PortAdmin
extends java.lang.Object

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


Nested Class Summary
protected  class PortAdmin.find_port
           
protected  class PortAdmin.find_port_name
           
protected  class PortAdmin.port_prof_collect
           
 
Constructor Summary
PortAdmin(org.omg.CORBA.ORB orb, org.omg.PortableServer.POA poa)
          コンストラクタです。
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortAdmin

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

コンストラクタです。

Parameters:
orb - ORBオブジェクト
poa - POAオブジェクト
Method Detail

getPortList

public PortServiceListHolder getPortList()

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

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

getPortServiceList

public PortServiceListHolder getPortServiceList()
Get PortServiceList

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

Returns:
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().

Returns:
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().

Parameters:
portName - The name of Port to be returned the reference.
Returns:
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().

Parameters:
portName - The name of Port
Returns:
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.

Parameters:
port - The Port's servant.
Returns:
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.

Parameters:
port - The Port's servant.
Returns:
Register result (Successful:true, Failed:false)

registerPort

public void registerPort(PortBase port)

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

Parameters:
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.

Parameters:
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.

Parameters:
port - The Port's servant.
Returns:
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.

Parameters:
port - The Port's servant.
Returns:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.