vitro
Class ThreadedController

java.lang.Object
  extended by vitro.Controller
      extended by vitro.ThreadedController

public class ThreadedController
extends Controller


Field Summary
 
Fields inherited from class vitro.Controller
actorAgents, agents, classAgents, model
 
Constructor Summary
ThreadedController(Model model, long timeout)
           
 
Method Summary
 List<Action> nextRound()
          This method is used to determine the order in which Actions will be applied.
 
Methods inherited from class vitro.Controller
actors, annotations, bind, bind, getAction, getAgent, hasNext, hasPrev, index, next, prev, previousActions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadedController

public ThreadedController(Model model,
                          long timeout)
Method Detail

nextRound

public List<Action> nextRound()
Description copied from class: Controller
This method is used to determine the order in which Actions will be applied. Controller implementations may provide different behaviors here such as evaluating Actions concurrently or sequentially. The List returned by this method is stored for rollback purposes- the Actions themselves should be applied in the body of this method.

Specified by:
nextRound in class Controller
Returns:
a record of Actions applied as the state is advanced.