Expand description
A Discrete-Event Simulation.
Modules§
- persistence
- Persistence of a scenario.
Structs§
- Decoder
- Decodes a name-value tuple into an
Event
object using a preconfigured map of parsers. - Invalid
Event Parser Spec - Raised by
Decoder
if there was something wrong with the parsers given to it. Perhaps the parsers were incorrectly specified or conflicted amongst themselves. - Parse
Event Error - Produced if an
Event
object could not be decoded from its string equivalent. - Parser
- A generic parser for any event type.
- Queue
- A mutable view over the event timeline. The queue
is notionally subdivided into past, current and future events. The past events
are those that have already been executed. The current event is the one at which the
cursor is resting; the same event that is passed to
Event::apply()
. The future events comprise the sequence that follows the current event. - Scenario
- A complete simulation scenario, comprising the initial state and a timeline of discrete events.
- Simulation
- The overarching simulation state. Contains the scenario being modelled, the current state of the simulation, as well as a cursor pointing to the next event in the timeline that is scheduled to be applied.
- Transition
Error - Produced by
Event::apply()
if an error occurs.
Enums§
- Simulation
Error - Known errors that could be produced during the course of simulation, including the loading and saving of simulation scenarios.
Traits§
- Event
- Specification of a discrete event.
- Named
- An entity that has a string-like name.
- Named
Event Parser - A parser for
Event
types. - Static
Named - Something that has a constant name (i.e., independent of
Self
).