edu.columbia.cs.coms4701.agent.events
Class AgentEvent<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>
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AgentAddedEvent, AgentChoseActionEvent, AgentReceivedPerceptsEvent

public class AgentEvent<K extends AgentAction,P extends AgentPercept,A extends Agent<K,P>>
extends java.util.EventObject

Superclass for events that involve an agent.

Version:
0.1

User: aaron Date: Aug 24, 2006 Time: 4:12:37 PM

Author:
aaron@cs
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AgentEvent(java.lang.Object source, A theAgent)
          Creates a new AgentEvent with the given source and Agent.
 
Method Summary
 A getAgent()
          Returns the Agent
 
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

AgentEvent

public AgentEvent(java.lang.Object source,
                  A theAgent)
Creates a new AgentEvent with the given source and Agent.

Parameters:
source - the Environment in which the event occurred.
theAgent - the Agent involved in the event.
Method Detail

getAgent

public A getAgent()
Returns the Agent

Returns:
the Agent that was involved in the event