pub struct Parameter(String);Expand description
Parameter appearing in a threshold automaton
Parameters are used to represent for example the number of processes and faulty processes. They are constrained by the resilience conditions and do not change during execution. Typical parameter names are n, t and f.
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl<T> IntoNoDivBooleanExpr<T> for Parameter
impl<T> IntoNoDivBooleanExpr<T> for Parameter
Source§fn get_scaled_integer_expression(
&self,
scaling_factor: u32,
) -> IntegerExpression<T>
fn get_scaled_integer_expression( &self, scaling_factor: u32, ) -> IntegerExpression<T>
Encode the object into an
IntegerExpression without divisions
appearing Read moreSource§fn get_lcm_of_denominators(&self) -> u32
fn get_lcm_of_denominators(&self) -> u32
Get the lcm across all denominators in the object Read more
Source§fn encode_comparison_to_boolean_expression<Q>(
&self,
comparison_op: ComparisonOp,
other: &Q,
) -> BooleanExpression<T>where
Q: IntoNoDivBooleanExpr<T>,
fn encode_comparison_to_boolean_expression<Q>(
&self,
comparison_op: ComparisonOp,
other: &Q,
) -> BooleanExpression<T>where
Q: IntoNoDivBooleanExpr<T>,
Encode the comparison of two expressions into a boolean expression with a
that does not contain any real numbers. Read more
Source§impl IsDeclared<Parameter> for GeneralThresholdAutomaton
impl IsDeclared<Parameter> for GeneralThresholdAutomaton
Source§fn is_declared(&self, param: &Parameter) -> bool
fn is_declared(&self, param: &Parameter) -> bool
Check if object of type T is declared
Source§impl IsDeclared<Parameter> for InitializedGeneralThresholdAutomatonBuilder
impl IsDeclared<Parameter> for InitializedGeneralThresholdAutomatonBuilder
Source§fn is_declared(&self, param: &Parameter) -> bool
fn is_declared(&self, param: &Parameter) -> bool
Check if object of type T is declared
Source§impl IsDeclared<Parameter> for LIAThresholdAutomaton
impl IsDeclared<Parameter> for LIAThresholdAutomaton
Source§fn is_declared(&self, obj: &Parameter) -> bool
fn is_declared(&self, obj: &Parameter) -> bool
Check if object of type T is declared
Source§impl Ord for Parameter
impl Ord for Parameter
Source§impl PartialOrd for Parameter
impl PartialOrd for Parameter
impl Eq for Parameter
impl StructuralPartialEq for Parameter
Auto Trait Implementations§
impl Freeze for Parameter
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnwindSafe for Parameter
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