Module trace

Module trace 

Source
Expand description

This module provides a trait that can be implemented to trace the execution of a net.

The tracer is intended to allow for a client to determine the intermediate activities within the simulation between steps. This is useful for statistics, timing, and animation of nets as they are executed.

Structs§

MatrixTracer
This type implements the tracer trait to output a matrix which contains the tokens value for each place, and a flag for enabled transitions, on completion of each step.

Traits§

SimulationTracer
This trait is implemented to listen to events generated by the simulation as it executes.
TraceableSimulation
This trait provides for a simulation to add and remove a single tracer implementation.