choco.cp.solver.constraints.global.scheduling.cumulative
Class CumulSweep
java.lang.Object
choco.cp.solver.constraints.global.scheduling.cumulative.CumulSweep
- All Implemented Interfaces:
- ICumulSweep
public class CumulSweep
- extends Object
- implements ICumulSweep
- Since:
- 3 mars 2009 version 2.0.3
- Version:
- 2.0.3
- Author:
- Arnaud Malapert
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rsc
public final AbstractCumulativeSConstraint rsc
tasks
protected final List<IRTask> tasks
CumulSweep
public CumulSweep(AbstractCumulativeSConstraint rsc,
List<IRTask> tasks)
generateEvents
public boolean generateEvents()
checkConsAndCapa
protected final void checkConsAndCapa()
throws ContradictionException
- Throws:
ContradictionException
initializeSweep
protected final void initializeSweep()
sweep
public boolean sweep()
throws ContradictionException
- Description copied from interface:
ICumulSweep
- Build to cumulative profile and achieve the pruning regarding this
profile.
- Specified by:
sweep
in interface ICumulSweep
- Returns:
true
if any change was performed
- Throws:
ContradictionException
pruneRequired
protected boolean pruneRequired(IRTask rtask,
int low,
int up)
throws ContradictionException
- Throws:
ContradictionException
pruneForbidden
protected final boolean pruneForbidden(IRTask rtask,
int low,
int up)
throws ContradictionException
- Throws:
ContradictionException
pruneHeight
protected boolean pruneHeight(IRTask rtask,
int low,
int up)
throws ContradictionException
- Throws:
ContradictionException
prune
protected void prune(int low,
int up)
throws ContradictionException
- Throws:
ContradictionException
Copyright © 2012. All Rights Reserved.