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: StateThe simulation state.
Trait Implementations§
Source§impl SimulationExtensions for PetriNetSimulation
impl SimulationExtensions for PetriNetSimulation
Source§fn token_count(&self, pid: Pid) -> usize
fn token_count(&self, pid: Pid) -> usize
Returns the token count for the specified place in an owned simulation.