Package net.sf.tweety.agents
Class ActionEvent
- java.lang.Object
 - 
- net.sf.tweety.agents.ActionEvent
 
 
- 
public class ActionEvent extends java.lang.ObjectAn action event encapsulates a multi agent system, an agent in this system, and an action (which was performed by the agent).- Author:
 - Matthias Thimm
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description private Executableactionprivate Agentagentprivate MultiAgentSystem<? extends Agent>multiAgentSystem 
- 
Constructor Summary
Constructors Constructor Description ActionEvent(Agent agent, MultiAgentSystem<? extends Agent> multiAgentSystem, Executable action)Creates a new ActionEvent. 
- 
Method Summary
Modifier and Type Method Description ExecutablegetAction()AgentgetAgent()MultiAgentSystem<? extends Agent>getMultiAgentSystem() 
 - 
 
- 
- 
Field Detail
- 
agent
private Agent agent
 
- 
multiAgentSystem
private MultiAgentSystem<? extends Agent> multiAgentSystem
 
- 
action
private Executable action
 
 - 
 
- 
Constructor Detail
- 
ActionEvent
public ActionEvent(Agent agent, MultiAgentSystem<? extends Agent> multiAgentSystem, Executable action)
Creates a new ActionEvent.- Parameters:
 agent- an agent.multiAgentSystem- a multi-agent system.action- an executable.
 
 - 
 
- 
Method Detail
- 
getAgent
public Agent getAgent()
- Returns:
 - the agent
 
 
- 
getMultiAgentSystem
public MultiAgentSystem<? extends Agent> getMultiAgentSystem()
- Returns:
 - the multiAgentSystem
 
 
- 
getAction
public Executable getAction()
- Returns:
 - the action
 
 
 - 
 
 -