pub struct SteadyErrorPath<'a> {
steady_paths: Vec<SteadyPath>,
step_transitions: Vec<SymbolicTransition>,
error_graph: &'a ZCSErrorGraph<'a>,
}Expand description
Type that represents a steady error path
A steady error path consists of a sequence of steady paths π_0, … , π_k and a sequence of symbolic transitions r_0,…,r_{k-1} where ∀ 0 < i \leq k: π_i is reached by applying rule r_{i-1} from π_{i-1}
Fields§
§steady_paths: Vec<SteadyPath>§step_transitions: Vec<SymbolicTransition>§error_graph: &'a ZCSErrorGraph<'a>Implementations§
Source§impl<'a> SteadyErrorPath<'a>
impl<'a> SteadyErrorPath<'a>
Sourcepub fn new(steady_path: SteadyPath, error_graph: &'a ZCSErrorGraph<'_>) -> Self
pub fn new(steady_path: SteadyPath, error_graph: &'a ZCSErrorGraph<'_>) -> Self
creates a new Steady Error Path for a given SteadyPath
Sourcepub fn get_last_states(&self) -> ZCSStates
pub fn get_last_states(&self) -> ZCSStates
returns the last SymbolicState of the last steady path
Sourcepub fn get_last_assignment(&self) -> SymbolicVariableAssignment
pub fn get_last_assignment(&self) -> SymbolicVariableAssignment
returns the last SymbolicVariableAssignment of the last steady path
Sourcepub fn add_successor(
&mut self,
step_transition: &SymbolicTransition,
steady_path: SteadyPath,
)
pub fn add_successor( &mut self, step_transition: &SymbolicTransition, steady_path: SteadyPath, )
adds a new steady path to the steady error path that is reached with the given transition rule
Sourcepub fn is_non_spurious(
&self,
reached_error_state: bool,
smc_ctx: &ZCSModelCheckerContext<'_>,
) -> SpuriousResult
pub fn is_non_spurious( &self, reached_error_state: bool, smc_ctx: &ZCSModelCheckerContext<'_>, ) -> SpuriousResult
checks if the steady error path is non-spurious
reached_error_states indicates if the last steady path reached an error state
Sourcepub fn length_configurations(&self) -> u32
pub fn length_configurations(&self) -> u32
returns the length of different contexts that is defined by the number of steady paths
Sourcepub fn concrete_rules_ordered(
&self,
ta: &'a IntervalThresholdAutomaton,
) -> impl Iterator<Item = &'a Rule>
pub fn concrete_rules_ordered( &self, ta: &'a IntervalThresholdAutomaton, ) -> impl Iterator<Item = &'a Rule>
returns an ordered iterator over all applied rules including the step rules
Sourcepub fn steady_paths(&self) -> impl Iterator<Item = &SteadyPath>
pub fn steady_paths(&self) -> impl Iterator<Item = &SteadyPath>
returns an ordered iterator over the steady paths
Sourcepub fn last_is_monotonic(&self, ta: &IntervalThresholdAutomaton) -> bool
pub fn last_is_monotonic(&self, ta: &IntervalThresholdAutomaton) -> bool
returns if the last steady error path is monotonic i.e., if for every shared variable the value is either only increasing or only decreasing
Trait Implementations§
Source§impl<'a> Clone for SteadyErrorPath<'a>
impl<'a> Clone for SteadyErrorPath<'a>
Source§fn clone(&self) -> SteadyErrorPath<'a>
fn clone(&self) -> SteadyErrorPath<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> Debug for SteadyErrorPath<'a>
impl<'a> Debug for SteadyErrorPath<'a>
Auto Trait Implementations§
impl<'a> Freeze for SteadyErrorPath<'a>
impl<'a> !RefUnwindSafe for SteadyErrorPath<'a>
impl<'a> !Send for SteadyErrorPath<'a>
impl<'a> !Sync for SteadyErrorPath<'a>
impl<'a> Unpin for SteadyErrorPath<'a>
impl<'a> !UnwindSafe for SteadyErrorPath<'a>
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
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>
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>
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