choco.kernel.model.variables.scheduling
Class TaskVariable
java.lang.Object
choco.kernel.model.VariableArray
choco.kernel.model.ModelObject
choco.kernel.model.variables.AbstractVariable
choco.kernel.model.variables.MultipleVariables
choco.kernel.model.variables.scheduling.TaskVariable
- All Implemented Interfaces:
- IPretty, IDotty, IIndex, IConstraintList, IFindManager, IOptions, IVariableArray, IHook, ITaskVariable<IntegerVariable>, Variable, Serializable, Comparable
public class TaskVariable
- extends MultipleVariables
- implements ITaskVariable<IntegerVariable>, IDotty
- See Also:
- Serialized Form
Fields inherited from interface choco.kernel.model.variables.Variable |
LOGGER |
Fields inherited from interface choco.kernel.model.variables.IHook |
NO_HOOK |
Methods inherited from class choco.kernel.model.variables.AbstractVariable |
_addConstraint, _contains, _removeConstraint, compareTo, getConstraint, getConstraintIterator, getConstraintIterator, getConstraints, getHook, getName, getNbConstraint, getNbConstraint, getVariableType, removeConstraints, resetHook, setHook, setName, throwConstantException, toString |
Methods inherited from class choco.kernel.model.VariableArray |
cancelExtractVariables, doExtractVariables, extractVariables, forceExtractVariables, getNbVars, getVariable, getVariableIterator, getVariables, replaceBy, replaceByConstantAt, setVariables, setVariables |
variableManager
protected String variableManager
TaskVariable
public TaskVariable(String name,
IntegerVariable start,
IntegerVariable end,
IntegerVariable duration)
getVariableManager
public VariableManager<?> getVariableManager()
- Specified by:
getVariableManager
in interface Variable
- Overrides:
getVariableManager
in class MultipleVariables
duration
public final IntegerVariable duration()
- Get the duration of the task
- Specified by:
duration
in interface ITaskVariable<IntegerVariable>
- Returns:
end
public final IntegerVariable end()
- Get the end time of the task
- Specified by:
end
in interface ITaskVariable<IntegerVariable>
- Returns:
start
public final IntegerVariable start()
- Get the start time of the task
- Specified by:
start
in interface ITaskVariable<IntegerVariable>
- Returns:
isEquivalentTo
public boolean isEquivalentTo(MultipleVariables mv)
- Description copied from class:
MultipleVariables
- Check wether to Multiple variables are equivalents
- Overrides:
isEquivalentTo
in class MultipleVariables
- Returns:
pretty
public String pretty()
- Description copied from interface:
IPretty
- pretty printing of the object. This String is not constant and may depend on the context.
- Specified by:
pretty
in interface IPretty
- Overrides:
pretty
in class AbstractVariable
- Returns:
- a readable string representation of the object
toDotty
public String toDotty()
- Specified by:
toDotty
in interface IDotty
findManager
public final void findManager(Properties propertiesFile)
- Description copied from class:
MultipleVariables
- Set the class manager
- Specified by:
findManager
in interface IFindManager
- Overrides:
findManager
in class MultipleVariables
- Parameters:
propertiesFile
- properties
Copyright © 2012. All Rights Reserved.