|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.core.science.ScientificStudy
public class ScientificStudy
A class representing a scientific study.
| Field Summary | |
|---|---|
static String |
CANCELED
|
static String |
FAILED_COMPLETION
|
static String |
INVITATION_PHASE
|
static int |
MAX_NUM_COLLABORATORS
|
static String |
PAPER_PHASE
|
static String |
PEER_REVIEW_PHASE
|
static String |
PROPOSAL_PHASE
|
static String |
RESEARCH_PHASE
|
static String |
SUCCESSFUL_COMPLETION
|
| Method Summary | |
|---|---|
void |
addCollaborativePaperWorkTime(Person researcher,
double workTime)
Adds work time for collaborative researcher writing paper. |
void |
addCollaborativeResearcher(Person researcher,
Science science)
Adds a collaborative researcher to the study. |
void |
addCollaborativeResearchWorkTime(Person researcher,
double workTime)
Adds work time for collaborative research. |
void |
addInvitedResearcher(Person researcher)
Adds a researcher to the list of researchers invited to collaborate on this study. |
void |
addPrimaryPaperWorkTime(double workTime)
Adds work time for primary researcher writing paper. |
void |
addPrimaryResearchWorkTime(double workTime)
Adds work time for primary research. |
void |
addProposalWorkTime(double workTime)
Adds work time to the proposal phase. |
void |
addScientificStudyListener(ScientificStudyListener newListener)
Adds a listener |
int |
compareTo(ScientificStudy o)
Compares this object with the specified object for order. |
void |
destroy()
Prepare object for garbage collection. |
double |
getCollaborativePaperWorkTimeCompleted(Person researcher)
Gets the work time completed for a collaborative researcher writing paper. |
double |
getCollaborativeResearcherEarnedScientificAchievement(Person researcher)
Gets a collaborative researcher's earned scientific achievement from the study. |
Map<Person,Science> |
getCollaborativeResearchers()
Gets the study's collaborative researchers and their fields of science. |
double |
getCollaborativeResearchWorkTimeCompleted(Person researcher)
Gets the work time completed for a collaborative researcher. |
String |
getCompletionState()
Gets the study's completion state. |
int |
getDifficultyLevel()
Gets the study's difficulty level. |
MarsClock |
getLastCollaborativeResearchWorkTime(Person researcher)
Gets the last time collaborative research work was done on the study. |
MarsClock |
getLastPrimaryResearchWorkTime()
Gets the last time primary research work was done on the study. |
int |
getNumOpenResearchInvitations()
Get number of research invitations that have not been responded to yet. |
double |
getPeerReviewTimeCompleted()
Gets the amount of peer review time that has been completed so far. |
String |
getPhase()
Gets the study's current phase. |
double |
getPrimaryPaperWorkTimeCompleted()
Gets the work time completed for primary researcher writing paper. |
Person |
getPrimaryResearcher()
Gets the study's primary researcher. |
double |
getPrimaryResearcherEarnedScientificAchievement()
Gets the primary researcher's earned scientific achievement from the study. |
double |
getPrimaryResearchWorkTimeCompleted()
Gets the work time completed for primary research. |
Settlement |
getPrimarySettlement()
Gets the settlement where primary research is conducted. |
double |
getProposalWorkTimeCompleted()
Gets the amount of work time completed for the proposal phase. |
Science |
getScience()
Gets the study's primary field of science. |
double |
getTotalCollaborativePaperWorkTimeRequired()
Gets the total work time required for a collaborative researcher writing paper. |
double |
getTotalCollaborativeResearchWorkTimeRequired()
Gets the total work time required for a collaborative researcher. |
double |
getTotalPeerReviewTimeRequired()
Gets the total amount of peer review time required for the study. |
double |
getTotalPrimaryPaperWorkTimeRequired()
Gets the total work time required for primary researcher writing paper. |
double |
getTotalPrimaryResearchWorkTimeRequired()
Gets the total work time required for primary research. |
double |
getTotalProposalWorkTimeRequired()
Gets the total amount of proposal work time required for the study. |
boolean |
hasInvitedResearcherResponded(Person researcher)
Checks if an invited researcher has responded to the invitation. |
boolean |
hasResearcherBeenInvited(Person researcher)
Checks if a researcher has already been invited to collaborate on this study. |
boolean |
isAllCollaborativePaperCompleted()
Checks if all collaborative paper writing has been completed. |
boolean |
isAllCollaborativeResearchCompleted()
Checks if all collaborative research has been completed. |
boolean |
isAllPaperWritingCompleted()
Checks if all paper writing in study has been completed. |
boolean |
isAllResearchCompleted()
Checks if all research in study has been completed. |
boolean |
isCollaborativePaperCompleted(Person researcher)
Checks if collaborative paper writing has been completed by a given researcher. |
boolean |
isCollaborativeResearchCompleted(Person researcher)
Checks if collaborative research has been completed by a given researcher. |
boolean |
isCompleted()
Checks if the study is completed. |
boolean |
isPeerReviewTimeFinished()
Checks if peer review time has finished. |
boolean |
isPrimaryPaperCompleted()
Checks if primary researcher paper writing has been completed. |
boolean |
isPrimaryResearchCompleted()
Checks if primary research has been completed. |
void |
removeCollaborativeResearcher(Person researcher)
Removes a collaborative researcher from a study. |
void |
removeScientificStudyListener(ScientificStudyListener oldListener)
Removes a listener |
void |
respondingInvitedResearcher(Person researcher)
Sets that an invited researcher has responded. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPOSAL_PHASE
public static final String INVITATION_PHASE
public static final String RESEARCH_PHASE
public static final String PAPER_PHASE
public static final String PEER_REVIEW_PHASE
public static final String SUCCESSFUL_COMPLETION
public static final String FAILED_COMPLETION
public static final String CANCELED
public static final int MAX_NUM_COLLABORATORS
| Method Detail |
|---|
public String getPhase()
public Science getScience()
public int getDifficultyLevel()
public Person getPrimaryResearcher()
public double getTotalProposalWorkTimeRequired()
public double getProposalWorkTimeCompleted()
public void addProposalWorkTime(double workTime)
workTime - work time (millisols)public Map<Person,Science> getCollaborativeResearchers()
public void addCollaborativeResearcher(Person researcher,
Science science)
researcher - the collaborative researcher.science - the scientific field to collaborate with.public void removeCollaborativeResearcher(Person researcher)
researcher - the collaborative researcher.public boolean hasResearcherBeenInvited(Person researcher)
researcher - the researcher to check.
public boolean hasInvitedResearcherResponded(Person researcher)
researcher - the invited researcher
public int getNumOpenResearchInvitations()
public void addInvitedResearcher(Person researcher)
researcher - the invited researcher.public void respondingInvitedResearcher(Person researcher)
researcher - the invited researcher.public double getTotalPrimaryResearchWorkTimeRequired()
public double getPrimaryResearchWorkTimeCompleted()
public void addPrimaryResearchWorkTime(double workTime)
workTime - work time (millisols).public boolean isPrimaryResearchCompleted()
public double getTotalCollaborativeResearchWorkTimeRequired()
public double getCollaborativeResearchWorkTimeCompleted(Person researcher)
researcher - the collaborative researcher.
public void addCollaborativeResearchWorkTime(Person researcher,
double workTime)
researcher - the collaborative researcher.workTime - the work time (millisols).public boolean isCollaborativeResearchCompleted(Person researcher)
researcher - the collaborative researcher.public boolean isAllCollaborativeResearchCompleted()
public boolean isAllResearchCompleted()
public double getTotalPrimaryPaperWorkTimeRequired()
public double getPrimaryPaperWorkTimeCompleted()
public void addPrimaryPaperWorkTime(double workTime)
workTime - work time (millisols).public boolean isPrimaryPaperCompleted()
public double getTotalCollaborativePaperWorkTimeRequired()
public double getCollaborativePaperWorkTimeCompleted(Person researcher)
researcher - the collaborative researcher.
public void addCollaborativePaperWorkTime(Person researcher,
double workTime)
researcher - the collaborative researcher.workTime - the work time (millisols).public boolean isCollaborativePaperCompleted(Person researcher)
researcher - the collaborative researcher.public boolean isAllCollaborativePaperCompleted()
public boolean isAllPaperWritingCompleted()
public boolean isPeerReviewTimeFinished()
public double getPeerReviewTimeCompleted()
public double getTotalPeerReviewTimeRequired()
public boolean isCompleted()
public String getCompletionState()
public Settlement getPrimarySettlement()
public MarsClock getLastPrimaryResearchWorkTime()
public MarsClock getLastCollaborativeResearchWorkTime(Person researcher)
researcher - the collaborative researcher.
public double getPrimaryResearcherEarnedScientificAchievement()
public double getCollaborativeResearcherEarnedScientificAchievement(Person researcher)
researcher - the collaborative researcher.
public String toString()
toString in class Objectpublic int compareTo(ScientificStudy o)
compareTo in interface Comparable<ScientificStudy>o - the Object to be compared.
public final void addScientificStudyListener(ScientificStudyListener newListener)
newListener - the listener to add.public final void removeScientificStudyListener(ScientificStudyListener oldListener)
oldListener - the listener to remove.public void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||