|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgui.Ship
Ship-object A ship-object is instanciated with it's static variables. A ship-object has several get- and set methods to take care of dynamic variables.
Constructor Summary | |
Ship(java.lang.String name,
int length,
int width,
double draft,
int capacity,
int numberOfHoles)
The constructor instanciate the agent |
Method Summary | |
TimePoint |
getArrivalTime()
The method returns the dynamic variable arrivalTime |
int |
getCapacity()
The method returns the capacity of the ship |
TimePoint |
getDelegatedArrivalTime()
The method returns the dynamic variable delegatedArrivalTime |
TimePoint |
getDepartureTime()
The method returns the dynamic variable departureTime |
double |
getDraft()
The method returns the draft of the ship |
int |
getLength()
The method returns the length of the ship |
java.lang.String |
getName()
The method returns the name of the agent |
int |
getNumberOfHoles()
The method returns the ship's amount of holes |
java.lang.String |
getProduct()
The method returns the ship's product |
int |
getWidth()
The method returns the width of the ship |
boolean |
isKnockedOut(java.lang.String berthName)
The method checks if the Ship has been knocked out from a Berth once before. |
void |
knockOut(java.lang.String berthName)
The method registrate that the ship has been knocked out from a berth |
void |
newShip()
The method reset all dynamic variables to default |
void |
setArrivalTime(TimePoint arrivalTime)
The method sets the dynamic variable arrivalTime |
void |
setDelegatedArrivalTime(TimePoint delegatedArrivalTime)
The method sets the dynamic variable delegatedArrivalTime |
void |
setDepartureTime(TimePoint departureTime)
The method sets the dynamic variable departureTime |
void |
setProduct(java.lang.String product)
The method sets the dynamic variable product |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Ship(java.lang.String name, int length, int width, double draft, int capacity, int numberOfHoles)
Method Detail |
public java.lang.String getName()
public int getLength()
public int getWidth()
public double getDraft()
public int getCapacity()
public int getNumberOfHoles()
public java.lang.String getProduct()
public void setProduct(java.lang.String product)
public void setArrivalTime(TimePoint arrivalTime)
public TimePoint getArrivalTime()
public void setDelegatedArrivalTime(TimePoint delegatedArrivalTime)
public TimePoint getDelegatedArrivalTime()
public void setDepartureTime(TimePoint departureTime)
public TimePoint getDepartureTime()
public boolean isKnockedOut(java.lang.String berthName)
public void newShip()
public void knockOut(java.lang.String berthName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |