|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjettyplanner.BerthAlternative
Class that represent an alternative allocation of a Ship to a Berth This class contains get methods for the variables
Constructor Summary | |
BerthAlternative(java.lang.String berthName,
int berthId,
Bid bid)
Constructor that set the name of the Berth and Bid from the Berth |
Method Summary | |
int |
getBerthId()
Get method for the Berths identification number |
java.lang.String |
getBerthName()
Get method for the Berths name |
Bid |
getBid()
Get method for the Bid in this alternative The cost is calculated when a berth checks for allucation on a ship, and come up with a bid. |
int |
getCost()
Get method for the calculatedCost The cost is calculated when a berth checks for allucation on a ship, and come up with a bid. |
java.lang.String |
getShip()
Get method for the ship |
java.lang.String |
toString()
Method that makes a string representation of this object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BerthAlternative(java.lang.String berthName, int berthId, Bid bid)
berthName
- name of the berth contained in this alternativebid
- the bid for the berth on a shipBid
Method Detail |
public java.lang.String getBerthName()
String
public int getBerthId()
public java.lang.String getShip()
Ship
public int getCost()
public Bid getBid()
Bid
public java.lang.String toString()
String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |