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 Facts (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

Method Summary
 void accept(RuleVisitor visitor)
           
 void addDataClause(DataClause clause)
           
 void addFact(Fact do_action)
           
 void addNextRule(Rule then_apply)
           
 java.util.List<DataClause> getDataClauses()
           
 java.util.List<Fact> getFacts()
           
 Forall getForall()
           
 IndividualSelection getIndividualSelection()
           
 java.util.List<Rule> getNextRules()
           
 void setDataClauses(java.util.List<DataClause> using_data)
           
 void setFacts(java.util.List<Fact> do_actions)
           
 void setForall(Forall forall)
           
 void setIndividualSelection(IndividualSelection selection)
           
 void setNextRules(java.util.List<Rule> then_applys)
           
 

Method Detail

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.