pub struct SteadyPath {
transitions: Vec<SymbolicTransition>,
reachable_states: ZCSStates,
variable_assignment: SymbolicVariableAssignment,
}Expand description
Type that represents a steady path
A steady path describes a path fragment in which the context (variable) doesn’t change
where reachable_state describes the set of symbolic states that can be reached within this path fragment
and transitions describes the set of transitions that can be applied.
Fields§
§transitions: Vec<SymbolicTransition>§reachable_states: ZCSStates§variable_assignment: SymbolicVariableAssignmentImplementations§
Source§impl SteadyPath
impl SteadyPath
Sourcepub fn new(
transitions: Vec<&SymbolicTransition>,
reachable_states: ZCSStates,
variable_assignment: SymbolicVariableAssignment,
) -> Self
pub fn new( transitions: Vec<&SymbolicTransition>, reachable_states: ZCSStates, variable_assignment: SymbolicVariableAssignment, ) -> Self
creates a new steady path for a given set of transitions, set of reachable states and a variable assignment
Sourcepub fn length_transitions(&self) -> u32
pub fn length_transitions(&self) -> u32
returns the length of the transitions inside the steady path
Sourcepub fn transitions(&self) -> impl Iterator<Item = &SymbolicTransition>
pub fn transitions(&self) -> impl Iterator<Item = &SymbolicTransition>
returns an iterator over the transitions
Sourcepub fn variable_assignment(&self) -> &VariableAssignment
pub fn variable_assignment(&self) -> &VariableAssignment
returns the concrete variable assignment of the steady path
Sourcepub fn _reachable_states(&self) -> &ZCSStates
pub fn _reachable_states(&self) -> &ZCSStates
returns the reachable states of the steady path
Trait Implementations§
Source§impl Clone for SteadyPath
impl Clone for SteadyPath
Source§fn clone(&self) -> SteadyPath
fn clone(&self) -> SteadyPath
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 moreAuto Trait Implementations§
impl Freeze for SteadyPath
impl !RefUnwindSafe for SteadyPath
impl !Send for SteadyPath
impl !Sync for SteadyPath
impl Unpin for SteadyPath
impl !UnwindSafe for SteadyPath
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