org.mars_sim.msp.simulation.person.ai.mission
Class CollectRegolith
java.lang.Object
org.mars_sim.msp.simulation.person.ai.mission.Mission
org.mars_sim.msp.simulation.person.ai.mission.TravelMission
org.mars_sim.msp.simulation.person.ai.mission.VehicleMission
org.mars_sim.msp.simulation.person.ai.mission.RoverMission
org.mars_sim.msp.simulation.person.ai.mission.CollectResourcesMission
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
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 |
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
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.
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