org.mars_sim.msp.simulation.person.ai.mission
Class CollectRegolith

java.lang.Object
  extended by org.mars_sim.msp.simulation.person.ai.mission.Mission
      extended by org.mars_sim.msp.simulation.person.ai.mission.TravelMission
          extended by org.mars_sim.msp.simulation.person.ai.mission.VehicleMission
              extended by org.mars_sim.msp.simulation.person.ai.mission.RoverMission
                  extended by org.mars_sim.msp.simulation.person.ai.mission.CollectResourcesMission
                      extended by org.mars_sim.msp.simulation.person.ai.mission.CollectRegolith
All Implemented Interfaces:
java.io.Serializable, UnitListener

public class CollectRegolith
extends CollectResourcesMission

The Exploration class is a mission to travel in a rover to several random locations around a settlement and collect Regolith.

See Also:
Serialized Form

Field Summary
static java.lang.String DEFAULT_DESCRIPTION
           
static int REQUIRED_BAGS
           
 
Fields inherited from class org.mars_sim.msp.simulation.person.ai.mission.CollectResourcesMission
COLLECT_RESOURCES, EVA_COLLECTION_OVERHEAD
 
Fields inherited from class org.mars_sim.msp.simulation.person.ai.mission.RoverMission
STARTING_SETTLEMENT_EVENT
 
Fields inherited from class org.mars_sim.msp.simulation.person.ai.mission.VehicleMission
DISEMBARKING, EMBARKING, equipmentNeededCache, loadedFlag, OPERATOR_EVENT, TRAVELLING, VEHICLE_EVENT
 
Fields inherited from class org.mars_sim.msp.simulation.person.ai.mission.TravelMission
AT_NAVPOINT, DISTANCE_EVENT, NAVPOINTS_EVENT, TRAVEL_STATUS_EVENT, TRAVEL_TO_NAVPOINT
 
Fields inherited from class org.mars_sim.msp.simulation.person.ai.mission.Mission
ADD_MEMBER_EVENT, ASSOCIATED_SETTLEMENT_EVENT, CAPACITY_EVENT, DESCRIPTION_EVENT, END_MISSION_EVENT, MIN_PEOPLE_EVENT, NAME_EVENT, PHASE_DESCRIPTION_EVENT, PHASE_EVENT, REMOVE_MEMBER_EVENT
 
Constructor Summary
CollectRegolith(java.util.Collection<Person> members, Settlement startingSettlement, java.util.List regolithCollectionSites, Rover rover, java.lang.String description)
          Constructor with explicit data.
CollectRegolith(Person startingPerson)
          Constructor
 
Method Summary
protected  java.lang.String getCollectionSiteDescription(int siteNum)
          Gets the description of a collection site.
static double getNewMissionProbability(Person person)
          Gets the weighted probability that a given person would start this mission.
 
Methods inherited from class org.mars_sim.msp.simulation.person.ai.mission.CollectResourcesMission
determineNewPhase, endCollectingAtSite, getAssociatedSettlement, getEquipmentNeededForRemainingMission, getEstimatedRemainingMissionTime, getEstimatedTimeAtCollectionSite, getNewMissionProbability, getNumCollectionSites, getNumCollectionSitesVisited, getPartsNeededForTrip, getResourcesNeededForRemainingMission, getTotalTripTimeLimit, isCapableOfMission, numCollectingContainersAvailable, performPhase, recruitPeopleForMission
 
Methods inherited from class org.mars_sim.msp.simulation.person.ai.mission.RoverMission
areVehiclesAvailable, atLeastOnePersonRemainingAtSettlement, endMission, getOperateVehicleTask, getResourcesNeededForTrip, getRover, getStartingSettlement, getVehicleWithGreatestRange, hasDangerousMedicalProblemAtAssociatedSettlement, hasEmergency, isEveryoneInRover, isNoOneInRover, isRoverInAGarage, isUsableVehicle, minAvailablePeopleAtSettlement, performDisembarkToSettlementPhase, performEmbarkFromSettlementPhase, setStartingSettlement
 
Methods inherited from class org.mars_sim.msp.simulation.person.ai.mission.VehicleMission
compareVehicles, determineEmergencyDestination, findClosestSettlement, getAverageVehicleSpeedForOperators, getEquipmentToLoad, getEstimatedTripTime, getFuelNeededForTrip, getLegETA, getResourcesToLoad, getTotalDistanceTravelled, getVehicle, hasEmbarkingMissions, hasEnoughResourcesForRemainingMission, hasVehicle, isVehicleLoadable, isVehicleLoaded, leaveVehicle, performTravelPhase, reserveVehicle, setEmergencyBeacon, setVehicle, timePassing, unitUpdate, updateTravelDestination
 
Methods inherited from class org.mars_sim.msp.simulation.person.ai.mission.TravelMission
addNavpoint, clearRemainingNavpoints, getCurrentLegDistance, getCurrentLegRemainingDistance, getCurrentLegStartingTime, getCurrentNavpoint, getCurrentNavpointIndex, getNavpoint, getNavpointIndex, getNextNavpoint, getNextNavpointIndex, getNumberOfNavpoints, getPreviousNavpoint, getTotalDistance, getTotalRemainingDistance, getTravelStatus, reachedNextNode, setNavpoint, setNextNavpointIndex, startTravelToNextNode
 
Methods inherited from class org.mars_sim.msp.simulation.person.ai.mission.Mission
addMissionListener, addPerson, addPhase, assignTask, associateAllMembersWithSettlement, fireMissionUpdate, fireMissionUpdate, getCurrentMissionLocation, getDescription, getMinPeople, getMissionCapacity, getMissionQualification, getName, getPeople, getPeopleNumber, getPhase, getPhaseDescription, getPhaseEnded, hasDangerousMedicalProblems, hasDangerousMedicalProblemsAllCrew, hasEmergencyAllCrew, hasPerson, isDone, performMission, removeMissionListener, removePerson, setDescription, setMinPeople, setMissionCapacity, setName, setPhase, setPhaseDescription, setPhaseEnded, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_DESCRIPTION

public static final java.lang.String DEFAULT_DESCRIPTION
See Also:
Constant Field Values

REQUIRED_BAGS

public static final int REQUIRED_BAGS
See Also:
Constant Field Values
Constructor Detail

CollectRegolith

public CollectRegolith(Person startingPerson)
                throws MissionException
Constructor

Parameters:
startingPerson - the person starting the mission.
Throws:
MissionException - if problem constructing mission.

CollectRegolith

public CollectRegolith(java.util.Collection<Person> members,
                       Settlement startingSettlement,
                       java.util.List regolithCollectionSites,
                       Rover rover,
                       java.lang.String description)
                throws MissionException
Constructor with explicit data.

Parameters:
members - collection of mission members.
startingSettlement - the starting settlement.
regolithCollectionSites - the sites to collect regolith.
rover - the rover to use.
description - the mission's description.
Throws:
MissionException - if error constructing mission.
Method Detail

getNewMissionProbability

public static double getNewMissionProbability(Person person)
Gets the weighted probability that a given person would start this mission.

Parameters:
person - the given person
Returns:
the weighted probability

getCollectionSiteDescription

protected java.lang.String getCollectionSiteDescription(int siteNum)
Gets the description of a collection site.

Specified by:
getCollectionSiteDescription in class CollectResourcesMission
Parameters:
siteNum - the number of the site.
Returns:
description