cz.cuni.amis.nb.pogamut.base.agent
Class AgentAction

Package class diagram package AgentAction
java.lang.Object
  extended by javax.swing.AbstractAction
      extended by cz.cuni.amis.nb.pogamut.base.NamedAction
          extended by cz.cuni.amis.nb.pogamut.base.agent.AgentAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
ControllableAgentNode.KillAgent, ControllableAgentNode.PauseAgent, ControllableAgentNode.ResumeAgent, ControllableAgentNode.SetDefault, ControllableAgentNode.StopAgent

public abstract class AgentAction
extends NamedAction

Base for agent associated actions.

Author:
ik
See Also:
Serialized Form

Field Summary
protected  cz.cuni.amis.pogamut.base.agent.IAgent agent
           
 
Fields inherited from class javax.swing.AbstractAction
enabled, changeSupport
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
AgentAction(cz.cuni.amis.pogamut.base.agent.IAgent agent, String key)
           
 
Method Summary
protected abstract  void action(ActionEvent e)
           
 
Methods inherited from class cz.cuni.amis.nb.pogamut.base.NamedAction
actionPerformed, getStr, init
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

agent

protected cz.cuni.amis.pogamut.base.agent.IAgent agent
Constructor Detail

AgentAction

public AgentAction(cz.cuni.amis.pogamut.base.agent.IAgent agent,
                   String key)
Method Detail

action

protected abstract void action(ActionEvent e)
                        throws cz.cuni.amis.pogamut.base.agent.exceptions.AgentException
Specified by:
action in class NamedAction
Throws:
cz.cuni.amis.pogamut.base.agent.exceptions.AgentException


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.