neosim.iface
Interface NeosimClass

All Known Subinterfaces:
EntityClass, EventClass
All Known Implementing Classes:
NeosimClassImpl

public interface NeosimClass
extends java.io.Serializable

This stores the name, parent and ID of a class. The method isAssignableFrom() provides basic type checking - classes are asssignable from other identical classes or derived classes.


Method Summary
 ClassID getClassID()
          Return the integer class ID
 java.lang.String getName()
          Check if this class is assignable from another class.
 java.lang.String getPackage()
          Return the package of this class.
 NeosimClass getParent()
          Return the parent class from which this one is derived
 

Method Detail

getParent

public NeosimClass getParent()
Return the parent class from which this one is derived
Returns:
the parent class, or null if no parent

getClassID

public ClassID getClassID()
Return the integer class ID
Returns:
the class id

getName

public java.lang.String getName()
Check if this class is assignable from another class. A class is assignable from another if the other class is the same, or derived from this class. e.g. event.isAssignableFrom( myKindOfEvent ) returns true
Returns:
true if ec is a sub class of this one public boolean isAssignableFrom( NeosimClass ec ); /** Return the name of this class

getPackage

public java.lang.String getPackage()
Return the package of this class.