public class SweepHeiSortCumulFilter extends SweepCumulFilter
SweepCumulFilter.Event
Modifier and Type | Field and Description |
---|---|
protected IntComparator |
comparator |
protected int[] |
sortedTasks |
protected ArraySort |
taskSorter |
dlb, ECP, elb, eub, eventComparator, events, FIXPOINT, hlb, map, nbEvents, PRU, SCP, slb, sort, sub, tasksToUSe, temp, tprune
aCause, nbMaxTasks
Constructor and Description |
---|
SweepHeiSortCumulFilter(int n,
Propagator cause) |
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)
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) |
pruneMax, pruneMin, removeNullDurations
protected final int[] sortedTasks
protected final ArraySort taskSorter
protected final IntComparator comparator
public SweepHeiSortCumulFilter(int n, Propagator cause)
public void filter(IntVar[] s, IntVar[] d, IntVar[] e, IntVar[] h, IntVar capa, ISet tasks) throws ContradictionException
CumulFilter
filter
in class SweepCumulFilter
s
- start variablesd
- duration variablese
- end variablesh
- height variablescapa
- maximum capacity variabletasks
- subset of tasks to filterContradictionException
protected boolean sweep(IntVar capamax, IntVar[] h, int nbT) throws ContradictionException
sweep
in class SweepCumulFilter
ContradictionException
protected void generateMinEvents(int nbT)
generateMinEvents
in class SweepCumulFilter
protected boolean checkSort(IntVar[] h, int nbT)
Copyright © 2015. All rights reserved.