GenericTracer

class passengersim.tracers.generic.GenericTracer[source]

Bases: ABC

Methods

__init__()

attach(sim)

Attach this tracer to a Simulation, which will be traced as it runs.

finalize()

Convert the internal counters on this tracer to a dataframe.

fresh()

Return a fresh copy of this tracer, tracing the same targets but not sharing state.

reset()

Reset the internal counters on this tracer to a null state.

Attributes

name

name : str = 'generic_tracer'
abstractmethod reset() None[source]

Reset the internal counters on this tracer to a null state.

abstractmethod fresh() GenericTracer[source]

Return a fresh copy of this tracer, tracing the same targets but not sharing state.

abstractmethod attach(sim: Simulation) None[source]

Attach this tracer to a Simulation, which will be traced as it runs.

abstractmethod finalize() pd.DataFrame[source]

Convert the internal counters on this tracer to a dataframe.