|
Evolvica Core API Version 0.6.2 Last Modified: June 29 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 classMethod Detail |
public java.lang.String getName()
IDatatype
getName
in interface IDatatype
IDatatype.getName()
public java.lang.Class getReferencedClass()
IDatatype
getReferencedClass
in interface IDatatype
IDatatype.getReferencedClass()
public boolean isEqualTo(IDatatype otherDatatype)
IDatatype
isEqualTo
in interface IDatatype
otherDatatype
- 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 IDatatype
otherDatatype
- data type to check
IDatatype.isCompatibleTo(org.evolvica.engine.IDatatype)
|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |