Package org.graphwalker.core.machine
Class ExecutionContext
java.lang.Object
org.graphwalker.core.machine.ExecutionContext
- All Implemented Interfaces:
Context
ExecutionContext
The ExecutionContext ties a model and a path generator together. The context not only connects a model with a path generator, it also keeps track of the execution of the model when traversing it, and it's history. Also, the model has an internal code and data scoop, which the context also is responsible for running,- Author:
- Nils Olsson
-
Constructor Summary
ConstructorsConstructorDescriptionExecutionContext(Model.RuntimeModel model, PathGenerator pathGenerator) ExecutionContext(Model model, PathGenerator pathGenerator) -
Method Summary
Modifier and TypeMethodDescriptiondata()voidvoid<E> List<E> filter(Collection<E> elements) <A extends Algorithm>
AgetAlgorithm(Class<A> clazz) org.graalvm.polyglot.ValuegetAttribute(String name) org.graalvm.polyglot.ContextgetModel()getRequirements(RequirementStatus status) booleanisAvailable(Edge.RuntimeEdge edge) voidsetAttribute(String name, org.graalvm.polyglot.Value value) setCurrentElement(Element element) setExecutionStatus(ExecutionStatus executionStatus) voidsetGlobalExecutionEnvironment(org.graalvm.polyglot.Context globalExecutionEnvironment) setModel(Model.RuntimeModel model) setNextElement(Builder<? extends Element> nextElement) setNextElement(Element nextElement) setPathGenerator(PathGenerator pathGenerator) setPredefinedPathCurrentElementIndex(Integer predefinedPathCurrentElementIndex) setProfiler(Profiler profiler) setRequirementStatus(Requirement requirement, RequirementStatus requirementStatus)
-
Constructor Details
-
ExecutionContext
public ExecutionContext() -
ExecutionContext
-
ExecutionContext
-
-
Method Details
-
getExecutionEnvironment
public org.graalvm.polyglot.Context getExecutionEnvironment()- Specified by:
getExecutionEnvironmentin interfaceContext
-
getModel
-
setModel
-
getProfiler
- Specified by:
getProfilerin interfaceContext
-
setProfiler
- Specified by:
setProfilerin interfaceContext
-
getPathGenerator
- Specified by:
getPathGeneratorin interfaceContext
-
setPathGenerator
- Specified by:
setPathGeneratorin interfaceContext
-
getExecutionStatus
- Specified by:
getExecutionStatusin interfaceContext
-
setExecutionStatus
- Specified by:
setExecutionStatusin interfaceContext
-
getLastElement
- Specified by:
getLastElementin interfaceContext
-
getCurrentElement
- Specified by:
getCurrentElementin interfaceContext
-
setCurrentElement
- Specified by:
setCurrentElementin interfaceContext
-
getNextElement
- Specified by:
getNextElementin interfaceContext
-
setNextElement
- Specified by:
setNextElementin interfaceContext
-
setNextElement
- Specified by:
setNextElementin interfaceContext
-
getPredefinedPathCurrentEdgeIndex
- Specified by:
getPredefinedPathCurrentEdgeIndexin interfaceContext
-
setPredefinedPathCurrentElementIndex
- Specified by:
setPredefinedPathCurrentElementIndexin interfaceContext
-
setRequirementStatus
- Specified by:
setRequirementStatusin interfaceContext
-
getRequirements
- Specified by:
getRequirementsin interfaceContext
-
getRequirements
- Specified by:
getRequirementsin interfaceContext
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceContext
-
filter
-
isAvailable
- Specified by:
isAvailablein interfaceContext
-
execute
-
execute
-
getAttribute
- Specified by:
getAttributein interfaceContext
-
setAttribute
- Specified by:
setAttributein interfaceContext
-
data
-
setGlobalExecutionEnvironment
public void setGlobalExecutionEnvironment(org.graalvm.polyglot.Context globalExecutionEnvironment) - Specified by:
setGlobalExecutionEnvironmentin interfaceContext
-