Skip to main content

ErrorSpec

Struct ErrorSpec 

Source
pub struct ErrorSpec {
    name: String,
    source: Box<ELTLExpression>,
    ef: ErrorFormula,
}
Expand description

Named specification of erroneous behavior

An ErrorSpec pairs the original ELTL property with the ErrorFormula describing its violations. The threshold automaton violates the property if and only if there exists a run satisfying the error formula.

Fields§

§name: String

Name of the property

§source: Box<ELTLExpression>

The ELTL property this error specification was derived from

§ef: ErrorFormula

Formula describing the violations of the property

Implementations§

Source§

impl ErrorSpec

Source

pub fn from_named_eltl<S: Into<String>>( name: S, property: ELTLExpression, ) -> Result<Self, ExtractionError>

Error specification of a named ELTL formula

property describes the erroneous behavior and is not negated here. Negations are pushed to the atoms, then the formula is transformed into an ErrorFormula. Temporal operators at the top level become targets. Atoms at the top level restrict the initial configuration.

Source§

impl ErrorSpec

Source

pub fn name(&self) -> &str

Get the name of the specification

Source

pub fn source(&self) -> &ELTLExpression

Get the ELTL property this specification was derived from

Source

pub fn error_formula(&self) -> &ErrorFormula

Get the formula describing the violations of the property

Source

pub fn create_tas_to_check<T: ModifiableThresholdAutomaton>( &self, ta: &T, ) -> impl Iterator<Item = (ErrorTarget, T)>

Create the threshold automata that need to be checked

Trait Implementations§

Source§

impl Clone for ErrorSpec

Source§

fn clone(&self) -> ErrorSpec

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ErrorSpec

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for ErrorSpec

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for ErrorSpec

Source§

fn eq(&self, other: &ErrorSpec) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<C: ModelCheckerContext> SpecificationTrait<C> for ErrorSpec

Source§

type TransformationError = ExtractionError

Error occurring when transformation from ELTL specification fails
Source§

type InternalSpecType = ErrorTarget

Internal specification type the model checker works on
Source§

fn try_from_eltl( spec: impl Iterator<Item = (String, ELTLExpression)>, _ctx: &C, ) -> Result<(Vec<Self>, Vec<String>), Self::TransformationError>

Try to derive the specification type from ELTL specification Read more
Source§

fn transform_threshold_automaton<TA: ThresholdAutomaton + ModifiableThresholdAutomaton>( ta: TA, specs: Vec<Self>, _ctx: &C, ) -> Vec<(String, Self::InternalSpecType, TA)>

Create threshold automata to check Read more
Source§

impl StructuralPartialEq for ErrorSpec

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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.