public class SweepHeiSortCumulFilter extends SweepCumulFilter
SweepCumulFilter.Event
dlb, ECP, elb, eub, eventComparator, events, FIXPOINT, hlb, map, nbEvents, PRU, SCP, slb, sort, sub, tasksToUSe, temp, tprune
nbMaxTasks
Constructor and Description |
---|
SweepHeiSortCumulFilter(int n) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkSort(IntVar[] h,
int nbT) |
void |
filter(IntVar[] s,
IntVar[] d,
IntVar[] e,
IntVar[] h,
IntVar capa,
ISet tasks,
Propagator<IntVar> aCause)
Filters the cumulative constraint over the subset of tasks induced by tasks
|
protected void |
generateMinEvents(int nbT) |
protected boolean |
sweep(IntVar capamax,
IntVar[] h,
int nbT,
Propagator<IntVar> aCause) |
pruneMax, pruneMin, removeNullDurations
public void filter(IntVar[] s, IntVar[] d, IntVar[] e, IntVar[] h, IntVar capa, ISet tasks, Propagator<IntVar> aCause) throws ContradictionException
CumulFilter
filter
in class SweepCumulFilter
s
- start variablesd
- duration variablese
- end variablesh
- height variablescapa
- maximum capacity variabletasks
- subset of tasks to filteraCause
- a cumulative propagatorContradictionException
protected boolean sweep(IntVar capamax, IntVar[] h, int nbT, Propagator<IntVar> aCause) throws ContradictionException
sweep
in class SweepCumulFilter
ContradictionException
protected void generateMinEvents(int nbT)
generateMinEvents
in class SweepCumulFilter
protected boolean checkSort(IntVar[] h, int nbT)
Copyright © 2018. All rights reserved.