choco.kernel.solver.variables.scheduling
Class HTask

java.lang.Object
  extended by choco.kernel.solver.variables.scheduling.AbstractTask
      extended by choco.kernel.solver.variables.scheduling.HTask
All Implemented Interfaces:
IPretty, IDotty, ITask

public final class HTask
extends AbstractTask


Constructor Summary
HTask(ITask task, IntDomainVar usage, IStateInt estH, IStateInt lctH)
           
 
Method Summary
 int getECT()
          Gets the Earliest Completion Time (ECT).
 int getEST()
          Gets the Earliest Starting Time (EST).
 int getID()
          Gets the ID of the task.
 int getLCT()
          Gets the Latest Completion Time (LCT).
 int getLST()
          Gets the Latest Starting Time (LST).
 int getMaxDuration()
          Gets the maximum duration.
 int getMinDuration()
          Gets the minimum duration.
 String getName()
          Gets the name of the task.
 boolean hasConstantDuration()
          Checks for if the duration is constant.
 boolean isPreemptionAllowed()
          Checks whether the preemption is allowed.
 boolean isScheduled()
          Checks if the task is scheduled.
 
Methods inherited from class choco.kernel.solver.variables.scheduling.AbstractTask
getTimePeriodList, isInterrupted, isPartiallyScheduled, pretty, toDotty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HTask

public HTask(ITask task,
             IntDomainVar usage,
             IStateInt estH,
             IStateInt lctH)
Method Detail

isPreemptionAllowed

public final boolean isPreemptionAllowed()
Description copied from interface: ITask
Checks whether the preemption is allowed.

Returns:
true, if preemption is allowed

getECT

public int getECT()
Description copied from interface: ITask
Gets the Earliest Completion Time (ECT).

Specified by:
getECT in interface ITask
Overrides:
getECT in class AbstractTask
Returns:
the ECT

getEST

public int getEST()
Description copied from interface: ITask
Gets the Earliest Starting Time (EST).

Returns:
the EST

getID

public int getID()
Description copied from interface: ITask
Gets the ID of the task.

Returns:
the iD

getLCT

public int getLCT()
Description copied from interface: ITask
Gets the Latest Completion Time (LCT).

Returns:
the LCT

getLST

public int getLST()
Description copied from interface: ITask
Gets the Latest Starting Time (LST).

Specified by:
getLST in interface ITask
Overrides:
getLST in class AbstractTask
Returns:
the LST

getMaxDuration

public int getMaxDuration()
Description copied from interface: ITask
Gets the maximum duration.

Returns:
the max duration

getMinDuration

public int getMinDuration()
Description copied from interface: ITask
Gets the minimum duration.

Returns:
the minimum duration the task

getName

public String getName()
Description copied from interface: ITask
Gets the name of the task.

Specified by:
getName in interface ITask
Overrides:
getName in class AbstractTask
Returns:
the name

hasConstantDuration

public boolean hasConstantDuration()
Description copied from interface: ITask
Checks for if the duration is constant.

Specified by:
hasConstantDuration in interface ITask
Overrides:
hasConstantDuration in class AbstractTask
Returns:
true, if the duration is constant.

isScheduled

public boolean isScheduled()
Description copied from interface: ITask
Checks if the task is scheduled. The task is scheduled if its starting time and its duration are fixed.

Specified by:
isScheduled in interface ITask
Overrides:
isScheduled in class AbstractTask
Returns:
true, if the tasks is scheduled


Copyright © 2012. All Rights Reserved.