|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.upb.swtpra05.group03.shuttle.ShuttleData
The shuttle data.
| Field Summary | |
private int |
currentStationId
The station id where the shuttle is currently on |
private int |
currentStretch
The current stretch the shuttle moved |
private int |
loadTime
The time needed for loading the shuttle |
private int |
maxAllowedStretchLimit
The maximum allowed stretch the shuttle can drive |
private int |
maxCapacity
The maximum capacity of the shuttle |
private int |
parkingFeeAmount
the parking fee if parking at a station |
private int |
parkingFeeFrequency
The frequency how often the parkingFeeAmount has to be payed |
private int |
postalChargingAmount
the costs for a message |
private int |
previousStationId
The station id where the shuttle was previously |
private int |
repairCosts
The amount of money payed for any repair |
private int |
repairTime
The time needed for repairing the shuttle |
private int |
unloadTime
The time needed for unloading the shuttle |
| Constructor Summary | |
ShuttleData()
|
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
|
private void |
gameConstants(de.upb.swtpra.kernel.message.GameConstantsMessage msg)
Sets the game constants. |
int |
getCurrentStationId()
|
int |
getCurrentStretch()
|
int |
getLoadTime()
|
int |
getMaxAllowedStretchLimit()
|
int |
getMaxCapacity()
|
int |
getParkingFeeAmount()
|
int |
getParkingFeeFrequency()
|
int |
getPostalChargingAmount()
|
int |
getPreviousStationId()
|
int |
getRepairCosts()
|
int |
getRepairTime()
|
int |
getUnloadTime()
|
void |
init(ModuleContainerInterface manager)
Initializes this module. |
void |
newMessageReceived(de.upb.swtpra.kernel.message.Message msg)
React on the received message of the shuttle or not. |
void |
setCurrentStationId(int i)
|
void |
setCurrentStretch(int i)
|
void |
setPreviousStationId(int i)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private int maxAllowedStretchLimit
private int unloadTime
private int loadTime
private int repairTime
private int repairCosts
private int maxCapacity
private int currentStretch
private int currentStationId
private int previousStationId
private int parkingFeeFrequency
private int parkingFeeAmount
private int postalChargingAmount
| Constructor Detail |
public ShuttleData()
| Method Detail |
public void init(ModuleContainerInterface manager)
Module
init in interface Modulemanager - The module manager which contain all modulespublic void newMessageReceived(de.upb.swtpra.kernel.message.Message msg)
ShuttleModule
newMessageReceived in interface ShuttleModulemsg - The received message of the shuttleprivate void gameConstants(de.upb.swtpra.kernel.message.GameConstantsMessage msg)
msg - The GameConstantsMessagepublic int getCurrentStretch()
getCurrentStretch in interface ShuttleDataInterfacepublic int getLoadTime()
getLoadTime in interface ShuttleDataInterfacepublic int getMaxAllowedStretchLimit()
getMaxAllowedStretchLimit in interface ShuttleDataInterfacepublic int getMaxCapacity()
getMaxCapacity in interface ShuttleDataInterfacepublic int getRepairCosts()
getRepairCosts in interface ShuttleDataInterfacepublic int getRepairTime()
getRepairTime in interface ShuttleDataInterfacepublic int getUnloadTime()
getUnloadTime in interface ShuttleDataInterfacepublic void setCurrentStretch(int i)
setCurrentStretch in interface ShuttleDataInterfacei - public int getCurrentStationId()
getCurrentStationId in interface ShuttleDataInterfacepublic int getPreviousStationId()
getPreviousStationId in interface ShuttleDataInterfacepublic void setCurrentStationId(int i)
setCurrentStationId in interface ShuttleDataInterfacei - public void setPreviousStationId(int i)
setPreviousStationId in interface ShuttleDataInterfacei - public int getParkingFeeAmount()
getParkingFeeAmount in interface ShuttleDataInterfacepublic int getParkingFeeFrequency()
getParkingFeeFrequency in interface ShuttleDataInterfacepublic int getPostalChargingAmount()
getPostalChargingAmount in interface ShuttleDataInterfacepublic boolean equals(java.lang.Object obj)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||