choco.kernel.solver.variables.scheduling
Class AbstractRTask

java.lang.Object
  extended by choco.kernel.solver.variables.scheduling.AbstractRTask
All Implemented Interfaces:
IPretty, IRTask

public abstract class AbstractRTask
extends Object
implements IRTask


Field Summary
static int ELIMINATED
           
 IntDomainVar height
           
static int REGULAR
           
 int taskIdx
           
 TaskVar taskvar
           
 IntDomainVar usage
           
protected  int value
           
 
Constructor Summary
AbstractRTask(int taskIdx)
           
 
Method Summary
 boolean assign()
           
 void fireRemoval()
           
 IntDomainVar getHeight()
           
 long getMaxConsumption()
           
 int getMaxHeight()
           
 long getMinConsumption()
           
 int getMinHeight()
           
 int getStoredValue()
           
 int getTaskIndex()
           
 IntDomainVar getUsage()
           
 boolean isEliminated()
           
 boolean isOptional()
           
 boolean isRegular()
           
 boolean remove()
           
 void storeValue(int val)
          Utility: A filtering algorithm can store a value to perform update operations (noargs) later.
 boolean updateECT()
          Update using IRTask.getStoredValue() .
 boolean updateEST()
          Update using IRTask.getStoredValue() .
 boolean updateLCT()
          Update using IRTask.getStoredValue() .
 boolean updateLST()
          Update using IRTask.getStoredValue() .
 boolean updateMaxHeight(int val)
           
 boolean updateMinHeight(int val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface choco.kernel.solver.variables.scheduling.IRTask
checkConsistency, fail, getHTask, getTaskVar, setDuration, setECT, setEndingTime, setEndNotIn, setEST, setLCT, setLST, setMaxDuration, setMinDuration, setStartingTime, setStartNotIn, updateCompulsoryPart, updateDuration, updateECT, updateEndingTime, updateEndNotIn, updateEST, updateLCT, updateLST, updateMaxDuration, updateMinDuration, updateStartingTime, updateStartNotIn
 
Methods inherited from interface choco.IPretty
pretty
 

Field Detail

taskIdx

public final int taskIdx

taskvar

public TaskVar taskvar

usage

public IntDomainVar usage

height

public IntDomainVar height

value

protected int value

ELIMINATED

public static final int ELIMINATED
See Also:
Constant Field Values

REGULAR

public static final int REGULAR
See Also:
Constant Field Values
Constructor Detail

AbstractRTask

public AbstractRTask(int taskIdx)
Method Detail

getMaxHeight

public final int getMaxHeight()

getMinHeight

public final int getMinHeight()

getMaxConsumption

public final long getMaxConsumption()

getMinConsumption

public final long getMinConsumption()

getTaskIndex

public final int getTaskIndex()
Specified by:
getTaskIndex in interface IRTask

getStoredValue

public final int getStoredValue()
Specified by:
getStoredValue in interface IRTask

storeValue

public void storeValue(int val)
Description copied from interface: IRTask
Utility: A filtering algorithm can store a value to perform update operations (noargs) later.

Specified by:
storeValue in interface IRTask

updateECT

public final boolean updateECT()
                        throws ContradictionException
Description copied from interface: IRTask
Update using IRTask.getStoredValue() .

Specified by:
updateECT in interface IRTask
Throws:
ContradictionException

updateEST

public final boolean updateEST()
                        throws ContradictionException
Description copied from interface: IRTask
Update using IRTask.getStoredValue() .

Specified by:
updateEST in interface IRTask
Throws:
ContradictionException

updateLCT

public final boolean updateLCT()
                        throws ContradictionException
Description copied from interface: IRTask
Update using IRTask.getStoredValue() .

Specified by:
updateLCT in interface IRTask
Throws:
ContradictionException

updateLST

public final boolean updateLST()
                        throws ContradictionException
Description copied from interface: IRTask
Update using IRTask.getStoredValue() .

Specified by:
updateLST in interface IRTask
Throws:
ContradictionException

getHeight

public IntDomainVar getHeight()

updateMaxHeight

public boolean updateMaxHeight(int val)
                        throws ContradictionException
Throws:
ContradictionException

updateMinHeight

public boolean updateMinHeight(int val)
                        throws ContradictionException
Throws:
ContradictionException

getUsage

public IntDomainVar getUsage()

isOptional

public boolean isOptional()

isRegular

public boolean isRegular()

isEliminated

public boolean isEliminated()

assign

public boolean assign()
               throws ContradictionException
Throws:
ContradictionException

remove

public boolean remove()
               throws ContradictionException
Throws:
ContradictionException

fireRemoval

public void fireRemoval()


Copyright © 2012. All Rights Reserved.