Skip to main content

InitRestriction

Struct InitRestriction 

Source
pub struct InitRestriction {
    precondition_par: Conjunction<BooleanExpression<Parameter>>,
    precondition_loc: Conjunction<BooleanExpression<Location>>,
    precondition_var: Conjunction<BooleanExpression<Variable>>,
}
Expand description

Restriction on the initial configuration of a run

The restriction is a conjunction of arbitrary boolean constraints, split by the kind of atoms they range over. Constraints on parameters are rigid, i.e., they hold at every position of a run.

Fields§

§precondition_par: Conjunction<BooleanExpression<Parameter>>

Conjunction of conditions on the parameters

§precondition_loc: Conjunction<BooleanExpression<Location>>

Conjunction of conditions on the initial distribution of processes in the threshold automaton

§precondition_var: Conjunction<BooleanExpression<Variable>>

Conjunction of conditions on the initial valuation of the shared variables

Implementations§

Source§

impl InitRestriction

Source

pub fn new_top() -> Self

Create a restriction that allows every initial configuration

Source

pub fn new_parameter_constraint(constr: BooleanExpression<Parameter>) -> Self

Create a restriction consisting of a single parameter constraint

Source

pub fn new_location_constraint(constr: BooleanExpression<Location>) -> Self

Create a restriction consisting of a single constraint on the initial distribution of processes

Source

pub fn new_variable_constraint(constr: BooleanExpression<Variable>) -> Self

Create a restriction consisting of a single constraint on the initial valuation of the shared variables

Source

pub fn is_top(&self) -> bool

Check whether the restriction allows every initial configuration

Source

pub fn try_or(&self, other: &Self) -> Option<Self>

Disjunction of two restrictions, if a sound merge exists

The restriction is a conjunction of one condition per kind of atom. Because of this, the disjunction is only representable if both restrictions differ in at most one kind: (p && l1 && v) || (p && l2 && v) is equal to p && (l1 || l2) && v.

Source

pub fn parameter_constraints( &self, ) -> &Conjunction<BooleanExpression<Parameter>>

Conditions on the parameters

Source

pub fn location_constraints(&self) -> &Conjunction<BooleanExpression<Location>>

Conditions on the initial distribution of processes

Source

pub fn variable_constraints(&self) -> &Conjunction<BooleanExpression<Variable>>

Conditions on the initial valuation of the shared variables

Trait Implementations§

Source§

impl And for InitRestriction

Source§

fn and(self, other: Self) -> Self

Get the conjunction of self and other
Source§

impl BitAnd for InitRestriction

Source§

type Output = InitRestriction

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl Clone for InitRestriction

Source§

fn clone(&self) -> InitRestriction

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 InitRestriction

Source§

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

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

impl Default for InitRestriction

Source§

fn default() -> InitRestriction

Returns the “default value” for a type. Read more
Source§

impl Display for InitRestriction

Source§

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

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

impl PartialEq for InitRestriction

Source§

fn eq(&self, other: &InitRestriction) -> 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 StructuralPartialEq for InitRestriction

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.