|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.upb.swtpra05.group03.plugin.ShuttleStatus
ShuttleStatus is a container class for data concerning a shuttle
| Field Summary | |
private int |
currentLoad
number of loaded passengers (value = sum of numberOfPassengers of all orders) |
private float |
margin
the margin negotiation uses to calculate an offer |
private int |
maximumLoad
the maximum number of loaded passengers |
private int |
maximumStretch
the maximum stretch of the shuttle |
private int |
money
all money the shuttle currently have |
private int |
stretchSinceLastRepair
the stretch of the shuttle, counting from zero up to the maximum stretch. |
| Constructor Summary | |
ShuttleStatus(int mon,
int sslr,
int cl)
Constructor for class RemoteShuttleStatusChanged |
|
| Method Summary | |
void |
clear()
This method removes all data and resets them all back to zero. |
int |
getCurrentLoad()
This method returns the current load of the shuttle. |
float |
getMargin()
This method returns the current margin of the shuttle. |
int |
getMaximumLoad()
This method returns the maximum load of the shuttle. |
int |
getMaximumStretch()
This method returns the maximum stretch of the shuttle. |
int |
getMoney()
returns the amount of money the shuttle has |
int |
getStretch()
returns the stretch the shuttle has covered since last repair |
boolean |
getUpdateStatus()
Returns if the ShuttleStatus is already up to date and should be displayed. |
void |
setCurrentLoad(int tcurrentLoad)
This method sets the current load of the shuttle. |
void |
setMargin(float newMargin)
This method sets the margin of the shuttle. |
void |
setMaximumLoad(int tmaximumLoad)
This method sets the maximum load of the shuttle. |
void |
setMaximumStretch(int tmaximumStretch)
This method sets the maximum stretch of the shuttle. |
void |
setMoney(int tmoney)
Sets the amount of money the shuttle has |
void |
setStretch(int newStretchSinceLastRepair)
Sets the stretch the shuttle has covered since last repair |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private int stretchSinceLastRepair
private int money
private int currentLoad
private int maximumStretch
private int maximumLoad
private float margin
| Constructor Detail |
public ShuttleStatus(int mon,
int sslr,
int cl)
mon - moneysslr - stretchcl - number of loaded passengers| Method Detail |
public int getStretch()
public int getMoney()
public int getCurrentLoad()
public int getMaximumStretch()
public int getMaximumLoad()
public float getMargin()
public void setStretch(int newStretchSinceLastRepair)
newStretchSinceLastRepair - public void setMoney(int tmoney)
tmoney - Moneypublic void setCurrentLoad(int tcurrentLoad)
tcurrentLoad - Current loadpublic void setMaximumStretch(int tmaximumStretch)
tmaximumStretch - maximum stretchpublic void setMaximumLoad(int tmaximumLoad)
tmaximumLoad - maximum loadpublic void setMargin(float newMargin)
newMargin - The new margin valuepublic void clear()
public boolean getUpdateStatus()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||