|
Evolvica Core API Version 0.6.3 Last Modified: July 20 2004 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.evolvica.core.GenotypeID
Default implementation of a genotype ID. This class is not intended to be subclassed.
| Nested Class Summary |
| Nested classes inherited from class org.evolvica.engine.IDatatype |
IDatatype.UniversalDatatype |
| Field Summary | |
protected java.lang.Class |
clazz
The referenced genotype class. |
| Fields inherited from interface org.evolvica.engine.IDatatype |
UNIVERSAL |
| Constructor Summary | |
GenotypeID(java.lang.Class clazz)
Constructor. |
|
| Method Summary | |
java.lang.String |
getName()
Return the name of this identifier. |
java.lang.Class |
getReferencedClass()
Returns the class of the referenced datatype. |
boolean |
isCompatibleTo(IDatatype otherDatatype)
Checks if this datatype is compatible to another datatype. |
boolean |
isEqualTo(IDatatype otherDatatype)
Checks if this ID equals the given (other) ID. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.Class clazz
| Constructor Detail |
public GenotypeID(java.lang.Class clazz)
clazz - genotype class| Method Detail |
public java.lang.String getName()
IDatatype
getName in interface IDatatypeIDatatype.getName()public java.lang.Class getReferencedClass()
IDatatype
getReferencedClass in interface IDatatypeIDatatype.getReferencedClass()public boolean isEqualTo(IDatatype otherDatatype)
IDatatype
isEqualTo in interface IDatatypeotherDatatype - data type to check
IDatatype.isEqualTo(org.evolvica.engine.IDatatype)public boolean isCompatibleTo(IDatatype otherDatatype)
IDatatype
public class DefaultInteger { ... }
public class ExtendedInteger extends DefaultInteger { ... }
DefaultInteger integer = new DefaultInteger(); ExtendedInteger extInteger = new ExtendedInteger(); System.out.println( integer.getType().isCompatibleTo( extInteger.getType() ) ); System.out.println( extInteger.getType().isCompatibleTo( integer.getType() ) );
false true
isCompatibleTo in interface IDatatypeotherDatatype - data type to check
IDatatype.isCompatibleTo(org.evolvica.engine.IDatatype)
|
Evolvica Core API Version 0.6.3 Last Modified: July 20 2004 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||