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(java.lang.String shipName, int calculatedCost, TimePoint suggestedArrivalTime, TimePoint suggestedDeparture, 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
 java.lang.String getShip()
          Get-method for the shipName 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
 
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(java.lang.String shipName,
           int calculatedCost,
           TimePoint suggestedArrivalTime,
           TimePoint suggestedDeparture,
           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 java.lang.String getShip()
Get-method for the shipName attribute

Returns:
String

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