public final class BasicExecutionEnvironment extends Object implements ExecutionEnvironment
ExecutionEnvironment given SelectionCriteria, facts (Map<Term, Object> ), ExecutionOptions and TermResolutionEngine.| Constructor and Description |
|---|
BasicExecutionEnvironment(SelectionCriteria selectionCriteria,
Map<Term,Object> facts,
ExecutionOptions executionOptions,
TermResolutionEngine termResolutionEngine)
Constructor for a BasicExecutionEnvironment with the given
SelectionCriteria, facts, ExecutionOptions and TermResolutionEngine |
| Modifier and Type | Method and Description |
|---|---|
void |
addTermResolver(TermResolver<?> termResolver) |
EngineResults |
getEngineResults() |
ExecutionOptions |
getExecutionOptions() |
Map<Term,Object> |
getFacts() |
SelectionCriteria |
getSelectionCriteria() |
Set<Term> |
getTermsForCaller(Object caller) |
boolean |
publishFact(Term factName,
Object factValue) |
<T> T |
resolveTerm(Term term,
Object caller) |
public BasicExecutionEnvironment(SelectionCriteria selectionCriteria, Map<Term,Object> facts, ExecutionOptions executionOptions, TermResolutionEngine termResolutionEngine)
SelectionCriteria, facts, ExecutionOptions and TermResolutionEngineselectionCriteria - to set selectionCriteria to, cannot be nullfacts - to set facts to, cannot be nullexecutionOptions - to set executionOptions totermResolutionEngine - to set termResolutionEngine toIllegalArgumentException - if the selectionCriteria or facts are nullpublic SelectionCriteria getSelectionCriteria()
getSelectionCriteria in interface ExecutionEnvironmentpublic Map<Term,Object> getFacts()
getFacts in interface ExecutionEnvironmentpublic void addTermResolver(TermResolver<?> termResolver)
addTermResolver in interface ExecutionEnvironmentpublic <T> T resolveTerm(Term term, Object caller) throws TermResolutionException
resolveTerm in interface ExecutionEnvironmentTermResolutionExceptionpublic Set<Term> getTermsForCaller(Object caller)
getTermsForCaller in interface ExecutionEnvironmentpublic boolean publishFact(Term factName, Object factValue)
publishFact in interface ExecutionEnvironmentpublic ExecutionOptions getExecutionOptions()
getExecutionOptions in interface ExecutionEnvironmentpublic EngineResults getEngineResults()
getEngineResults in interface ExecutionEnvironmentCopyright © 2005–2016 The Kuali Foundation. All rights reserved.