jade.tools.sniffer
Class DoSnifferAction
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--jade.tools.sniffer.SnifferAction
|
+--jade.tools.sniffer.AgentAction
|
+--jade.tools.sniffer.DoSnifferAction
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
- public class DoSnifferAction
- extends jade.tools.sniffer.AgentAction
For sniff the Agent in the tree.
- See Also:
DoNotSnifferAction
,
ShowOnlyAction
,
Serialized Form
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Method Summary |
void |
doAction(jade.gui.AgentTree.AgentNode node)
|
void |
doSniff(java.lang.String agentName)
Given an agent name, sniff it. |
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 |
DoSnifferAction
public DoSnifferAction(jade.tools.sniffer.ActionProcessor actPro,
MainPanel mainPanel,
Sniffer mySniffer)
doAction
public void doAction(jade.gui.AgentTree.AgentNode node)
- Specified by:
doAction
in class jade.tools.sniffer.AgentAction
doSniff
public void doSniff(java.lang.String agentName)
- Given an agent name, sniff it.
- Parameters:
agentName
- - the String name of the agent.
Note, this was originally buried in doAction, but we want the ability to
sniff with just a name.