berth
Class Bid

java.lang.Object
  extended byberth.Bid
All Implemented Interfaces:
java.io.Serializable

public class Bid
extends java.lang.Object
implements java.io.Serializable

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

See Also:
Berth, Ship, Serialized Form

Field 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

shipToBeMoved

public java.util.ArrayList shipToBeMoved

index

public int index
Constructor Detail

Bid

public 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 Detail

getShip

public Ship getShip()
Get-method for the Ship attribute

Returns:
Ship

getCalculatedCost

public int getCalculatedCost()
Get-method for the calculatedCost attribute

Returns:
int

getSuggestedArrivalTime

public TimePoint getSuggestedArrivalTime()
Get-method for the suggestedArrivalTime attribute

Returns:
TimePoint

getSuggestedDepartureTime

public TimePoint getSuggestedDepartureTime()
Get-method for the suggestedDepartureTime attribute

Returns:
TimePoint

getIndex

public int getIndex()
Get-method for the index attribute

Returns:
int

getShipToMove

public java.util.ArrayList getShipToMove()
Get-method for the shipToBeMoved list

Returns:
ArrayList

updateShipTime

public 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