|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.AbstractEntity
choco.AbstractConstraint
choco.integer.constraints.AbstractIntConstraint
choco.integer.constraints.AbstractLargeIntConstraint
choco.global.Cumulative
public class Cumulative
Created by IntelliJ IDEA. Author: Hadrien Date: 29 juil. 2005
Nested Class Summary | |
---|---|
protected class |
Cumulative.EndingDateComparator
|
protected class |
Cumulative.Event
|
protected class |
Cumulative.EventComparator
|
protected class |
Cumulative.IntList
|
protected class |
Cumulative.StartingDateComparator
|
Field Summary | |
---|---|
protected int |
capaMax
|
protected int[] |
contributions
|
static boolean |
debug
|
protected IntDomainVar[] |
durations
|
protected java.util.Comparator |
endComp
|
protected IntDomainVar[] |
ends
|
protected java.util.ArrayList<Cumulative.Event> |
events
first data structure of the sweep algorithm event point series : list of Event |
protected java.util.Comparator |
evtComp
|
protected boolean |
fixPoint
|
protected int[] |
heights
|
protected int |
nbTask
|
protected IntDomainVar[] |
starts
|
protected java.util.Comparator |
stComp
|
protected int |
sum_height
data structures of the sweep algorithm sweep line status |
static boolean |
taskInter
|
protected Cumulative.IntList |
taskToPrune
|
protected java.util.ArrayList<java.lang.Integer> |
Xtasks
|
protected java.util.ArrayList<java.lang.Integer> |
Ytasks
|
Fields inherited from class choco.integer.constraints.AbstractLargeIntConstraint |
---|
cIndices, cste, vars |
Fields inherited from class choco.integer.constraints.AbstractIntConstraint |
---|
logger |
Fields inherited from class choco.AbstractConstraint |
---|
active, constAwakeEvent, hook, priority |
Fields inherited from class choco.AbstractEntity |
---|
problem |
Constructor Summary | |
---|---|
Cumulative(IntDomainVar[] starts,
IntDomainVar[] ends,
IntDomainVar[] duration,
int[] h,
int Capa)
|
Method Summary | |
---|---|
void |
awakeOnBounds(int varIndex)
|
void |
awakeOnInst(int idx)
Default propagation on instantiation: full constraint re-propagation. |
void |
awakeOnRemovals(int idx,
IntIterator deltaDomain)
The default implementation of propagation when a variable has been modified consists in iterating all values that have been removed (the delta domain) and propagate them one after another, incrementally. |
void |
filter()
|
boolean |
generateEvents()
|
int |
getEE(int i)
return earliest end of task i |
int |
getES(int i)
return earliest start of task i |
int |
getLE(int i)
return latest start of task i |
int |
getLS(int i)
return latest start of task i |
void |
initMainIteration()
|
java.lang.Boolean |
isEntailed()
Checks whether the constraint is definitely satisfied, no matter what further restrictions occur to the domain of its variables. |
boolean |
isSatisfied()
Semantic: Testing if the constraint is satisfied. |
boolean |
isScheduled(int i)
|
void |
propagate()
Propagates the constraint awake events. |
void |
prune(int low,
int up)
|
void |
sweep()
|
void |
taskIntervals()
|
void |
updateCompulsoryPart()
|
Methods inherited from class choco.integer.constraints.AbstractLargeIntConstraint |
---|
assignIndices, clone, getConstraintIdx, getIntVar, getNbVars, getVar, isCompletelyInstantiated, setConstraintIndex, setVar |
Methods inherited from class choco.integer.constraints.AbstractIntConstraint |
---|
awakeOnInf, awakeOnRem, awakeOnSup, getSelfIndex, isConsistent |
Methods inherited from class choco.AbstractConstraint |
---|
addListener, awake, awakeOnVar, connectVar, constAwake, delete, fail, getEvent, getPlugIn, getPriority, getProblem, getVarIdxInOpposite, isActive, isEquivalentTo, opposite, setActive, setEntailed, setPassive, setPlugIn, substituteVar |
Methods inherited from class choco.AbstractEntity |
---|
pretty |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface choco.Propagator |
---|
awake, awakeOnVar, constAwake, delete, getEvent, getPlugIn, getPriority |
Methods inherited from interface choco.prop.VarEventListener |
---|
addListener, isActive, setActive, setPassive |
Methods inherited from interface choco.prop.VarEventListener |
---|
addListener, isActive, setActive, setPassive |
Field Detail |
---|
public static boolean debug
public static boolean taskInter
protected int nbTask
protected int capaMax
protected java.util.ArrayList<Cumulative.Event> events
protected java.util.Comparator evtComp
protected int sum_height
protected Cumulative.IntList taskToPrune
protected IntDomainVar[] starts
protected IntDomainVar[] ends
protected IntDomainVar[] durations
protected int[] heights
protected int[] contributions
protected boolean fixPoint
protected java.util.ArrayList<java.lang.Integer> Xtasks
protected java.util.Comparator stComp
protected java.util.ArrayList<java.lang.Integer> Ytasks
protected java.util.Comparator endComp
Constructor Detail |
---|
public Cumulative(IntDomainVar[] starts, IntDomainVar[] ends, IntDomainVar[] duration, int[] h, int Capa)
Method Detail |
---|
public void awakeOnBounds(int varIndex) throws ContradictionException
awakeOnBounds
in interface IntConstraint
awakeOnBounds
in class AbstractIntConstraint
ContradictionException
public void awakeOnRemovals(int idx, IntIterator deltaDomain) throws ContradictionException
AbstractIntConstraint
awakeOnRemovals
in interface IntConstraint
awakeOnRemovals
in class AbstractIntConstraint
ContradictionException
public void awakeOnInst(int idx) throws ContradictionException
AbstractIntConstraint
awakeOnInst
in interface IntVarEventListener
awakeOnInst
in class AbstractIntConstraint
ContradictionException
public void propagate() throws ContradictionException
AbstractLargeIntConstraint
propagate
in interface Propagator
propagate
in class AbstractLargeIntConstraint
ContradictionException
public boolean isSatisfied()
Constraint
public java.lang.Boolean isEntailed()
Propagator
isEntailed
in interface Propagator
isEntailed
in class AbstractConstraint
public boolean isScheduled(int i)
public int getES(int i)
i
- public int getLS(int i)
i
- public int getEE(int i)
i
- public int getLE(int i)
i
- public boolean generateEvents()
public void initMainIteration()
public void filter() throws ContradictionException
ContradictionException
public void sweep() throws ContradictionException
ContradictionException
public void prune(int low, int up) throws ContradictionException
ContradictionException
public void updateCompulsoryPart() throws ContradictionException
ContradictionException
public void taskIntervals() throws ContradictionException
ContradictionException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |