jp.go.aist.rtm.RTC
Class FactoryBase

java.lang.Object
  extended by jp.go.aist.rtm.RTC.FactoryBase
Direct Known Subclasses:
FactoryJava

public abstract class FactoryBase
extends java.lang.Object

This is a base class for RT-Component factory.


Field Summary
protected  int m_Number
           Number of current RT-Component's instances.
protected  Properties m_Profile
           Component profile
 
Constructor Summary
FactoryBase(Properties profile)
           Constructor
 
Method Summary
abstract  RTObject_impl create(Manager mgr)
           Create components
abstract  RTObject_impl destroy(RTObject_impl comp)
           Destroy components
 int number()
           Get the number of current instances
 Properties profile()
           Get the component profile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_Profile

protected Properties m_Profile
Component profile


m_Number

protected int m_Number
Number of current RT-Component's instances.

Constructor Detail

FactoryBase

public FactoryBase(Properties profile)
Constructor

Parameters:
profile - Component profile
Method Detail

create

public abstract RTObject_impl create(Manager mgr)
Create components

Pure virtual function to create RT-Component's instances

Parameters:
mgr - Manager object
Returns:
Created RT-Components

destroy

public abstract RTObject_impl destroy(RTObject_impl comp)
Destroy components

Pure virtual function to destroy RT-Component's instances

Parameters:
comp - The target RT-Component for destruction

profile

public Properties profile()
Get the component profile

Get the component profile.

Returns:
The component profile

number

public int number()
Get the number of current instances

Get the number of current RT-Component's instances.

Returns:
Number of RT-Component's instances