pub struct CsModelRun<'def> { /* private fields */ }Expand description
Transition system model based on a ChannelSystem.
It is essentially a CS which keeps track of the Events produced by the execution
and determining a set of predicates.
Trait Implementations§
Source§impl<'def> Clone for CsModelRun<'def>
impl<'def> Clone for CsModelRun<'def>
Source§fn clone(&self) -> CsModelRun<'def>
fn clone(&self) -> CsModelRun<'def>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'def> Debug for CsModelRun<'def>
impl<'def> Debug for CsModelRun<'def>
Source§impl<'def> TransitionSystem for CsModelRun<'def>
impl<'def> TransitionSystem for CsModelRun<'def>
Source§fn transition(&mut self) -> Option<Event>
fn transition(&mut self) -> Option<Event>
Performs a (random) transition on the
TransitionSystem and returns the raised Event,
unless the execution is terminated and no further events can happen.Source§fn time(&self) -> Time
fn time(&self) -> Time
Current time of the
TransitionSystem (for timed systems).Source§fn time_tick(&mut self)
fn time_tick(&mut self)
Increase current time of the
TransitionSystem (for timed systems).Source§fn labels(&self) -> impl Iterator<Item = bool>
fn labels(&self) -> impl Iterator<Item = bool>
The current values of the
TransitionSystem’s labels.Source§fn state(&self) -> impl Iterator<Item = Val>
fn state(&self) -> impl Iterator<Item = Val>
The current internal state of the
TransitionSystem.Source§fn experiment<O: Oracle>(
&mut self,
duration: Time,
oracle: O,
running: Arc<AtomicBool>,
) -> RunOutcome
fn experiment<O: Oracle>( &mut self, duration: Time, oracle: O, running: Arc<AtomicBool>, ) -> RunOutcome
Auto Trait Implementations§
impl<'def> Freeze for CsModelRun<'def>
impl<'def> RefUnwindSafe for CsModelRun<'def>
impl<'def> Send for CsModelRun<'def>
impl<'def> Sync for CsModelRun<'def>
impl<'def> Unpin for CsModelRun<'def>
impl<'def> UnsafeUnpin for CsModelRun<'def>
impl<'def> UnwindSafe for CsModelRun<'def>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more