|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.core.person.ai.mission.Mission
org.mars_sim.msp.core.person.ai.mission.TravelMission
org.mars_sim.msp.core.person.ai.mission.VehicleMission
org.mars_sim.msp.core.person.ai.mission.RoverMission
org.mars_sim.msp.core.person.ai.mission.AreologyStudyFieldMission
public class AreologyStudyFieldMission
A mission to do areology research at a remote field location for a scientific study.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_DESCRIPTION
|
static double |
FIELD_SITE_TIME
|
static java.lang.String |
RESEARCH_SITE
|
| Fields inherited from class org.mars_sim.msp.core.person.ai.mission.RoverMission |
|---|
STARTING_SETTLEMENT_EVENT |
| Fields inherited from class org.mars_sim.msp.core.person.ai.mission.VehicleMission |
|---|
DISEMBARKING, EMBARKING, equipmentNeededCache, loadedFlag, OPERATOR_EVENT, TRAVELLING, VEHICLE_EVENT |
| Fields inherited from class org.mars_sim.msp.core.person.ai.mission.TravelMission |
|---|
AT_NAVPOINT, DISTANCE_EVENT, NAVPOINTS_EVENT, TRAVEL_STATUS_EVENT, TRAVEL_TO_NAVPOINT |
| Fields inherited from class org.mars_sim.msp.core.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 | |
|---|---|
AreologyStudyFieldMission(java.util.Collection<Person> members,
Settlement startingSettlement,
Person leadResearcher,
ScientificStudy study,
Rover rover,
Coordinates fieldSite,
java.lang.String description)
Constructor with explicit information. |
|
AreologyStudyFieldMission(Person startingPerson)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
determineNewPhase()
Determines a new phase for the mission when the current phase has ended. |
void |
endResearchAtFieldSite()
Ends the research at a field site. |
Settlement |
getAssociatedSettlement()
Gets the settlement associated with the mission. |
java.util.Map<java.lang.Class,java.lang.Integer> |
getEquipmentNeededForRemainingMission(boolean useBuffer)
Gets the number and types of equipment needed for the mission. |
double |
getEstimatedRemainingMissionTime(boolean useBuffer)
Gets the estimated time remaining for the mission. |
protected double |
getMissionQualification(Person person)
Gets the mission qualification value for the person. |
static double |
getNewMissionProbability(Person person)
Gets the weighted probability that a given person would start this mission. |
java.util.Map<Resource,java.lang.Number> |
getResourcesNeededForRemainingMission(boolean useBuffer,
boolean parts)
Gets the number and amounts of resources needed for the mission. |
static double |
getTotalTripTimeLimit(Rover rover,
int memberNum,
boolean useBuffer)
Gets the time limit of the trip based on life support capacity. |
protected boolean |
isCapableOfMission(Person person)
Checks to see if a person is capable of joining a mission. |
protected void |
performPhase(Person person)
The person performs the current phase of the mission. |
protected void |
recruitPeopleForMission(Person startingPerson)
Recruits new people into the mission. |
| Methods inherited from class org.mars_sim.msp.core.person.ai.mission.VehicleMission |
|---|
compareVehicles, determineEmergencyDestination, findClosestSettlement, getAverageVehicleSpeedForOperators, getEquipmentToLoad, getEstimatedTripTime, getFuelNeededForTrip, getLegETA, getPartsNeededForTrip, getResourcesToLoad, getTotalDistanceTravelled, getVehicle, hasEmbarkingMissions, hasEnoughResourcesForRemainingMission, hasVehicle, isVehicleLoadable, isVehicleLoaded, leaveVehicle, performTravelPhase, reserveVehicle, setEmergencyBeacon, setVehicle, timePassing, unitUpdate, updateTravelDestination |
| Methods inherited from class org.mars_sim.msp.core.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.core.person.ai.mission.Mission |
|---|
addMissionListener, addPerson, addPhase, assignTask, associateAllMembersWithSettlement, fireMissionUpdate, fireMissionUpdate, getCurrentMissionLocation, getDescription, getMinPeople, getMissionCapacity, 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 |
|---|
public static final java.lang.String DEFAULT_DESCRIPTION
public static final java.lang.String RESEARCH_SITE
public static final double FIELD_SITE_TIME
| Constructor Detail |
|---|
public AreologyStudyFieldMission(Person startingPerson)
throws MissionException
startingPerson - the person starting the mission.
MissionException - if problem constructing mission.
public AreologyStudyFieldMission(java.util.Collection<Person> members,
Settlement startingSettlement,
Person leadResearcher,
ScientificStudy study,
Rover rover,
Coordinates fieldSite,
java.lang.String description)
throws MissionException
members - the mission members.startingSettlement - the settlement the mission starts at.leadResearcher - the lead researcherstudy - the scientific study.rover - the rover used by the mission.fieldSite - the field site to research.description - the mission description.
MissionException - if error creating mission.| Method Detail |
|---|
public static double getNewMissionProbability(Person person)
person - the given person
public static double getTotalTripTimeLimit(Rover rover,
int memberNum,
boolean useBuffer)
throws MissionException
useBuffer - use time buffer in estimation if true.
MissionException - if error determining time limit.protected void recruitPeopleForMission(Person startingPerson)
Mission
recruitPeopleForMission in class MissionstartingPerson - the person starting the mission.
protected double getMissionQualification(Person person)
throws MissionException
Mission
getMissionQualification in class Missionperson - the person to check.
MissionException - if error determining mission qualification.
public java.util.Map<java.lang.Class,java.lang.Integer> getEquipmentNeededForRemainingMission(boolean useBuffer)
throws MissionException
RoverMission
getEquipmentNeededForRemainingMission in class RoverMissionuseBuffer - use time buffers in estimation if true.
MissionException - if error determining needed equipment.public Settlement getAssociatedSettlement()
Mission
getAssociatedSettlement in class Mission
protected void determineNewPhase()
throws MissionException
VehicleMission
determineNewPhase in class VehicleMissionMissionException - if problem setting a new phase.
protected void performPhase(Person person)
throws MissionException
RoverMission
performPhase in class RoverMissionperson - the person performing the phase.
MissionException - if problem performing the phase.public void endResearchAtFieldSite()
protected boolean isCapableOfMission(Person person)
Mission
isCapableOfMission in class Missionperson - the person to check.
public double getEstimatedRemainingMissionTime(boolean useBuffer)
throws MissionException
VehicleMission
getEstimatedRemainingMissionTime in class VehicleMissionuseBuffer - Use time buffer in estimations if true.
MissionException
public java.util.Map<Resource,java.lang.Number> getResourcesNeededForRemainingMission(boolean useBuffer,
boolean parts)
throws MissionException
VehicleMission
getResourcesNeededForRemainingMission in class VehicleMissionuseBuffer - use time buffers in estimation if true.parts - include parts.
MissionException - if error determining needed resources.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||