|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object be.ac.ua.broker.input.tasks.Task
public class Task
This class represents a task.
Constructor Summary | |
---|---|
Task(TaskSpecification spec,
Workload wl)
Constructor for Task |
Method Summary | |
---|---|
TaskSpecification |
getTaskSpecification()
|
Workload |
getWorkload()
|
boolean |
hasRegionAssigned()
|
void |
setRegion(java.lang.String region)
Assign the task to a certain geographical region |
void |
setStartDate(java.util.Date startDate)
Set the start time of the scheduling period for the task |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Task(TaskSpecification spec, Workload wl)
spec
- the specification of the taskwl
- the workload the task consists ofMethod Detail |
---|
public Workload getWorkload()
public TaskSpecification getTaskSpecification()
public boolean hasRegionAssigned()
public void setRegion(java.lang.String region) throws InvalidInputException
region
- the geographical regions to assign the task to
InvalidInputException
- exception thrown when the provided region is not supported by
the broker according to the InputVerifierpublic void setStartDate(java.util.Date startDate)
startDate
- the start time of the scheduling period
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |