jp.go.aist.rtm.RTC
Class FactoryJava

java.lang.Object
  extended by jp.go.aist.rtm.RTC.FactoryBase
      extended by jp.go.aist.rtm.RTC.FactoryJava

 class FactoryJava
extends FactoryBase

This class is implementation of the component factory for Java.


Field Summary
protected  RtcDeleteFunc m_Delete
           Interface of component for destruction
protected  RtcNewFunc m_New
           Interface of created component
protected  NumberingPolicy m_policy
           Class for numbering policy (naming policy) management when component is generated
 
Fields inherited from class jp.go.aist.rtm.RTC.FactoryBase
m_Number, m_Profile
 
Constructor Summary
FactoryJava(Properties profile, RtcNewFunc newFunc, RtcDeleteFunc deleteFunc)
           Constructor
FactoryJava(Properties profile, RtcNewFunc newFunc, RtcDeleteFunc deleteFunc, NumberingPolicy policy)
           Constructor
 
Method Summary
 RTObject_impl create(Manager mgr)
           Creates the component
 RTObject_impl destroy(RTObject_impl comp)
           Destroys the component
 
Methods inherited from class jp.go.aist.rtm.RTC.FactoryBase
number, profile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_New

protected RtcNewFunc m_New
Interface of created component


m_Delete

protected RtcDeleteFunc m_Delete
Interface of component for destruction


m_policy

protected NumberingPolicy m_policy
Class for numbering policy (naming policy) management when component is generated

Constructor Detail

FactoryJava

public FactoryJava(Properties profile,
                   RtcNewFunc newFunc,
                   RtcDeleteFunc deleteFunc)
Constructor

Manages generation and the annulment of the component by the specified parameter.

Parameters:
profile - Profile of component
newFunc - Method for component creation
deleteFunc - Method for component destruction

FactoryJava

public FactoryJava(Properties profile,
                   RtcNewFunc newFunc,
                   RtcDeleteFunc deleteFunc,
                   NumberingPolicy policy)
Constructor

Parameters:
profile - Profile of component
newFunc - Method for component creation
deleteFunc - Method for component destruction
policy - Numbering policy(naming policy) of created instance
Method Detail

create

public RTObject_impl create(Manager mgr)
Creates the component

Specified by:
create in class FactoryBase
Parameters:
mgr - Manager object
Returns:
Instance of created component

destroy

public RTObject_impl destroy(RTObject_impl comp)
Destroys the component

Specified by:
destroy in class FactoryBase
Parameters:
comp - Instance of component for destruction