|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
edu.columbia.cs.coms4701.agent.events.AgentEvent<K,P,A>
public class AgentEvent<K extends AgentAction,P extends AgentPercept,A extends Agent<K,P>>
Superclass for events that involve an agent.
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 |
---|
public AgentEvent(java.lang.Object source, A theAgent)
source
- the Environment in which the event occurred.theAgent
- the Agent involved in the event.Method Detail |
---|
public A getAgent()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |