|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jgap.supergenes.Validator
public abstract class Validator
The abstract supergeneValidator, hiding the getPersisten() and setFromPersistent() methods that are not always required.
| Constructor Summary | |
|---|---|
Validator(Configuration a_conf)
|
|
| Method Summary | |
|---|---|
Configuration |
getConfiguration()
|
java.lang.String |
getPersistent()
The default implementation returns an empty string. |
abstract boolean |
isValid(Gene[] a_genes,
Supergene a_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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Validator(Configuration a_conf)
| Method Detail |
|---|
public abstract boolean isValid(Gene[] a_genes,
Supergene a_for_supergene)
isValid in interface SupergeneValidatorpublic java.lang.String getPersistent()
getPersistent in interface SupergeneValidatorpublic void setFromPersistent(java.lang.String a_from)
setFromPersistent in interface SupergeneValidatorpublic Configuration getConfiguration()
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||