Uses of Class
org.simplesim.core.scheduling.Time
Packages that use 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
Methods in org.simplesim.core.instrumentation with parameters of type TimeModifier 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
Fields in org.simplesim.core.scheduling declared as TimeModifier 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
Methods in org.simplesim.core.scheduling that return TimeModifier 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) Methods in org.simplesim.core.scheduling with parameters of type TimeModifier 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
Constructors in org.simplesim.core.scheduling with parameters of type TimeConstructor parameters in org.simplesim.core.scheduling with type arguments of type TimeModifierConstructorDescriptionSortedBucketQueue
(SortedMap<Time, List<E>> map) Constructor allowing to parameterize your own variant of aSortedMap
. -
Uses of Time in org.simplesim.examples
Methods in org.simplesim.examples that return TimeMethods in org.simplesim.examples with parameters of type Time -
Uses of Time in org.simplesim.examples.elevator.dyn
Methods in org.simplesim.examples.elevator.dyn that return TimeModifier and TypeMethodDescriptionMethods in org.simplesim.examples.elevator.dyn with parameters of type TimeModifier 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
Methods in org.simplesim.examples.elevator.stat that return TimeModifier and TypeMethodDescriptionMethods in org.simplesim.examples.elevator.stat with parameters of type TimeModifier 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
Methods in org.simplesim.examples.gameoflife that return TimeMethods in org.simplesim.examples.gameoflife with parameters of type Time -
Uses of Time in org.simplesim.model
Methods in org.simplesim.model that return TimeModifier 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()
Methods in org.simplesim.model with parameters of type TimeModifier 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
Methods in org.simplesim.simulator that return TimeModifier and TypeMethodDescriptionBasicSimulator.getSimulationTime()
DynamicDecorator.getSimulationTime()
Simulator.getSimulationTime()
SequentialTSSimulator.getTimeStep()
Methods in org.simplesim.simulator with parameters of type TimeModifier 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