org.mars_sim.msp.simulation.vehicle
Interface Crewable

All Known Implementing Classes:
LightUtilityVehicle, Rover

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

CREW_CAPACITY_EVENT

static final java.lang.String CREW_CAPACITY_EVENT
See Also:
Constant Field Values
Method Detail

getCrewCapacity

int getCrewCapacity()
Gets the number of crewmembers the vehicle can carry.

Returns:
capacity

getCrewNum

int getCrewNum()
Gets the current number of crewmembers.

Returns:
number of crewmembers

getCrew

java.util.Collection<Person> getCrew()
Gets a collection of the crewmembers.

Returns:
crewmembers as Collection

isCrewmember

boolean isCrewmember(Person person)
Checks if person is a crewmember.

Parameters:
person - the person to check
Returns:
true if person is a crewmember