|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mars_sim.msp.simulation.person.ai.job.JobManager
public final class JobManager
The JobManager class keeps track of the settler jobs in a simulation.
Method Summary | |
---|---|
static double |
getBestJobProspect(Person person,
Settlement settlement,
boolean isHomeSettlement)
Gets the best job prospect value for a person at a settlement. |
static Job |
getJob(java.lang.String jobName)
Gets a job from a job name. |
static double |
getJobProspect(Person person,
Job job,
Settlement settlement,
boolean isHomeSettlement)
Get the job prospect value for a person and a particular job at a settlement. |
static java.util.List<Job> |
getJobs()
Gets a list of available jobs in the simulation. |
static Job |
getNewJob(Person person)
Gets a new job for the person. |
static double |
getRemainingSettlementNeed(Settlement settlement,
Job job)
Gets the need for a job at a settlement minus the capability of the inhabitants performing that job there. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.List<Job> getJobs()
public static Job getJob(java.lang.String jobName)
jobName
- the name of the job.
public static double getRemainingSettlementNeed(Settlement settlement, Job job)
settlement
- the settlement to check.job
- the job to check.
public static Job getNewJob(Person person)
person
- the person to check.
public static double getJobProspect(Person person, Job job, Settlement settlement, boolean isHomeSettlement)
person
- the person to check forjob
- the job to check forsettlement
- the settlement to do the job in.isHomeSettlement
- is this the person's home settlement?
public static double getBestJobProspect(Person person, Settlement settlement, boolean isHomeSettlement)
person
- the person to check forsettlement
- the settlement to do the job inisHomeSettlement
- is this the person's home settlement?
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |