|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RuleHolder
Holds a set of rules for an EA.
Method Summary | |
---|---|
void |
addConstraintRule(ConstraintRule rule)
Add a constraint rule. |
void |
addRewriteRule(RewriteRule rule)
Add a rewrite rule. |
List<ConstraintRule> |
getConstraintRules()
|
List<RewriteRule> |
getRewriteRules()
|
boolean |
isValid(Genome genome)
Determine if the specified genome is valid according to the constraint rules. |
void |
rewrite(Genome genome)
Rewrite the specified genome. |
Method Detail |
---|
void addRewriteRule(RewriteRule rule)
rule
- The rule to add.void addConstraintRule(ConstraintRule rule)
rule
- The rule to add.void rewrite(Genome genome)
genome
- The genome to rewrite.boolean isValid(Genome genome)
genome
- The gnome to check.
List<ConstraintRule> getConstraintRules()
List<RewriteRule> getRewriteRules()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |