PetriNetSimulation

Type Alias PetriNetSimulation 

Source
pub type PetriNetSimulation = OwnedSimulation<PetriNetInfo>;
Expand description

A basic petri net simulation that holds the petri net info and the simulation state.

Aliased Type§

pub struct PetriNetSimulation {
    pub state: State,
    /* private fields */
}

Fields§

§state: State

The simulation state.

Trait Implementations§

Source§

impl SimulationExtensions for PetriNetSimulation

Source§

fn token_count(&self, pid: Pid) -> usize

Returns the token count for the specified place in an owned simulation.