|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.go.aist.rtm.RTC.ObjectManager<IDENTIFIER,TARGET>
IDENTIFIER
-
The data type of the object flag is specified.TARGET
-
The type of the object to be managed is specified.public class ObjectManager<IDENTIFIER,TARGET>
Class for managing objects
This is a class for managing various objects.
Field Summary | |
---|---|
protected java.util.Vector<TARGET> |
m_objects
The list of registered objects |
Constructor Summary | |
---|---|
ObjectManager()
|
Method Summary | |
---|---|
TARGET |
find(equalFunctor equalFunc)
Find the object |
java.util.Vector<TARGET> |
getObjects()
Get a list of obejects that are registerd |
boolean |
registerObject(TARGET obj,
equalFunctor equalFunc)
Register the specified object |
TARGET |
unregisterObject(equalFunctor equalFunc)
Unregister the specified object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Vector<TARGET> m_objects
Constructor Detail |
---|
public ObjectManager()
Method Detail |
---|
public boolean registerObject(TARGET obj, equalFunctor equalFunc)
Register the object that was specified. If the same object is already registered, this does not anything.
obj
-
The target object for the registrationequalFunc
-
The Object used for the same judgment.
public TARGET unregisterObject(equalFunctor equalFunc)
Unregister the object that was specified and get it. This operation returns NULL if the specified object is not registered.
equalFunc
-
The object of the target object for the unregistration
public TARGET find(equalFunctor equalFunc)
Find the object that matches the specified condition among the registered objects and get it. This operation returns NULL if the object that does matches the specified condition is not registered.
equalFunc
-
The object of the target object for finding
public java.util.Vector<TARGET> getObjects()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |