|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.deepthought.sidious.ruleengine.RuleEngineImpl
public class RuleEngineImpl
Field Summary | |
---|---|
private static org.apache.commons.logging.Log |
logger
Logger for this class |
Constructor Summary | |
---|---|
RuleEngineImpl()
|
Method Summary | |
---|---|
double |
evaluate(SuperLinkID requesterID,
State current,
State next,
Step step)
This method evaluates the rules associated with the given plan requester. |
(package private) double |
evaluateRules(java.util.Collection<Rule> rules,
State current,
State next,
Step step)
This method evaluates each of the input rules according to
the input states (current and next ), and
returns a combined value. |
java.util.Collection<Goal> |
extractGoals(SuperLinkID requesterID)
This method extracts the goals of the specified PlanRequester . |
(package private) java.util.Collection<Goal> |
extractGoalsFromRules(java.util.Collection<Rule> rules)
Method extracts and returns all goals from the input rules . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.commons.logging.Log logger
Constructor Detail |
---|
public RuleEngineImpl()
Method Detail |
---|
public double evaluate(SuperLinkID requesterID, State current, State next, Step step)
RuleEngine
The calculation is based upon the state change from current
to next
.
evaluate
in interface RuleEngine
requesterID
- the ID of the plan requestercurrent
- the current statenext
- the next statestep
- the step
double evaluateRules(java.util.Collection<Rule> rules, State current, State next, Step step)
rules
according to
the input states (current
and next
), and
returns a combined value.
rules
- the input collection of rulescurrent
- the current statenext
- the next statestep
- the step
public java.util.Collection<Goal> extractGoals(SuperLinkID requesterID)
RuleEngine
PlanRequester
.
extractGoals
in interface RuleEngine
requesterID
- the id of the plan requester
java.util.Collection<Goal> extractGoalsFromRules(java.util.Collection<Rule> rules)
rules
.
rules
- the rules the goals will be extracted from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |