org.mars_sim.msp.core.structure.construction
Class ConstructionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.mars_sim.msp.core.structure.construction.ConstructionEvent
All Implemented Interfaces:
java.io.Serializable

public class ConstructionEvent
extends java.util.EventObject

A construction related event.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ConstructionEvent(java.lang.Object 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

ConstructionEvent

public ConstructionEvent(java.lang.Object 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.