class

Quartz::Simulation

Inherits Iterable / Enumerable / Reference / Object

This class represent the interface to the simulation

Constructors

new(model : Model, *, scheduler : Symbol = :binary_heap, maintain_hierarchy : Bool = true, duration : Duration | TimePoint = Duration::INFINITY, run_validations : Bool = false, notifier : Hooks::Notifier = Hooks::Notifier.new)
Source

Instance methods

abort

Abort the currently running or initialized simulation. Goes to an aborted state.

Source
aborted?(*args, **options)
Source
aborted?(*args, **options, &)
Source
default_scheduler

Returns the default scheduler to use.

Source
done?(*args, **options)
Source
done?(*args, **options, &)
Source
each

Must return an Iterator over the elements in this collection.

Source
each

Must yield this collection's elements to the block.

Source
elapsed_secs
Source
final_time
Source
generate_graph(io : IO)
Source
generate_graph(path = "model_hierarchy.dot")
Source
initialize_simulation
Source
initialized?(*args, **options)
Source
initialized?(*args, **options, &)
Source
inspect(io)
Source
model
Source
notifier
Source
percentage
Source
ready?(*args, **options)
Source
ready?(*args, **options, &)
Source
restart

Restart a terminated simulation (either done or aborted) and goes to a ready state.

Source
run_validations?

Whether Quartz::Validations will be run during simulation.

Source
running?(*args, **options)
Source
running?(*args, **options, &)
Source
simulate

TODO error hook

Source
start_time
Source
status
Source
step
Source
termination_condition

Set the termination condition

Source
transition_stats

Returns the number of transitions per model along with the total

Source
virtual_time
Source

Nested types