| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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,ExecutionOptionsandTermResolutionEngine | |
| 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 null| Method Detail | 
|---|
public SelectionCriteria getSelectionCriteria()
ExecutionEnvironment
getSelectionCriteria in interface ExecutionEnvironmentpublic Map<Term,Object> getFacts()
ExecutionEnvironment
getFacts in interface ExecutionEnvironmentpublic void addTermResolver(TermResolver<?> termResolver)
ExecutionEnvironmentTermResolver
addTermResolver in interface ExecutionEnvironment
public <T> T resolveTerm(Term term,
                         Object caller)
              throws TermResolutionException
ExecutionEnvironment
resolveTerm in interface ExecutionEnvironmentterm - Term
TermResolutionExceptionpublic Set<Term> getTermsForCaller(Object caller)
ExecutionEnvironment
getTermsForCaller in interface ExecutionEnvironment
public boolean publishFact(Term factName,
                           Object factValue)
ExecutionEnvironment
publishFact in interface ExecutionEnvironmentfactName - 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()
ExecutionEnvironmentExecutionOptions
getExecutionOptions in interface ExecutionEnvironmentExecutionOptionspublic EngineResults getEngineResults()
ExecutionEnvironmentEngineResults
getEngineResults in interface ExecutionEnvironmentEngineResults| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||