net.sourceforge.fluxion.runcible
Interface Rule
- All Known Implementing Classes:
- StandardRule
public interface Rule
A generic Rule interface. Every rule contains one "forall" statement, which
simply defines the variable id to use. Rules also contain an IndividualSelection
, describing the individuals this rule applies to, an
DataClause
, describing bound datatype selections (if any) and some
Fact
s (or "doable action") that must be applied. Rules can the
optionally contain any number fo nested Rules ("then apply" rules) which are
executed in a nested scope, after this rule.
- Version:
- 1.0
- Author:
- Tony Burdett
getForall
Forall getForall()
setForall
void setForall(Forall forall)
getIndividualSelection
IndividualSelection getIndividualSelection()
setIndividualSelection
void setIndividualSelection(IndividualSelection selection)
getDataClauses
java.util.List<DataClause> getDataClauses()
addDataClause
void addDataClause(DataClause clause)
setDataClauses
void setDataClauses(java.util.List<DataClause> using_data)
getNextRules
java.util.List<Rule> getNextRules()
addNextRule
void addNextRule(Rule then_apply)
setNextRules
void setNextRules(java.util.List<Rule> then_applys)
getFacts
java.util.List<Fact> getFacts()
addFact
void addFact(Fact do_action)
setFacts
void setFacts(java.util.List<Fact> do_actions)
accept
void accept(RuleVisitor visitor)
Copyright © 2010. All Rights Reserved.