|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectberth.Bid
Class for incapsulate the attributes related to a Bid Creates a Bid with related attributes The Bid is made when a Berth agent check its allocation possibilities for a given Ship
Berth, Ship
,
Serialized FormField Summary | |
int |
index
|
java.util.ArrayList |
shipToBeMoved
|
Constructor Summary | |
Bid(Ship ship,
int calculatedCost,
TimePoint suggestedArrivalTime,
TimePoint suggestedDepartureTime,
int index,
java.util.ArrayList shipToBeMoved)
Constructor for Bid Set the attributes from the parameters that are input to the constructor |
Method Summary | |
int |
getCalculatedCost()
Get-method for the calculatedCost attribute |
int |
getIndex()
Get-method for the index attribute |
Ship |
getShip()
Get-method for the Ship attribute |
java.util.ArrayList |
getShipToMove()
Get-method for the shipToBeMoved list |
TimePoint |
getSuggestedArrivalTime()
Get-method for the suggestedArrivalTime attribute |
TimePoint |
getSuggestedDepartureTime()
Get-method for the suggestedDepartureTime attribute |
void |
updateShipTime()
Method that update time variables in a ship This method set the delegatedArrivalTime and suggestedArrivalTime on the Ship in this Bid, to be equal to the time values in this Bid |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.util.ArrayList shipToBeMoved
public int index
Constructor Detail |
public Bid(Ship ship, int calculatedCost, TimePoint suggestedArrivalTime, TimePoint suggestedDepartureTime, int index, java.util.ArrayList shipToBeMoved)
Method Detail |
public Ship getShip()
public int getCalculatedCost()
public TimePoint getSuggestedArrivalTime()
public TimePoint getSuggestedDepartureTime()
public int getIndex()
public java.util.ArrayList getShipToMove()
public void updateShipTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |