|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krms.framework.engine.BasicExecutionEnvironment
public final class BasicExecutionEnvironment
An implementation of ExecutionEnvironment
given SelectionCriteria
, facts (Map<Term
, Object> ), ExecutionOptions
and TermResolutionEngine
.
Constructor Summary | |
---|---|
BasicExecutionEnvironment(SelectionCriteria selectionCriteria,
Map<Term,Object> facts,
ExecutionOptions executionOptions,
TermResolutionEngine termResolutionEngine)
Constructor for a BasicExecutionEnvironment with the given SelectionCriteria , facts, ExecutionOptions and TermResolutionEngine |
Method Summary | ||
---|---|---|
void |
addTermResolver(TermResolver<?> termResolver)
Add a TermResolver |
|
EngineResults |
getEngineResults()
Return the EngineResults |
|
ExecutionOptions |
getExecutionOptions()
Return the ExecutionOptions |
|
Map<Term,Object> |
getFacts()
Returns an immutable Map of facts available within this environment. |
|
SelectionCriteria |
getSelectionCriteria()
Returns the selection criteria that was used to initialize the environment. |
|
Set<Term> |
getTermsForCaller(Object caller)
Return a set of Term for the given value |
|
boolean |
publishFact(Term factName,
Object factValue)
Publishes a new fact |
|
|
resolveTerm(Term term,
Object caller)
Resolve |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicExecutionEnvironment(SelectionCriteria selectionCriteria, Map<Term,Object> facts, ExecutionOptions executionOptions, TermResolutionEngine termResolutionEngine)
SelectionCriteria
, facts, ExecutionOptions
and TermResolutionEngine
selectionCriteria
- to set selectionCriteria to, cannot be nullfacts
- to set facts to, cannot be nullexecutionOptions
- to set executionOptions totermResolutionEngine
- to set termResolutionEngine to
IllegalArgumentException
- if the selectionCriteria or facts are nullMethod Detail |
---|
public SelectionCriteria getSelectionCriteria()
ExecutionEnvironment
getSelectionCriteria
in interface ExecutionEnvironment
public Map<Term,Object> getFacts()
ExecutionEnvironment
getFacts
in interface ExecutionEnvironment
public void addTermResolver(TermResolver<?> termResolver)
ExecutionEnvironment
TermResolver
addTermResolver
in interface ExecutionEnvironment
public <T> T resolveTerm(Term term, Object caller) throws TermResolutionException
ExecutionEnvironment
resolveTerm
in interface ExecutionEnvironment
term
- Term
TermResolutionException
public Set<Term> getTermsForCaller(Object caller)
ExecutionEnvironment
getTermsForCaller
in interface ExecutionEnvironment
public boolean publishFact(Term factName, Object factValue)
ExecutionEnvironment
publishFact
in interface ExecutionEnvironment
factName
- name of the fact to publishfactValue
- value of the fact to publish
// TODO: we don't support updating facts, refactor this method
public ExecutionOptions getExecutionOptions()
ExecutionEnvironment
ExecutionOptions
getExecutionOptions
in interface ExecutionEnvironment
ExecutionOptions
public EngineResults getEngineResults()
ExecutionEnvironment
EngineResults
getEngineResults
in interface ExecutionEnvironment
EngineResults
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |