import cimba.sim as sim
|
import cimba as cb
|
sim.Model, Component, Struct, spawnable processes
|
cb.Model for everything; cb.spawn(Class, ...) during a trial
|
sim.Trace field and a manual cursor
|
cb.Input[T] with next(); cb.Series[T] with now()/at(t)
|
random.* for arrivals, services, demand
|
an input bound to inputs.dist.* |
cimba.bootstrap.*(data, length=...)
|
inputs.bootstrap.*(data, ...); lengths are managed for you
|
trace_rng_name
|
inputs.bootstrap.joint(panel, ...)[key] or a shared tag
|
trace arrays passed to experiment(field=...) |
assign the source on the model object |
exhaustion tripwire outputs |
on_exhausted= policies; resamples extend automatically
|
sim.Param/Output/State/FloatState/Const
|
cb.Param[T], cb.Output[T], plain annotated T
|
Queue, opaque Store, f2i/i2f, Pool
|
Container, typed Store[T]/PriorityStore[T],
Resource(capacity=n)
|
Predicate/Event/Processes fields with field=
|
decorated methods referenced directly: wait_until(self.ready) |
@collect, an initialization process, @function
|
@cb.on_end, @cb.on_start, @cb.function (now with
annotated parameters and dynamic dispatch)
|
model.experiment(**params), flattened names, {i: v} dicts
|
configure objects, then cb.Experiment(model, replications=,
window=, seed=) |
exp.trials, exp["x"], result namespaces
|
results[model].x (immutable, object-indexed)
|
in-trial reports |
cimba.analysis after the run; cb.log for tracing
|
model.process_dag() with to_mermaid()/to_dot()
|
cimba.diagrams.process_graph(model) (same renderers, plus
spawned models and inputs); cimba.diagrams.structure(model)
|