Skip to main content

PrecompiledNetExecutor

Struct PrecompiledNetExecutor 

Source
pub struct PrecompiledNetExecutor<'a, E: EventStore> { /* private fields */ }
Expand description

High-performance precompiled flat-array Petri net executor.

Uses ring-buffer token storage, opcode-based consume operations, priority-partitioned ready queues, and two-level summary bitmaps for sparse iteration. Generic over E: EventStore for zero-cost noop event recording.

Implementations§

Source§

impl<'a, E: EventStore> PrecompiledNetExecutor<'a, E>

Source

pub fn builder( program: &'a PrecompiledNet<'a>, initial_marking: Marking, ) -> PrecompiledExecutorBuilder<'a, E>

Creates a builder for a PrecompiledNetExecutor.

Source

pub fn new(program: &'a PrecompiledNet<'a>, initial_marking: Marking) -> Self

Creates a new executor with default options.

Source

pub fn run_sync(&mut self) -> Marking

Runs the executor synchronously until completion. Returns the final marking (materialized from ring buffers).

Source

pub fn marking(&self) -> Marking

Returns the materialized marking (synced from ring buffers).

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.

Auto Trait Implementations§

§

impl<'a, E> Freeze for PrecompiledNetExecutor<'a, E>
where E: Freeze,

§

impl<'a, E> !RefUnwindSafe for PrecompiledNetExecutor<'a, E>

§

impl<'a, E> Send for PrecompiledNetExecutor<'a, E>

§

impl<'a, E> Sync for PrecompiledNetExecutor<'a, E>
where E: Sync,

§

impl<'a, E> Unpin for PrecompiledNetExecutor<'a, E>
where E: Unpin,

§

impl<'a, E> UnsafeUnpin for PrecompiledNetExecutor<'a, E>
where E: UnsafeUnpin,

§

impl<'a, E> !UnwindSafe for PrecompiledNetExecutor<'a, 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.