|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--fr.jussieu.gla.wasa.samples.party.Boat
Component of the Progressive Party problem representing a boat.
| Field Summary | |
protected int |
capacity
|
protected int |
crew
|
protected boolean |
host
|
protected int |
rank
|
| Constructor Summary | |
Boat()
|
|
| Method Summary | |
int |
getCapacity()
Returns the capacity of the boat, with the crew. |
int |
getCrew()
Returns the crew number. |
int |
getRank()
Returns the boat rank. |
int |
getSpareCapacity()
Returns the real capacity of the boat, without the crew. |
boolean |
isHost()
Returns true if the boat is an host boat. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int rank
protected int crew
protected int capacity
protected boolean host
| Constructor Detail |
public Boat()
| Method Detail |
public int getCrew()
public boolean isHost()
public int getSpareCapacity()
public int getCapacity()
public int getRank()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||