Skip to main content

BitmapNetExecutor

Struct BitmapNetExecutor 

Source
pub struct BitmapNetExecutor<E: EventStore> { /* private fields */ }
Expand description

Bitmap-based executor for Coloured Time Petri Nets.

Generic over E: EventStore for zero-cost noop event recording. The sync path (run_sync) executes inline without any async runtime.

Implementations§

Source§

impl<E: EventStore> BitmapNetExecutor<E>

Source

pub fn new( net: &PetriNet, initial_tokens: Marking, options: ExecutorOptions, ) -> Self

Creates a new executor for the given net with initial tokens.

Source

pub fn run_sync(&mut self) -> &Marking

Runs the executor synchronously until completion.

All transition actions must be sync (is_sync() returns true). Returns the final marking.

Source

pub fn marking(&self) -> &Marking

Returns a reference to the current marking.

Source

pub fn event_store(&self) -> &E

Returns a reference to the event store.

Source

pub fn is_quiescent(&self) -> bool

Returns true if the executor is quiescent (no enabled or in-flight transitions).

Auto Trait Implementations§

§

impl<E> Freeze for BitmapNetExecutor<E>
where E: Freeze,

§

impl<E> !RefUnwindSafe for BitmapNetExecutor<E>

§

impl<E> Send for BitmapNetExecutor<E>

§

impl<E> Sync for BitmapNetExecutor<E>
where E: Sync,

§

impl<E> Unpin for BitmapNetExecutor<E>
where E: Unpin,

§

impl<E> UnsafeUnpin for BitmapNetExecutor<E>
where E: UnsafeUnpin,

§

impl<E> !UnwindSafe for BitmapNetExecutor<E>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.