edu.columbia.cs.coms4701.agent.events
Class AgentChoseActionEvent<K extends AgentAction,P extends AgentPercept,A extends Agent<K,P>>
java.lang.Object
java.util.EventObject
edu.columbia.cs.coms4701.agent.events.AgentEvent<K,P,A>
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
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 java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 occurredtheAgent
- the Agent that chose the actiontheAction
- the AgentAction that was chosen
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