|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jfree.data.gantt.Task be.ac.ua.broker.input.tasks.SubTask
public class SubTask
This class represents a subtask which is used to represent a single task hour of a task, it is the smallest unit used during the scheduling phase of our broker process. During the allocation phase an actual time frame and corresponding price is associated with the sub task.
Constructor Summary | |
---|---|
SubTask(int hour,
TaskSpecification spec)
Constructor for SubTask |
|
SubTask(java.lang.String desc)
Constructor for SubTask |
|
SubTask(SubTask subTask,
java.util.Date time,
java.util.Date time2)
Constructor for SubTask |
Method Summary | |
---|---|
java.util.Date |
getEndDate()
|
Price |
getPrice()
|
TaskSpecification |
getSpecification()
|
java.util.Date |
getStartDate()
|
int |
getTaskHour()
|
boolean |
isDummy()
|
boolean |
isSpotEnabled()
|
void |
setPrice(Price price)
Setter for the price associated with the subTask |
void |
setTimePeriod(java.util.Date startDate,
java.util.Date endDate)
Tag the subTask with the desired time period |
Methods inherited from class org.jfree.data.gantt.Task |
---|
addSubtask, clone, equals, getDescription, getDuration, getPercentComplete, getSubtask, getSubtaskCount, removeSubtask, setDescription, setDuration, setPercentComplete, setPercentComplete |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubTask(int hour, TaskSpecification spec)
hour
- the hour of the original task this subtask corresponds to.spec
- the specification of the original task this sub task is a part
ofpublic SubTask(java.lang.String desc)
desc
- only a name is given to the subTask, this possibility is
provided to bes able to generate dummy subTaskspublic SubTask(SubTask subTask, java.util.Date time, java.util.Date time2)
subTask
- the subTask that is being tagged with a start and end timetime
- the start time of the subTasktime2
- the end time of the subTaskMethod Detail |
---|
public int getTaskHour()
public TaskSpecification getSpecification()
public void setPrice(Price price)
price
- the price associated with the subTaskpublic Price getPrice()
public boolean isDummy()
public boolean isSpotEnabled()
public java.util.Date getStartDate()
public java.util.Date getEndDate()
public void setTimePeriod(java.util.Date startDate, java.util.Date endDate)
startDate
- the start time of the subTaskendDate
- the end timse of the subTask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |