edu.columbia.cs.coms4701.agent.events
Class AgentAddedEvent<K extends AgentAction,P extends AgentPercept,A extends Agent<K,P>>

java.lang.Object
  extended by java.util.EventObject
      extended by edu.columbia.cs.coms4701.agent.events.AgentEvent<K,P,A>
          extended by edu.columbia.cs.coms4701.agent.events.AgentAddedEvent<K,P,A>
All Implemented Interfaces:
java.io.Serializable

public class AgentAddedEvent<K extends AgentAction,P extends AgentPercept,A extends Agent<K,P>>
extends AgentEvent<K,P,A>

Event indicating that an agent was added to an environment.

Version:
0.1

User: aaron Date: Aug 24, 2006 Time: 4:00:31 PM

Author:
aaron@cs
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AgentAddedEvent(java.lang.Object source, A theAgent)
          Creates a new AgentAddedEvent from the given:
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class edu.columbia.cs.coms4701.agent.events.AgentEvent
getAgent
 
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

AgentAddedEvent

public AgentAddedEvent(java.lang.Object source,
                       A theAgent)
Creates a new AgentAddedEvent from the given:

Parameters:
source - the Environment to which the agent was added
theAgent - the Agent that was added
Method Detail

toString

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