|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jgap.supergenes.Validator
The abstract supergeneValidator, hiding the getPersisten() and setFromPersistent() methods that are not always required.
| Constructor Summary | |
Validator()
|
|
| Method Summary | |
java.lang.String |
getPersistent()
Get a persistent string representation (if needed) of this validator. The name is different allowing the same class to implement both Supergene and supergeneValidator. The default implementation returns an empty string. |
abstract boolean |
isValid(Gene[] genes,
Supergene for_supergene)
Return true if this gene combination is valid for the given supergene |
void |
setFromPersistent(java.lang.String a_from)
Set a persistend string representation (if needed) for this validator. The name is different allowing the same class to implement both Supergene and supergeneValidator. The default implementation does nothing. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Validator()
| Method Detail |
public abstract boolean isValid(Gene[] genes,
Supergene for_supergene)
isValid in interface supergeneValidatorpublic java.lang.String getPersistent()
getPersistent in interface supergeneValidatorpublic void setFromPersistent(java.lang.String a_from)
setFromPersistent in interface supergeneValidator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||