|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.upb.swtpra05.group03.shuttle.Task
Task of the shuttle to execute.
| Field Summary | |
protected boolean |
active
|
protected int |
costs
|
protected int |
duration
|
protected boolean |
executed
|
protected de.upb.swtpra.kernel.id.OrderID |
orderId
|
protected int |
stationId
|
| Constructor Summary | |
Task(int costs,
int duration,
de.upb.swtpra.kernel.id.OrderID orderId,
int stationId)
|
|
| Method Summary | |
abstract de.upb.swtpra.kernel.message.Message |
execute(de.upb.swtpra.kernel.id.ID sender,
de.upb.swtpra.kernel.id.ID receiver)
Description of the Method |
int |
getCosts()
Gets the cost attribute of the Task object |
int |
getDuration()
Gets the duration attribute of the Task object |
de.upb.swtpra.kernel.id.OrderID |
getOrderId()
Gets the station attribute of the Task object |
int |
getStationId()
Gets the stationId attribute of the Task object |
boolean |
isActive()
Gets the active attribute of the Task object |
boolean |
isExecuted()
|
void |
setActive(boolean active)
Sets the active attribute of the Task object |
void |
setCosts(int costs)
Sets the cost attribute of the Task object |
void |
setDuration(int duration)
Sets the duration attribute of the Task object |
void |
setExecuted(boolean b)
|
void |
setOrderId(de.upb.swtpra.kernel.id.OrderID orderId)
Sets the station attribute of the Task object |
java.lang.String |
toString()
Description of the Method |
java.util.Vector |
toStringVector()
Description of the Method |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int costs
protected int duration
protected boolean active
protected boolean executed
protected de.upb.swtpra.kernel.id.OrderID orderId
protected int stationId
| Constructor Detail |
public Task(int costs,
int duration,
de.upb.swtpra.kernel.id.OrderID orderId,
int stationId)
duration - orderId - Description of the ParameterstationId - Description of the Parametercosts - Description of the Parameter| Method Detail |
public int getStationId()
public int getCosts()
public void setCosts(int costs)
costs - The new costs valuepublic int getDuration()
public void setDuration(int duration)
duration - The new duration valuepublic de.upb.swtpra.kernel.id.OrderID getOrderId()
public void setOrderId(de.upb.swtpra.kernel.id.OrderID orderId)
orderId - The new orderId valuepublic boolean isActive()
public void setActive(boolean active)
active - The new active value
public abstract de.upb.swtpra.kernel.message.Message execute(de.upb.swtpra.kernel.id.ID sender,
de.upb.swtpra.kernel.id.ID receiver)
sender - Description of the Parameterreceiver - Description of the Parameter
public java.lang.String toString()
public java.util.Vector toStringVector()
public boolean isExecuted()
public void setExecuted(boolean b)
b -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||