org.mars_sim.msp.simulation.person.ai.mission
Class MissionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.mars_sim.msp.simulation.person.ai.mission.MissionEvent
All Implemented Interfaces:
java.io.Serializable

public class MissionEvent
extends java.util.EventObject

A mission change event.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MissionEvent(Mission source, java.lang.String type, java.lang.Object target)
          Constructor
 
Method Summary
 java.lang.Object getTarget()
          Gets the event target object.
 java.lang.String getType()
          Gets 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
 

Constructor Detail

MissionEvent

public MissionEvent(Mission source,
                    java.lang.String type,
                    java.lang.Object target)
Constructor

Parameters:
source - the object throwing the event.
type - the event type.
target - the event target object (or null if none)
Method Detail

getType

public java.lang.String getType()
Gets the event type.

Returns:
event type.

getTarget

public java.lang.Object getTarget()
Gets the event target object.

Returns:
target object or null if none.