All Packages Class Hierarchy This Package Previous Next Index
Class ch.jp.robwar.ClassHolder
java.lang.Object
|
+----ch.jp.robwar.ClassHolder
- public class ClassHolder
- extends Object
Can generate classes, given the classe's name.
This is used to hold the brains for TestBed.
-
className
-
-
ClassHolder(String)
-
-
getInteractive()
- This is specific to robot brains:
A brain is considered interactive if it implements the
InteractiveBrain interface.
-
getInvalid()
- This is specific to robot brains:
It returns true if a brain should be interactive but
does not implement the InteractiveBrain interface.
-
getName()
-
-
getNew()
- Returns a new instance of the class, if possible
-
getShortName()
-
-
implementsInterface(Class)
- returns true if the class implements a given interface.
-
toString()
-
className
public String className
ClassHolder
public ClassHolder(String name)
getInteractive
public boolean getInteractive()
- This is specific to robot brains:
A brain is considered interactive if it implements the
InteractiveBrain interface. A non-interactive brain
cannot implement the KeyListener or WindowListener interfaces.
getInvalid
public boolean getInvalid()
- This is specific to robot brains:
It returns true if a brain should be interactive but
does not implement the InteractiveBrain interface.
implementsInterface
public boolean implementsInterface(Class theInterface)
- returns true if the class implements a given interface.
Note that in case of a problem it will always return false.
getNew
public Object getNew() throws IllegalAccessException, InstantiationException, ClassNotFoundException
- Returns a new instance of the class, if possible
getName
public String getName()
getShortName
public String getShortName()
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index