Uses of Interface
com.googlecode.sarasvati.Engine

Packages that use Engine
com.googlecode.sarasvati   
com.googlecode.sarasvati.event   
com.googlecode.sarasvati.hib   
com.googlecode.sarasvati.impl   
com.googlecode.sarasvati.join   
com.googlecode.sarasvati.join.lang   
com.googlecode.sarasvati.mem   
com.googlecode.sarasvati.rubric.env   
com.googlecode.sarasvati.script   
com.googlecode.sarasvati.visitor   
 

Uses of Engine in com.googlecode.sarasvati
 

Methods in com.googlecode.sarasvati that return Engine
 Engine Engine.getParentEngine()
          If this engine was created to execute a nested process, it will remember the engine which created it.
 Engine Engine.newEngine(boolean forNested)
          Since an Engine can have state specific to the currently executing process, there are times we want to create a new engine (such as when executing a nested process).
 

Methods in com.googlecode.sarasvati with parameters of type Engine
 void CustomNode.backtrack(Engine engine, NodeToken token)
          Does nothing by default.
 void Node.backtrack(Engine engine, NodeToken token)
          Does whatever work is necessary to backtrack this execution.
 GuardResult CustomNodeWrapper.defaultGuard(Engine engine, NodeToken token)
          Evaluates the guard using the default strategy for the given Node/Engine combination.
 void Node.execute(Engine engine, NodeToken token)
          Performs Node specific logic.
 Collection<ArcToken> TokenSet.getActiveArcTokens(Engine engine)
          Returns the list of active (non-completed) arc tokens which are members of this token set.
 Collection<NodeToken> TokenSet.getActiveNodeTokens(Engine engine)
          Returns the list of active (non-completed) node tokens which are members of this token set.
 CustomNode CustomNodeWrapper.getCustomNode(Engine engine)
          Returns the CustomNode being wrapped.
 Collection<NodeToken> GraphProcess.getTokensOnNode(Node node, Engine engine)
          Returns the collection of NodeTokens which have been created on the given Node.
 GuardResult CustomNode.guard(Engine engine, NodeToken token)
          Default implementation calls CustomNodeWrapper.defaultGuard(Engine, NodeToken).
 GuardResult Node.guard(Engine engine, NodeToken token)
          When a NodeToken is created, the associated Node will not automatically be executed.
 boolean CustomNode.isBacktrackable(Engine engine, NodeToken token)
          Returns true by default.
 boolean Node.isBacktrackable(Engine engine, NodeToken token)
          Returns true if the specific execution of this Node by the given NodeToken can be backtracked.
 void TokenSet.markComplete(Engine engine)
          Marks this token set as being complete, in the sense that a token set join has been performed on the token set.
 JoinResult JoinStrategy.performJoin(Engine engine, ArcToken token)
          Called on every ArcToken when processed.
 void TokenSet.reactivateForBacktrack(Engine engine)
          If a node or arc token in a previously completed token set is backtracked into, the token set should be marked as incomplete again.
 

Uses of Engine in com.googlecode.sarasvati.event
 

Methods in com.googlecode.sarasvati.event that return Engine
 Engine ExecutionEvent.getEngine()
          Returns the engine which generated this event
 

Methods in com.googlecode.sarasvati.event with parameters of type Engine
 void CachingExecutionEventQueue.addListener(Engine engine, Class<? extends ExecutionListener> listenerClass, ExecutionEventType... eventTypes)
           
 void DefaultExecutionEventQueue.addListener(Engine engine, Class<? extends ExecutionListener> listenerClass, ExecutionEventType... eventTypes)
           
 void ExecutionEventQueue.addListener(Engine engine, Class<? extends ExecutionListener> listenerClass, ExecutionEventType... eventTypes)
          Adds the given listener type to the event queue for the given event types using the given engine.
 void InitialExecutionEventQueue.addListener(Engine engine, Class<? extends ExecutionListener> listenerClass, ExecutionEventType... eventTypes)
           
static EventActions NodeTokenEvent.fireAcceptedEvent(Engine engine, NodeToken nodeToken)
           
static EventActions ArcTokenEvent.fireBacktrackedEvent(Engine engine, ArcToken arcToken)
           
static EventActions NodeTokenEvent.fireBacktrackedEvent(Engine engine, NodeToken nodeToken)
           
static EventActions ProcessEvent.fireCanceledEvent(Engine engine, GraphProcess process)
           
static EventActions ArcTokenEvent.fireCompletedEvent(Engine engine, ArcToken arcToken)
           
static EventActions ProcessEvent.fireCompletedEvent(Engine engine, GraphProcess process)
           
static EventActions NodeTokenEvent.fireCompletedEvent(Engine engine, NodeToken nodeToken, String exitArcsName)
           
static EventActions ArcTokenEvent.fireCreatedEvent(Engine engine, ArcToken arcToken)
           
static EventActions ProcessEvent.fireCreatedEvent(Engine engine, GraphProcess process)
           
static EventActions NodeTokenEvent.fireCreatedEvent(Engine engine, NodeToken nodeToken)
           
static EventActions NodeTokenEvent.fireDiscardedEvent(Engine engine, NodeToken nodeToken)
           
static EventActions NodeTokenEvent.fireExecutedEvent(Engine engine, NodeToken nodeToken)
           
static EventActions ArcTokenEvent.fireMergedEvent(Engine engine, ArcToken arcToken)
           
static EventActions ProcessEvent.firePendingCancelEvent(Engine engine, GraphProcess process)
           
static EventActions ProcessEvent.firePendingCompleteEvent(Engine engine, GraphProcess process)
           
static EventActions ArcTokenEvent.fireProcessedEvent(Engine engine, ArcToken arcToken)
           
static EventActions NodeTokenEvent.fireSkippedEvent(Engine engine, NodeToken nodeToken, String exitArcsName)
           
static EventActions ProcessEvent.fireStartedEvent(Engine engine, GraphProcess process)
           
 void DefaultExecutionEventQueue.removeListener(Engine engine, Class<? extends ExecutionListener> listener, ExecutionEventType... eventTypes)
           
 void ExecutionEventQueue.removeListener(Engine engine, Class<? extends ExecutionListener> listenerClass, ExecutionEventType... eventTypes)
          Removes the given listener type from the event queue for the given event types using the given engine.
 void InitialExecutionEventQueue.removeListener(Engine engine, Class<? extends ExecutionListener> listenerClass, ExecutionEventType... eventTypes)
           
 

Constructors in com.googlecode.sarasvati.event with parameters of type Engine
ExecutionEvent(Engine engine, ExecutionEventType eventType)
           
ProcessEvent(Engine engine, ExecutionEventType eventType, GraphProcess process)
           
 

Uses of Engine in com.googlecode.sarasvati.hib
 

Classes in com.googlecode.sarasvati.hib that implement Engine
 class HibEngine
           
 

Methods in com.googlecode.sarasvati.hib with parameters of type Engine
 void HibCustomNodeWrapper.backtrack(Engine engine, NodeToken token)
           
 void HibNode.backtrack(Engine engine, NodeToken token)
          Does nothing by default.
 void HibNodeRef.backtrack(Engine engine, NodeToken token)
           
 GuardResult HibCustomNodeWrapper.defaultGuard(Engine engine, NodeToken token)
           
 void HibCustomNodeWrapper.execute(Engine engine, NodeToken token)
           
 void HibNode.execute(Engine engine, NodeToken token)
           
 void HibNodeRef.execute(Engine engine, NodeToken token)
           
 Set<ArcToken> HibTokenSet.getActiveArcTokens(Engine engine)
           
 Set<NodeToken> HibTokenSet.getActiveNodeTokens(Engine engine)
           
 CustomNode HibCustomNodeWrapper.getCustomNode(Engine engine)
           
 List<NodeToken> HibGraphProcess.getTokensOnNode(Node node, Engine engine)
           
 GuardResult HibNode.guard(Engine engine, NodeToken token)
           
 GuardResult HibNodeRef.guard(Engine engine, NodeToken token)
           
 boolean HibCustomNodeWrapper.isBacktrackable(Engine engine, NodeToken token)
           
 boolean HibNode.isBacktrackable(Engine engine, NodeToken token)
          Returns true.
 boolean HibNodeRef.isBacktrackable(Engine engine, NodeToken token)
           
 void HibTokenSet.markComplete(Engine engine)
           
 void HibTokenSet.reactivateForBacktrack(Engine engine)
           
 

Uses of Engine in com.googlecode.sarasvati.impl
 

Classes in com.googlecode.sarasvati.impl that implement Engine
 class BaseEngine
          Contains all the engine logic which is not backend specific.
 

Methods in com.googlecode.sarasvati.impl with parameters of type Engine
 void ScriptNode.backtrack(Engine engine, NodeToken token)
           
 void NestedProcessNode.execute(Engine engine, NodeToken token)
           
 void ScriptNode.execute(Engine engine, NodeToken token)
           
 void WaitNode.execute(Engine engine, NodeToken token)
           
 boolean ScriptNode.isBacktrackable(Engine engine, NodeToken token)
           
 JoinResult TokenSetOrJoinStrategy.performFallbackJoin(Engine engine, GraphProcess process, ArcToken token)
          Called if the node token is not a member of a suitable token set.
 

Uses of Engine in com.googlecode.sarasvati.join
 

Methods in com.googlecode.sarasvati.join with parameters of type Engine
 JoinResult TokenSetJoinStrategy.performFallbackJoin(Engine engine, GraphProcess process, ArcToken token)
          Called if the node token is not a member of a suitable token set.
 JoinResult AndJoinStrategy.performJoin(Engine engine, ArcToken token)
           
 JoinResult ClassJoinStrategy.performJoin(Engine engine, ArcToken token)
           
 JoinResult JoinLangJoinStrategy.performJoin(Engine engine, ArcToken token)
           
 JoinResult MergeJoinStrategy.performJoin(Engine engine, ArcToken token)
           
 JoinResult OrJoinStrategy.performJoin(Engine engine, ArcToken token)
           
 JoinResult TokenSetJoinStrategy.performJoin(Engine engine, ArcToken token)
           
 

Uses of Engine in com.googlecode.sarasvati.join.lang
 

Methods in com.googlecode.sarasvati.join.lang that return Engine
 Engine JoinLangEnv.getEngine()
          Returns the engine instance performing the join
 Engine JoinLangEnvImpl.getEngine()
           
 

Constructors in com.googlecode.sarasvati.join.lang with parameters of type Engine
JoinLangEnvImpl(Engine engine, ArcToken initiatingToken, PredicateEnv predicateEnv)
           
 

Uses of Engine in com.googlecode.sarasvati.mem
 

Classes in com.googlecode.sarasvati.mem that implement Engine
 class MemEngine
           
 

Methods in com.googlecode.sarasvati.mem with parameters of type Engine
 void MemCustomNodeWrapper.backtrack(Engine engine, NodeToken token)
           
 void MemNode.backtrack(Engine engine, NodeToken token)
          Does nothing by default.
 GuardResult MemCustomNodeWrapper.defaultGuard(Engine engine, NodeToken token)
           
 void MemCustomNodeWrapper.execute(Engine engine, NodeToken token)
           
 void MemNode.execute(Engine engine, NodeToken token)
           
 Set<ArcToken> MemTokenSet.getActiveArcTokens(Engine engine)
           
 Set<NodeToken> MemTokenSet.getActiveNodeTokens(Engine engine)
           
 CustomNode MemCustomNodeWrapper.getCustomNode(Engine engine)
           
 List<NodeToken> MemGraphProcess.getTokensOnNode(Node node, Engine engine)
           
 GuardResult MemNode.guard(Engine engine, NodeToken token)
           
 boolean MemCustomNodeWrapper.isBacktrackable(Engine engine, NodeToken token)
           
 boolean MemNode.isBacktrackable(Engine engine, NodeToken token)
          Returns true.
 void MemTokenSet.markComplete(Engine engine)
           
 void MemTokenSet.reactivateForBacktrack(Engine engine)
           
 

Uses of Engine in com.googlecode.sarasvati.rubric.env
 

Methods in com.googlecode.sarasvati.rubric.env with parameters of type Engine
 Date RubricDateFunction.eval(Engine engine, NodeToken token)
           
 boolean RubricPredicate.eval(Engine engine, NodeToken token)
           
 String RubricStringFunction.eval(Engine engine, NodeToken token)
           
 

Constructors in com.googlecode.sarasvati.rubric.env with parameters of type Engine
DefaultRubricEnv(Engine engine, NodeToken token, RubricFunctionRepository functionRepository)
           
 

Uses of Engine in com.googlecode.sarasvati.script
 

Methods in com.googlecode.sarasvati.script with parameters of type Engine
 Object BSFScriptRunner.executeScript(Engine engine, NodeToken token, String script, String scriptType)
           
 Object JavaSixScriptRunner.executeScript(Engine engine, NodeToken token, String script, String scriptType)
           
 Object ScriptRunner.executeScript(Engine engine, NodeToken token, String script, String scriptType)
           
 

Uses of Engine in com.googlecode.sarasvati.visitor
 

Constructors in com.googlecode.sarasvati.visitor with parameters of type Engine
BacktrackTokenVisitor(Engine engine, NodeToken destinationToken)