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.


Variable Index

 o className

Constructor Index

 o ClassHolder(String)

Method Index

 o getInteractive()
This is specific to robot brains: A brain is considered interactive if it implements the InteractiveBrain interface.
 o getInvalid()
This is specific to robot brains: It returns true if a brain should be interactive but does not implement the InteractiveBrain interface.
 o getName()
 o getNew()
Returns a new instance of the class, if possible
 o getShortName()
 o implementsInterface(Class)
returns true if the class implements a given interface.
 o toString()

Variables

 o className
 public String className

Constructors

 o ClassHolder
 public ClassHolder(String name)

Methods

 o 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.

 o 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.

 o 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.

 o getNew
 public Object getNew() throws IllegalAccessException, InstantiationException, ClassNotFoundException
Returns a new instance of the class, if possible

 o getName
 public String getName()
 o getShortName
 public String getShortName()
 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index