- 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
-
-
Constructor Summary
Constructors Constructor Description Task(Model model, int est, int lst, int d, int ect, int lct)
Container representing a task: It ensures that: start + duration = end, end being an offset view of start + duration.Task(IntVar s, int d)
Container representing a task: It ensures that: start + duration = end, end being an offset view of start + duration.Task(IntVar s, int d, IntVar e)
Container representing a task: It ensures that: start + duration = end, end being an offset view of start + duration.Task(IntVar s, IntVar d, IntVar e)
Container representing a task: It ensures that: start + duration = endTask(IntVar s, IntVar d, IntVar e, boolean declareMonitor)
Deprecated.
-
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()
IVariableMonitor<IntVar>
getMonitor()
IntVar
getStart()
String
toString()
-
-
-
Constructor Detail
-
Task
public Task(Model model, int est, int lst, int d, int ect, int lct)
Container representing a task: It ensures that: start + duration = end, end being an offset view of start + duration.- Parameters:
model
- the Model of the variablesest
- earliest starting timelst
- latest starting timed
- durationect
- earliest completion timelct
- latest completion time time
-
Task
public Task(IntVar s, int d)
Container representing a task: It ensures that: start + duration = end, end being an offset view of start + duration.- Parameters:
s
- start variabled
- duration value
-
Task
public Task(IntVar s, int d, IntVar e)
Container representing a task: It ensures that: start + duration = end, end being an offset view of start + duration.- Parameters:
s
- start variabled
- duration valuee
- end variable
-
Task
public Task(IntVar s, IntVar d, IntVar e)
Container representing a task: It ensures that: start + duration = end- Parameters:
s
- start variabled
- duration variablee
- end variable
-
Task
@Deprecated public Task(IntVar s, IntVar d, IntVar e, boolean declareMonitor)
Deprecated.
-
-
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()
-
getMonitor
public IVariableMonitor<IntVar> getMonitor()
-
-