choco.kernel.solver.variables.scheduling
Interface ITask

All Superinterfaces:
IDotty, IPretty
All Known Implementing Classes:
AbstractTask, HTask, TaskVar

public interface ITask
extends IDotty, IPretty

The Interface ITask represent a scheduling entity : a task, activity, job.

Author:
Arnaud Malapert

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.
 ITimePeriodList getTimePeriodList()
          Gets the list of time periods in which the task is executed
 boolean hasConstantDuration()
          Checks for if the duration is constant.
 boolean isInterrupted()
          Checks if the task is interrupted (preempted).
 boolean isPartiallyScheduled()
          Checks whether a preemptive task has been partially scheduled.
 boolean isPreemptionAllowed()
          Checks whether the preemption is allowed.
 boolean isScheduled()
          Checks if the task is scheduled.
 
Methods inherited from interface choco.kernel.common.IDotty
toDotty
 
Methods inherited from interface choco.IPretty
pretty
 

Method Detail

getID

int getID()
Gets the ID of the task.

Returns:
the iD

getName

String getName()
Gets the name of the task.

Returns:
the name

getEST

int getEST()
Gets the Earliest Starting Time (EST).

Returns:
the EST

getECT

int getECT()
Gets the Earliest Completion Time (ECT).

Returns:
the ECT

getLST

int getLST()
Gets the Latest Starting Time (LST).

Returns:
the LST

getLCT

int getLCT()
Gets the Latest Completion Time (LCT).

Returns:
the LCT

getMinDuration

int getMinDuration()
Gets the minimum duration.

Returns:
the minimum duration the task

getMaxDuration

int getMaxDuration()
Gets the maximum duration.

Returns:
the max duration

hasConstantDuration

boolean hasConstantDuration()
Checks for if the duration is constant.

Returns:
true, if the duration is constant.

isScheduled

boolean isScheduled()
Checks if the task is scheduled. The task is scheduled if its starting time and its duration are fixed.

Returns:
true, if the tasks is scheduled

isPreemptionAllowed

boolean isPreemptionAllowed()
Checks whether the preemption is allowed.

Returns:
true, if preemption is allowed

isPartiallyScheduled

boolean isPartiallyScheduled()
Checks whether a preemptive task has been partially scheduled.

Returns:
true, if a preemptive task has been partially scheduled.

isInterrupted

boolean isInterrupted()
Checks if the task is interrupted (preempted).

Returns:
true, if the tasks is interrupted

getTimePeriodList

ITimePeriodList getTimePeriodList()
Gets the list of time periods in which the task is executed

Returns:
a list of time period.


Copyright © 2012. All Rights Reserved.