org.mars_sim.msp.core.science
Class ScientificStudyEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.mars_sim.msp.core.science.ScientificStudyEvent
All Implemented Interfaces:
Serializable

public class ScientificStudyEvent
extends EventObject

A scientific study update event.

See Also:
Serialized Form

Field Summary
static String ADD_COLLABORATOR_EVENT
           
static String COLLABORATION_PAPER_WORK_EVENT
           
static String COLLABORATION_RESEARCH_WORK_EVENT
           
static String PHASE_CHANGE_EVENT
           
static String PRIMARY_PAPER_WORK_EVENT
           
static String PRIMARY_RESEARCH_WORK_EVENT
           
static String PROPOSAL_WORK_EVENT
           
static String REMOVE_COLLABORATOR_EVENT
           
static String STUDY_COMPLETION_EVENT
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ScientificStudyEvent(ScientificStudy study, Person researcher, String type)
          Constructor
ScientificStudyEvent(ScientificStudy study, String type)
          Constructor
 
Method Summary
 Person getResearcher()
          Get the study researcher the event is about.
 ScientificStudy getStudy()
          Get the scientific study.
 String getType()
          Get the event type.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STUDY_COMPLETION_EVENT

public static final String STUDY_COMPLETION_EVENT
See Also:
Constant Field Values

PHASE_CHANGE_EVENT

public static final String PHASE_CHANGE_EVENT
See Also:
Constant Field Values

PROPOSAL_WORK_EVENT

public static final String PROPOSAL_WORK_EVENT
See Also:
Constant Field Values

ADD_COLLABORATOR_EVENT

public static final String ADD_COLLABORATOR_EVENT
See Also:
Constant Field Values

REMOVE_COLLABORATOR_EVENT

public static final String REMOVE_COLLABORATOR_EVENT
See Also:
Constant Field Values

PRIMARY_RESEARCH_WORK_EVENT

public static final String PRIMARY_RESEARCH_WORK_EVENT
See Also:
Constant Field Values

COLLABORATION_RESEARCH_WORK_EVENT

public static final String COLLABORATION_RESEARCH_WORK_EVENT
See Also:
Constant Field Values

PRIMARY_PAPER_WORK_EVENT

public static final String PRIMARY_PAPER_WORK_EVENT
See Also:
Constant Field Values

COLLABORATION_PAPER_WORK_EVENT

public static final String COLLABORATION_PAPER_WORK_EVENT
See Also:
Constant Field Values
Constructor Detail

ScientificStudyEvent

public ScientificStudyEvent(ScientificStudy study,
                            String type)
Constructor

Parameters:
study - the scientific study.
type - the event type.

ScientificStudyEvent

public ScientificStudyEvent(ScientificStudy study,
                            Person researcher,
                            String type)
Constructor

Parameters:
study - the scientific study.
researcher - the study researcher.
type - the event type.
Method Detail

getStudy

public ScientificStudy getStudy()
Get the scientific study.

Returns:
study.

getResearcher

public Person getResearcher()
Get the study researcher the event is about.

Returns:
researcher or null if none.

getType

public String getType()
Get the event type.

Returns:
event type string.


Copyright © 2009-2013. All Rights Reserved.