BorrowedPetriNetSimulation

Type Alias BorrowedPetriNetSimulation 

Source
pub type BorrowedPetriNetSimulation<'a> = BorrowedSimulation<'a, PetriNetInfo>;
Expand description

A borrowed petri net simulation that holds an immutable reference to the petri net info and owns the simulation state.

Aliased Type§

pub struct BorrowedPetriNetSimulation<'a> {
    pub state: State,
    /* private fields */
}

Fields§

§state: State

The simulation state.

Trait Implementations§

Source§

impl SimulationExtensions for BorrowedPetriNetSimulation<'_>

Source§

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

Returns the token count for the specified place in a borrowed simulation.