pub struct TimeTableOverIntervalIncrementalPropagator<Var, const SYNCHRONISE: bool> { /* private fields */ }Expand description
Propagator responsible for using time-table reasoning to propagate the Cumulative constraint
where a time-table is a structure which stores the mandatory resource usage of the tasks at
different time-points - This method creates a resource profile over an interval rather than
creating one per time-point (hence the name). Furthermore, the
[TimeTableOverIntervalPropagator] has a generic argument which represents the type of variable
used for modelling the start variables, this will be an implementation of IntegerVariable.
The difference between the TimeTableOverIntervalIncrementalPropagator and
[TimeTableOverIntervalPropagator] is that the TimeTableOverIntervalIncrementalPropagator
does not recalculate the time-table from scratch whenever the
Propagator::propagate method is called but it utilises the
Propagator::notify method to determine when a mandatory part is added
and only updates the structure based on these updated mandatory parts.
See Sections 4.2.1, 4.5.2 and 4.6.1-4.6.3 of [1] for more information about time-table reasoning.
[1] A. Schutt, Improving scheduling by learning. University of Melbourne, Department of Computer Science and Software Engineering, 2011.
Implementations§
Source§impl<Var, const SYNCHRONISE: bool> TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>where
Var: IntegerVariable + 'static,
impl<Var, const SYNCHRONISE: bool> TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>where
Var: IntegerVariable + 'static,
pub fn new( arg_tasks: &[ArgTask<Var>], capacity: i32, cumulative_options: CumulativePropagatorOptions, constraint_tag: ConstraintTag, ) -> TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>
Trait Implementations§
Source§impl<Var, const SYNCHRONISE: bool> Clone for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>where
Var: Clone,
impl<Var, const SYNCHRONISE: bool> Clone for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>where
Var: Clone,
Source§fn clone(&self) -> TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>
fn clone(&self) -> TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<Var, const SYNCHRONISE: bool> Debug for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>where
Var: Debug,
impl<Var, const SYNCHRONISE: bool> Debug for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>where
Var: Debug,
Source§impl<Var, const SYNCHRONISE: bool> Propagator for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>where
Var: IntegerVariable + 'static,
impl<Var, const SYNCHRONISE: bool> Propagator for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>where
Var: IntegerVariable + 'static,
Source§fn propagate(&mut self, context: PropagationContext<'_>) -> Result<(), Conflict>
fn propagate(&mut self, context: PropagationContext<'_>) -> Result<(), Conflict>
Propagator::propagate_from_scratch). Read moreSource§fn notify(
&mut self,
context: NotificationContext<'_>,
local_id: LocalId,
event: OpaqueDomainEvent,
) -> EnqueueDecision
fn notify( &mut self, context: NotificationContext<'_>, local_id: LocalId, event: OpaqueDomainEvent, ) -> EnqueueDecision
DomainEvent]
happens to one of the variables the propagator is subscribed to (as registered during
creation with [PropagatorConstructor] using [PropagatorConstructorContext::register]). Read moreSource§fn notify_backtrack(
&mut self,
context: Domains<'_>,
local_id: LocalId,
event: OpaqueDomainEvent,
)
fn notify_backtrack( &mut self, context: Domains<'_>, local_id: LocalId, event: OpaqueDomainEvent, )
DomainEvent] is undone during backtracking
of one of the variables the propagator is subscribed to (as registered during creation with
[PropagatorConstructor] using [PropagatorConstructorContext::register_backtrack]). Read moreSource§fn synchronise(&mut self, context: NotificationContext<'_>)
fn synchronise(&mut self, context: NotificationContext<'_>)
Source§fn propagate_from_scratch(
&self,
context: PropagationContext<'_>,
) -> Result<(), Conflict>
fn propagate_from_scratch( &self, context: PropagationContext<'_>, ) -> Result<(), Conflict>
Propagator::propagate). Read moreSource§fn notify_predicate_id_satisfied(
&mut self,
_context: NotificationContext<'_>,
_predicate_id: PredicateId,
) -> EnqueueDecision
fn notify_predicate_id_satisfied( &mut self, _context: NotificationContext<'_>, _predicate_id: PredicateId, ) -> EnqueueDecision
Predicate (with
corresponding PredicateId) which the propagator is subscribed to (as registered either
during using PropagationContext::register_predicate or during creation with
[PropagatorConstructor] using [PropagatorConstructorContext::register_predicate]). Read moreSource§fn detect_inconsistency(
&self,
_domains: Domains<'_>,
) -> Option<PropagatorConflict>
fn detect_inconsistency( &self, _domains: Domains<'_>, ) -> Option<PropagatorConflict>
Some with a PropagatorConflict when this propagator can
detect an inconsistency (and None otherwise). Read moreSource§fn lazy_explanation(
&mut self,
_code: u64,
_context: ExplanationContext<'_>,
) -> LazyExplanation<'_>
fn lazy_explanation( &mut self, _code: u64, _context: ExplanationContext<'_>, ) -> LazyExplanation<'_>
Source§fn log_statistics(&self, _statistic_logger: StatisticLogger)
fn log_statistics(&self, _statistic_logger: StatisticLogger)
StatisticLogger. Read moreSource§impl<Var, const SYNCHRONISE: bool> PropagatorConstructor for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>where
Var: IntegerVariable + 'static,
impl<Var, const SYNCHRONISE: bool> PropagatorConstructor for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>where
Var: IntegerVariable + 'static,
Source§type PropagatorImpl = TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>
type PropagatorImpl = TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>
Source§fn add_inference_checkers(&self, checkers: InferenceCheckers<'_>)
fn add_inference_checkers(&self, checkers: InferenceCheckers<'_>)
Source§fn create(
self,
context: PropagatorConstructorContext<'_>,
) -> <TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE> as PropagatorConstructor>::PropagatorImpl
fn create( self, context: PropagatorConstructorContext<'_>, ) -> <TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE> as PropagatorConstructor>::PropagatorImpl
Self.Auto Trait Implementations§
impl<Var, const SYNCHRONISE: bool> !Send for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>
impl<Var, const SYNCHRONISE: bool> !Sync for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>
impl<Var, const SYNCHRONISE: bool> Freeze for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>
impl<Var, const SYNCHRONISE: bool> RefUnwindSafe for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>where
Var: RefUnwindSafe,
impl<Var, const SYNCHRONISE: bool> Unpin for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>
impl<Var, const SYNCHRONISE: bool> UnsafeUnpin for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>
impl<Var, const SYNCHRONISE: bool> UnwindSafe for TimeTableOverIntervalIncrementalPropagator<Var, SYNCHRONISE>where
Var: RefUnwindSafe,
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<ConcretePropagator> Constraint for ConcretePropagatorwhere
ConcretePropagator: PropagatorConstructor + 'static,
impl<ConcretePropagator> Constraint for ConcretePropagatorwhere
ConcretePropagator: PropagatorConstructor + 'static,
Source§fn implied_by(
self,
solver: &mut Solver,
reification_literal: Literal,
) -> Result<(), ConstraintOperationError>
fn implied_by( self, solver: &mut Solver, reification_literal: Literal, ) -> Result<(), ConstraintOperationError>
Constraint to the Solver; i.e. post the
constraint r -> constraint where r is a reification literal. Read moreSource§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.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