|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.core.science.ScienceUtil
public class ScienceUtil
Utility class for science fields.
| Method Summary | |
|---|---|
static java.util.List<Science> |
getAllSciences()
Gets a list of all sciences. |
static Job[] |
getAssociatedJobs(Science science)
Gets all jobs related to a scientific field. |
static Science |
getAssociatedScience(Job job)
Gets a science associated with a given job if any. |
static java.lang.String |
getAssociatedSkill(Science science)
Gets the skill associated with the science. |
static Science |
getScience(java.lang.String name)
Gets a science based on its name. |
static boolean |
isCollaborativeScience(Science primaryScience,
Science science)
Checks if a science is collaborative to a primary science. |
static boolean |
isScienceJob(Job job)
Checks if a job is associated with any science. |
| 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<Science> getAllSciences()
public static Science getScience(java.lang.String name)
name - the science name (case insensitive).
public static java.lang.String getAssociatedSkill(Science science)
science - the science.
public static Job[] getAssociatedJobs(Science science)
science - the scientific field.
public static boolean isScienceJob(Job job)
job - the job.
public static Science getAssociatedScience(Job job)
job - the job.
public static boolean isCollaborativeScience(Science primaryScience,
Science science)
primaryScience - the primary science.science - the science to check.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||