|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Crewable
The Crewable interface represents a vehicle that is capable of having a crew of people.
Field Summary | |
---|---|
static java.lang.String |
CREW_CAPACITY_EVENT
|
Method Summary | |
---|---|
java.util.Collection<Person> |
getCrew()
Gets a collection of the crewmembers. |
int |
getCrewCapacity()
Gets the number of crewmembers the vehicle can carry. |
int |
getCrewNum()
Gets the current number of crewmembers. |
boolean |
isCrewmember(Person person)
Checks if person is a crewmember. |
Field Detail |
---|
static final java.lang.String CREW_CAPACITY_EVENT
Method Detail |
---|
int getCrewCapacity()
int getCrewNum()
java.util.Collection<Person> getCrew()
boolean isCrewmember(Person person)
person
- the person to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |