pub struct StaticIntervalOrderBuilder {
order_generator: SimpleOrderGeneratorContext,
vars: Vec<Variable>,
}Expand description
Builder for generating static interval orders
Fields§
§order_generator: SimpleOrderGeneratorContext§vars: Vec<Variable>Implementations§
Source§impl StaticIntervalOrderBuilder
impl StaticIntervalOrderBuilder
Sourcepub fn new<T: ThresholdAutomaton>(
ta: &T,
smt_solver_builder: SMTSolverBuilder,
) -> Self
pub fn new<T: ThresholdAutomaton>( ta: &T, smt_solver_builder: SMTSolverBuilder, ) -> Self
Create a new static interval order builder
Sourcepub fn add_single_variable_interval(
self,
var: &Variable,
interval: &IntervalBoundary,
) -> Self
pub fn add_single_variable_interval( self, var: &Variable, interval: &IntervalBoundary, ) -> Self
Add an interval found for a single variable
Sourcepub fn add_multi_variable_interval(
self,
sum: &WeightedSum<Variable>,
interval: &IntervalBoundary,
) -> Self
pub fn add_multi_variable_interval( self, sum: &WeightedSum<Variable>, interval: &IntervalBoundary, ) -> Self
Add an interval found for a sum of variables
Sourcepub fn build(self) -> Vec<StaticIntervalOrder>
pub fn build(self) -> Vec<StaticIntervalOrder>
Generate all possible orders on intervals
Auto Trait Implementations§
impl !Freeze for StaticIntervalOrderBuilder
impl !RefUnwindSafe for StaticIntervalOrderBuilder
impl !Send for StaticIntervalOrderBuilder
impl !Sync for StaticIntervalOrderBuilder
impl Unpin for StaticIntervalOrderBuilder
impl !UnwindSafe for StaticIntervalOrderBuilder
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> 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