edu.columbia.cs.coms4701.agent.events
Class EnvironmentObjectAddedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by edu.columbia.cs.coms4701.agent.events.EnvironmentObjectAddedEvent
All Implemented Interfaces:
java.io.Serializable

public class EnvironmentObjectAddedEvent
extends java.util.EventObject

Event indicating that an environment object (not necessarily an agent) has been added to an environment.

Version:
0.1

User: aaron Date: Aug 24, 2006 Time: 4:19:40 PM

Author:
aaron@cs
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
EnvironmentObjectAddedEvent(java.lang.Object source, EnvironmentObject theObject)
          Constructs a new EnvironmentObjectAddedEvent with the given:
 
Method Summary
 EnvironmentObject getEnvironmentObject()
          Returns the EnvironmentObject that was added to the Environment.
 java.lang.String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnvironmentObjectAddedEvent

public EnvironmentObjectAddedEvent(java.lang.Object source,
                                   EnvironmentObject theObject)
Constructs a new EnvironmentObjectAddedEvent with the given:

Parameters:
source - the Environment to which the object was added
theObject - the EnvironmentObject which was added
Method Detail

getEnvironmentObject

public EnvironmentObject getEnvironmentObject()
Returns the EnvironmentObject that was added to the Environment.

Returns:
the object that was added

toString

public java.lang.String toString()
Overrides:
toString in class java.util.EventObject