|
||||||||||
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,
Bid bid)
Constructor that set the name of a Berth and Bid from the Berth |
Method Summary | |
java.lang.String |
getBerthName()
Get method for the Berths name |
Bid |
getBid()
Get method for the Bid in this alternative The Bid is sendt from the Berth with relevant parameters after checking allocation possibilities |
int |
getCost()
Get method for the calculatedCost The cost is calculated when a Berth checks for allocation on a Ship, and come up with a Bid. |
Ship |
getShip()
Get method for the Ship variable |
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, 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 Ship 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 |