|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.ml.ea.rules.BasicRuleHolder
public class BasicRuleHolder
Basic implementation of a rule holder.
| Constructor Summary | |
|---|---|
BasicRuleHolder()
|
|
| 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 prg)
Rewrite the specified genome. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicRuleHolder()
| Method Detail |
|---|
public void addRewriteRule(RewriteRule rule)
addRewriteRule in interface RuleHolderrule - The rule to add.public void rewrite(Genome prg)
rewrite in interface RuleHolderprg - The genome to rewrite.public void addConstraintRule(ConstraintRule rule)
addConstraintRule in interface RuleHolderrule - The rule to add.public boolean isValid(Genome genome)
isValid in interface RuleHoldergenome - The gnome to check.
public List<ConstraintRule> getConstraintRules()
getConstraintRules in interface RuleHolderpublic List<RewriteRule> getRewriteRules()
getRewriteRules in interface RuleHolder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||