org.mars_sim.msp.core.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 String CREW_CAPACITY_EVENT
           
 
Method Summary
 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 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

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


Copyright © 2009-2013. All Rights Reserved.