- 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 void
ensureBoundConsistency()
Applies BC-filtering so that start + duration = endIntVar
getDuration()
IntVar
getEnd()
IntVar
getStart()
String
toString()
-
-
-
Method Detail
-
ensureBoundConsistency
public void ensureBoundConsistency() throws ContradictionException
Applies 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()
-
-