choco.kernel.model.variables.scheduling
Class TaskVariable

java.lang.Object
  extended by choco.kernel.model.VariableArray
      extended by choco.kernel.model.ModelObject
          extended by choco.kernel.model.variables.AbstractVariable
              extended by choco.kernel.model.variables.MultipleVariables
                  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class choco.kernel.model.VariableArray
VariableArray.VConstraintsDataStructure
 
Field Summary
protected  String variableManager
           
 
Fields inherited from class choco.kernel.model.variables.MultipleVariables
enableStorage
 
Fields inherited from class choco.kernel.model.variables.AbstractVariable
name, type
 
Fields inherited from class choco.kernel.model.VariableArray
NO_CONSTRAINTS
 
Fields inherited from interface choco.kernel.model.variables.Variable
LOGGER
 
Fields inherited from interface choco.kernel.model.variables.IHook
NO_HOOK
 
Constructor Summary
TaskVariable(String name, IntegerVariable start, IntegerVariable end, IntegerVariable duration)
           
 
Method Summary
 IntegerVariable duration()
          Get the duration of the task
 IntegerVariable end()
          Get the end time of the task
 void findManager(Properties propertiesFile)
          Set the class manager
 VariableManager<?> getVariableManager()
           
 boolean isEquivalentTo(MultipleVariables mv)
          Check wether to Multiple variables are equivalents
 String pretty()
          pretty printing of the object.
 IntegerVariable start()
          Get the start time of the task
 String toDotty()
           
 
Methods inherited from class choco.kernel.model.variables.MultipleVariables
getConstraintManager, getExpressionManager, isStored
 
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.ModelObject
addOption, addOptions, addOptions, addOptions, addOptions, containsOption, getIndex, getOptions, hashCode
 
Methods inherited from class choco.kernel.model.VariableArray
cancelExtractVariables, doExtractVariables, extractVariables, forceExtractVariables, getNbVars, getVariable, getVariableIterator, getVariables, replaceBy, replaceByConstantAt, setVariables, setVariables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface choco.kernel.model.IVariableArray
extractVariables, getNbVars, getVariable, getVariableIterator, getVariables, replaceBy
 
Methods inherited from interface choco.kernel.common.IIndex
getIndex
 
Methods inherited from interface choco.kernel.model.IOptions
addOption, addOptions, addOptions, addOptions, addOptions, containsOption, getOptions
 

Field Detail

variableManager

protected String variableManager
Constructor Detail

TaskVariable

public TaskVariable(String name,
                    IntegerVariable start,
                    IntegerVariable end,
                    IntegerVariable duration)
Method Detail

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.