vs.characteragent
Class ExecutionState

java.lang.Object
  extended by vs.characteragent.ExecutionState

public class ExecutionState
extends java.lang.Object

Maintains execution state of actions, events, framing operators, so the agent knows "what it's doing" TODO: move (at least partially) to Prolog (unification creates overhead)

Author:
swartjes

Method Summary
 StoryAction currentAction()
           
 java.util.Iterator<Operator> executionHistoryIterator()
           
static ExecutionState getInstance()
           
 boolean performingOperator(Operator o)
           
 java.util.Iterator<Operator> performingOperatorIterator()
           
 void registerOperatorResult(OperatorResult or)
           
 void registerPerformingOperator(Operator o)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ExecutionState getInstance()

currentAction

public StoryAction currentAction()

performingOperator

public boolean performingOperator(Operator o)

performingOperatorIterator

public java.util.Iterator<Operator> performingOperatorIterator()

executionHistoryIterator

public java.util.Iterator<Operator> executionHistoryIterator()

registerOperatorResult

public void registerOperatorResult(OperatorResult or)

registerPerformingOperator

public void registerPerformingOperator(Operator o)