ix.examples
Class PicoISim.SimController
java.lang.Object
ix.examples.PicoIX.Controller
ix.examples.PicoISim.SimController
- Direct Known Subclasses:
- PicoISimTest2.TestSimController
- Enclosing class:
- PicoISim
static class PicoISim.SimController
- extends PicoIX.Controller
The controller for a simulator handles an agenda of simulated
events as well as the agenda of activities that the simulator addresses
as an agent.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
simEvents
LListCollector simEvents
simHandlerTable
java.util.Hashtable simHandlerTable
EARLIER_EST_P
static final Predicate2 EARLIER_EST_P
PicoISim.SimController
PicoISim.SimController()
PicoISim.SimController
PicoISim.SimController(PicoIX.IX_System system)
addSimEvent
void addSimEvent(PicoISim.SimEvent e)
mainLoop
void mainLoop()
- Overrides:
mainLoop
in class PicoIX.Controller
whenIdle
void whenIdle()
simulateIfPossible
boolean simulateIfPossible()
simulateIfPossible
boolean simulateIfPossible(PicoISim.SimEvent e)
canSimulate
boolean canSimulate(PicoISim.SimEvent e)
simulate
void simulate(PicoISim.SimEvent e)
installSimEventHandlers
void installSimEventHandlers(java.lang.Object[] activityHandlers)
findSimHandler
PicoISim.SimEventHandler findSimHandler(PicoIX.Activity i)
getSimTime
long getSimTime()
setSimTime
void setSimTime(long t)