Uses of Class
org.simplesim.core.scheduling.Time
Package
Description
Instrumentation support
Time scale and event queue implementations
Examples of how to use this framework
Contains all classes specific for the dynamic model
Contains all classes shared by static and dynamic model
Contains all classes specific for the static model
Simulation model of Convay's game of life
Base classes for agent development and model building
Simulator implementations
-
Uses of Time in org.simplesim.core.instrumentation
Modifier and TypeMethodDescriptionvoid
Listener.notifyListener
(Time time, T source) Notifies all listeners of a specific event or hookvoid
ListenerSupport.notifyListeners
(Time time, T source) -
Uses of Time in org.simplesim.core.scheduling
Modifier and TypeFieldDescriptionstatic final Time
Time.DAY
static final Time
Time.HOUR
static final Time
Time.INFINITY
static final Time
Time.MONTH
static final Time
Time.TICK
static final Time
Time.WEEK
static final Time
Time.YEAR
static final Time
Time.ZERO
Modifier and TypeMethodDescriptionTime.add
(long value) Removes the entry of the given event.EventQueue.getMin()
Gets the minimal time stamp.HashedBucketQueue.getMin()
HeapBucketQueue.getMin()
HeapEventQueue.getMin()
MultiLevelBucketQueue.getMin()
MultiLevelEventQueue.getMin()
SortedBucketQueue.getMin()
SortedEventQueue.getMin()
Gets the time of the given event but does not dequeue it.Time.sub
(long value) Modifier and TypeMethodDescriptionint
EventQueue.dequeueAll
(Time time) Dequeues all elements with the given time stamp.HashedBucketQueue.dequeueAll
(Time time) HeapBucketQueue.dequeueAll
(Time time) MultiLevelBucketQueue.dequeueAll
(Time time) MultiLevelEventQueue.dequeueAll
(Time time) SortedEventQueue.dequeueAll
(Time time) void
Enqueues an event at the given time.void
void
void
void
void
boolean
boolean
ModifierConstructorDescriptionSortedBucketQueue
(SortedMap<Time, List<E>> map) Constructor allowing to parameterize your own variant of aSortedMap
. -
Uses of Time in org.simplesim.examples
-
Uses of Time in org.simplesim.examples.elevator.dyn
Modifier and TypeMethodDescriptionModifier and TypeMethodDescriptionvoid
DynamicElevator.enqueueEvent
(Elevator.Event event, Time time) void
DynamicVisitor.sendRequest
(BasicAgent<?, ?> dest, int destination, Time time) -
Uses of Time in org.simplesim.examples.elevator.stat
Modifier and TypeMethodDescriptionModifier and TypeMethodDescriptionvoid
StaticElevator.enqueueEvent
(Elevator.Event event, Time time) void
StaticVisitor.sendRequest
(BasicAgent<?, ?> dest, int destination, Time time) -
Uses of Time in org.simplesim.examples.gameoflife
-
Uses of Time in org.simplesim.model
Modifier and TypeMethodDescriptionCalculates new outputs from the available inputs and implements the agent's strategy.Agent.getTimeOfNextEvent()
Returns the time of the next event (tone).BasicAgent.getTimeOfNextEvent()
Returns the time of the next internal event.InstrumentationDecorator.getTimeOfNextEvent()
Modifier and TypeMethodDescriptionCalculates new outputs from the available inputs and implements the agent's strategy.default void
Agent.log
(PrintStream stream, Time time, String msg) Provides simple logging functionality to a stream with time stamp, entity name and message output.default void
Provides simple logging functionality to System.out with time stamp, entity name and message output. -
Uses of Time in org.simplesim.simulator
Modifier and TypeMethodDescriptionBasicSimulator.getSimulationTime()
DynamicDecorator.getSimulationTime()
Simulator.getSimulationTime()
SequentialTSSimulator.getTimeStep()
Modifier and TypeMethodDescriptionabstract void
BasicSimulator.runSimulation
(Time stop) Starts a simulation runvoid
ConcurrentDESimulator.runSimulation
(Time stop) void
ConcurrentTSSimulator.runSimulation
(Time stop) void
DynamicDecorator.runSimulation
(Time stop) void
SequentialDESimulator.runSimulation
(Time stop) void
SequentialTSSimulator.runSimulation
(Time stop) void
Simulator.runSimulation
(Time stop) Starts a simulation run