org.mars_sim.msp.core.person.ai.mission
Class MissionEvent
java.lang.Object
java.util.EventObject
org.mars_sim.msp.core.person.ai.mission.MissionEvent
- All Implemented Interfaces:
- Serializable
public class MissionEvent
- extends EventObject
A mission change event.
- See Also:
- Serialized Form
MissionEvent
public MissionEvent(Mission source,
String type,
Object target)
- Constructor
- Parameters:
source - the object throwing the event.type - the event type.target - the event target object (or null if none)
getType
public String getType()
- Gets the event type.
- Returns:
- event type.
getTarget
public Object getTarget()
- Gets the event target object.
- Returns:
- target object or null if none.
Copyright © 2009-2013. All Rights Reserved.