|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface of a taskplan.
| Method Summary | |
void |
activateOrder(de.upb.swtpra.kernel.id.OrderID id)
Activates all tasks which belong to the order id |
void |
addAsFirstTask(java.lang.Object o)
Adds a feature to the First attribute of the TaskPlan object |
void |
addAsLastTask(java.lang.Object o)
Appends the given TaskPlan to the end of this list. |
void |
addTask(int index,
java.lang.Object o)
Adds a task or taskplan to this taskplan. |
void |
addTaskBeforeLastMove(Task task)
This method will add the given task as the last task at the corresponding station if there is any. |
boolean |
containsOrderId(de.upb.swtpra.kernel.id.OrderID id)
Returns if taskplan contains order. |
boolean |
containsStationId(int stationId)
Returns if taskplan contains station. |
java.util.LinkedList |
getAllConnectionOkTasks()
Gets the allConnectionOkTasks attribute of the TaskPlan object |
Task |
getFirstTask()
Returns the first task. |
int |
getHighestCapacity(int baseLoaded)
This method will loop through all of its tasks and calculate the maximum load at any time. |
int |
getLastStationOnRoute()
|
int |
getLastTaskIndexOf(int stationId)
This method will retrieve the position of the last Task in the TaskPlan which effects the stationId, e.g. at this point in the task, the shuttle will be at this station. |
java.util.SortedMap |
getOrderHandlingInfos()
This method calculates the times until the shuttle will unload the orders and the number of connections between loading and unloading, if loading isn't in the taskplan (it's already executed) then the connections from beginning to unloading. |
java.util.Vector |
getStringVector()
|
Task |
getTask(int i)
Returns the task at index |
TaskPlanInterface |
getUseableTaskPlan(int curTime,
int useTime)
Returns a useable taskplan which contains all tasks after useTime. |
int |
indexOf(Task task)
Returns the index of the task |
boolean |
isSuccessorOf(int start,
int successor)
Returns if station with successorId is a successor of station with startId. |
java.util.ListIterator |
listIterator()
Returns a list iterator if the taskplan. |
void |
remove(int index)
Removes the task at index. |
java.lang.Object |
removeFirstTask()
Returns the first task and removes it. |
java.util.LinkedList |
removeOrder(de.upb.swtpra.kernel.id.OrderID id)
Removes all tasks which belong to the order id |
int |
size()
Returns the count of tasks in the taskplan. |
java.lang.String |
toString()
Returns a string representation. |
| Method Detail |
public void addTask(int index,
java.lang.Object o)
index - index to add ato - task or taskplanpublic void remove(int index)
index - index of task to removepublic int getHighestCapacity(int baseLoaded)
baseLoaded - The current load
public java.util.LinkedList getAllConnectionOkTasks()
public void addTaskBeforeLastMove(Task task)
task - The new Task to add to the taskplanpublic int getLastTaskIndexOf(int stationId)
stationId - the id of the station whose last task will be returned
public boolean isSuccessorOf(int start,
int successor)
start - Description of the Parametersuccessor - Description of the Parameter
public int getLastStationOnRoute()
public java.lang.String toString()
public void addAsFirstTask(java.lang.Object o)
o - The feature to be added to the First attributepublic void activateOrder(de.upb.swtpra.kernel.id.OrderID id)
id - The order id to activate tasks forpublic java.util.LinkedList removeOrder(de.upb.swtpra.kernel.id.OrderID id)
id - The order if to remove task for
public void addAsLastTask(java.lang.Object o)
o - The feature to be added to the Last attributepublic int size()
public Task getFirstTask()
public java.lang.Object removeFirstTask()
public java.util.SortedMap getOrderHandlingInfos()
OrderIDs with their
OrderHandlingInfopublic Task getTask(int i)
i - index of the task to return
public int indexOf(Task task)
task - task which index to return
public java.util.ListIterator listIterator()
public java.util.Vector getStringVector()
public boolean containsStationId(int stationId)
stationId - station id
public boolean containsOrderId(de.upb.swtpra.kernel.id.OrderID id)
id - order id
public TaskPlanInterface getUseableTaskPlan(int curTime,
int useTime)
curTime - current timeuseTime - useable time, time from which get all tasks
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||