pub struct TransitionSystem { /* private fields */ }Expand description
A definition type that instances new [CsModelRun].
Implementations§
Source§impl TransitionSystem
impl TransitionSystem
Sourcepub fn new(cs: ChannelSystem) -> Self
pub fn new(cs: ChannelSystem) -> Self
Creates a new [CsModel] from a [ChannelSystemBuilder].
Sourcepub fn add_predicate(
&mut self,
predicate: BooleanExpr<Atom>,
) -> Result<(), TsError>
pub fn add_predicate( &mut self, predicate: BooleanExpr<Atom>, ) -> Result<(), TsError>
Adds a new predicate to the [CsModel],
which is an expression over the CS’s channels.
Sourcepub fn shrink(&mut self)
pub fn shrink(&mut self)
Shrink ports storage to optimize space use. To be called after having added all ports.
Sourcepub fn new_run(&self) -> TransitionSystemRun<'_>
pub fn new_run(&self) -> TransitionSystemRun<'_>
Generates an executable run of the model.
Trait Implementations§
Source§impl Clone for TransitionSystem
impl Clone for TransitionSystem
Source§fn clone(&self) -> TransitionSystem
fn clone(&self) -> TransitionSystem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TransitionSystem
impl RefUnwindSafe for TransitionSystem
impl Send for TransitionSystem
impl Sync for TransitionSystem
impl Unpin for TransitionSystem
impl UnsafeUnpin for TransitionSystem
impl UnwindSafe for TransitionSystem
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