fr.jussieu.gla.wasa.samples.party
Class Fleet

java.lang.Object
  |
  +--fr.jussieu.gla.wasa.samples.party.Fleet
Direct Known Subclasses:
DefaultFleet

public class Fleet
extends java.lang.Object

Holds a collection of Fleet.MyBoats.

Version:
$Revision: 1.3 $ $Date: 2002/04/16 16:45:54 $
Author:
Laurent Caillette

Inner Class Summary
protected static class Fleet.MyBoat
          Extends a Boat for the needs of the party.
 
Field Summary
protected  java.util.ArrayList boats
           
 
Constructor Summary
Fleet()
           
 
Method Summary
 Boat createBoat(int capacity, int crew)
           
 Boat createBoat(int capacity, int crew, boolean host)
           
 Boat[] getBoats()
          Returns a Boat array with no host boat first.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

boats

protected final java.util.ArrayList boats
Constructor Detail

Fleet

public Fleet()
Method Detail

createBoat

public Boat createBoat(int capacity,
                       int crew,
                       boolean host)

createBoat

public Boat createBoat(int capacity,
                       int crew)

getBoats

public Boat[] getBoats()
Returns a Boat array with no host boat first.