|
|||||||||
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.Schedule
Holds the current assignations of boats.
Constructor Summary | |
Schedule(Fleet fleet,
int periodCount)
|
Method Summary | |
Boat[] |
getAllBoats()
Returns a reference to the Boat array used internally. |
int |
getBoatCount()
Returns the number of boats. |
int |
getGuestCount()
Returns the number of guest boats. |
Boat[] |
getGuests()
Returns an array of the guests. |
Boat |
getHost(Boat guest,
int period)
Returns the host assigned to the guest at the period period. |
Boat |
getHost(int index)
Returns the host of rank index. |
int |
getHostCount()
Returns the number of host boats. |
Boat[] |
getHosts()
Returns an array of the hosts. |
int |
getPeriodCount()
Return the number of period. |
void |
print(java.io.PrintStream out)
Display informations about the schedule in a PrintStream. |
void |
setHost(Boat host,
Boat guest,
int period)
Assigns the guest boat at the period period to the host host. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Schedule(Fleet fleet, int periodCount)
Method Detail |
public void setHost(Boat host, Boat guest, int period)
public Boat getHost(Boat guest, int period)
public int getPeriodCount()
public Boat[] getAllBoats()
public int getBoatCount()
public int getGuestCount()
public int getHostCount()
public Boat getHost(int index)
public Boat[] getHosts()
public Boat[] getGuests()
public void print(java.io.PrintStream out)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |