org.jactr.core.model
Interface ICycleProcessor

All Known Implementing Classes:
DefaultCycleProcessor6

public interface ICycleProcessor


Method Summary
 double cycle(IModel model, boolean eventsHaveFired)
          run a single cycle of the model returning the time that the next cycle should start at.
 void executeAfter(java.lang.Runnable runner)
          execute this after the current cycle finishes
 void executeBefore(java.lang.Runnable runner)
          execute this before the next cycle starts
 boolean isExecuting()
          is the cycle currently executing? True between cycle start and stop events.
 

Method Detail

cycle

double cycle(IModel model,
             boolean eventsHaveFired)
run a single cycle of the model returning the time that the next cycle should start at. or if NaN if there is nothing that can be done and there are no pending events

Parameters:
eventsHaveFired - TODO

executeBefore

void executeBefore(java.lang.Runnable runner)
execute this before the next cycle starts

Parameters:
runner -

executeAfter

void executeAfter(java.lang.Runnable runner)
execute this after the current cycle finishes

Parameters:
runner -

isExecuting

boolean isExecuting()
is the cycle currently executing? True between cycle start and stop events.

Returns: