Package org.chocosolver.solver.variables
Class Task
- java.lang.Object
-
- org.chocosolver.solver.variables.Task
-
public class Task extends Object
Container representing a task: It ensures that: start + duration = end- Since:
- 04/02/2013
- Author:
- Jean-Guillaume Fages
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidensureBoundConsistency()Applies BC-filtering so that start + duration = endIntVargetDuration()IntVargetEnd()IntVargetStart()StringtoString()
-
-
-
Method Detail
-
ensureBoundConsistency
public void ensureBoundConsistency() throws ContradictionExceptionApplies BC-filtering so that start + duration = end- Throws:
ContradictionException- thrown if a inconsistency has been detected between start, end and duration
-
getStart
public IntVar getStart()
-
getDuration
public IntVar getDuration()
-
getEnd
public IntVar getEnd()
-
-