edu.columbia.cs.coms4701.agent.events
Class AgentChoseActionEvent<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.AgentChoseActionEvent<K,P,A>
All Implemented Interfaces:
java.io.Serializable

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

Event indicating that an agent has chosen an action in 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
AgentChoseActionEvent(java.lang.Object source, A theAgent, K theAction)
          Creates a new AgentAddedEvent from the given,
 
Method Summary
 K getAction()
          Returns the Action that was chosen
 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

AgentChoseActionEvent

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

Parameters:
source - the Environment in which the event occurred
theAgent - the Agent that chose the action
theAction - the AgentAction that was chosen
Method Detail

getAction

public K getAction()
Returns the Action that was chosen

Returns:
the Action that was chosen

toString

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