|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.upb.swtpra05.group03.companycontrol.StockInformation
Storage Class which stores Stock Informations for a Station
| Field Summary | |
private int |
buysFor
the price the station buys a shuttle for |
private int |
currentNumberOfOrders
the current number of orders with this station as start station |
private int |
sellsFor
the price the station sells its shuttles for |
private int |
stationID
the ID of the station |
private java.lang.String |
stationName
the Name linked to the ID |
private int |
stock
the amount of shuttles available at the station |
private int |
totalNumberOfOrders
the total number of orders with this station as start station |
| Constructor Summary | |
StockInformation()
Constructor of StockInformation |
|
StockInformation(int stationID,
int stock,
int buysFor,
int sellsFor)
Overloaded constructor of StockInformation |
|
| Method Summary | |
int |
getBuysFor()
accessor method for getting the price to buy for |
int |
getCurrentNumberOfOrders()
|
int |
getSellsFor()
accessor method for getting the price to sell for |
int |
getStationID()
accessor method for getting the stationID |
java.lang.String |
getStationName()
accessor method for getting the stationName |
int |
getStock()
accessor method for getting the stock amount |
int |
getTotalNumberOfOrders()
|
void |
setBuysFor(int buysFor)
accessor method for setting the price to buy for |
void |
setCurrentNumberOfOrders(int currentNumberOfOrders)
|
void |
setSellsFor(int sellsFor)
accessor method for setting the price to sell for |
void |
setStationID(int stationID)
accessor method for setting the stationID |
void |
setStationName(java.lang.String stationName)
accessor method for setting the stationName |
void |
setStock(int stock)
accessor method for setting the stock amount |
void |
setTotalNumberOfOrders(int totalNumberOfOrders)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private int stationID
private java.lang.String stationName
private int stock
private int sellsFor
private int buysFor
private int totalNumberOfOrders
private int currentNumberOfOrders
| Constructor Detail |
public StockInformation()
public StockInformation(int stationID,
int stock,
int buysFor,
int sellsFor)
stationID - the station IDstock - the amount of offered shuttlessellsFor - the price to sell a shuttle forbuysFor - the price to buy a shuttle for| Method Detail |
public void setStationID(int stationID)
stationID - see abovepublic void setStationName(java.lang.String stationName)
stationName - see abovepublic void setStock(int stock)
stock - see abovepublic void setSellsFor(int sellsFor)
sellsFor - see abovepublic void setBuysFor(int buysFor)
buysFor - see abovepublic void setTotalNumberOfOrders(int totalNumberOfOrders)
totalNumberOfOrders - The numberOfOrders to set.public void setCurrentNumberOfOrders(int currentNumberOfOrders)
currentNumberOfOrders - The numberOfOrders to set.public int getStationID()
public java.lang.String getStationName()
public int getStock()
public int getSellsFor()
public int getBuysFor()
public int getTotalNumberOfOrders()
public int getCurrentNumberOfOrders()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||