|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fhg.igd.earth.observe.trace.AtlasConnector
Provides a GUI for the AgentTracer which traces the contact addresses
of agents in a certain watch list.
This Agent Tracer Gui (AtlasConnector
) is used to display
the tracked agents together with their current contact address.
It's possible to delete entries from the watch list and to set the update
time of the agent tracer daemon.
AgentTracer
Field Summary | |
protected boolean |
addAgentsAutomatically_
|
protected JButton |
addButton_
|
protected JMenuItem |
addItem_
|
protected int |
agentNr_
|
protected Set |
agentsToAdd_
|
protected AgentTracer |
agentTracer_
|
static AtlasStimulator |
atlasStimulator_
|
JFrame |
commandFrame_
|
SortedMap |
contactAddresses_
|
protected JMenuItem |
deleteItem_
|
byte[][] |
entries_
|
private Object |
guiEventLock_
|
protected String |
namePrefix_
|
private Object |
notifyLock_
|
protected JPopupMenu |
popupMenuContext_
|
protected JPopupMenu |
popupMenuGlobal_
|
protected JMenuItem |
refreshItem_
|
private boolean |
running_
|
protected JScrollPane |
scrollPane_
|
protected JMenuItem |
setUpdateTimeItem_
|
protected JMenuItem |
setUpdateTimeItem2_
|
JTable |
table_
|
private Object |
updateLock_
|
private Object |
waitLock_
|
protected String |
windowName_
|
Constructor Summary | |
AtlasConnector()
Default constructor to create an instance of this class. |
Method Summary | |
void |
actionPerformed(ActionEvent a)
Catches action events from setUpdateTimeItem_ , setUpdateTimeItem2_ ,
refreshItem_ and deleteItem_ . |
void |
addAgentsAutomatically(boolean flag)
|
private void |
initGUI()
Initialize the GUI with a table to display the database entries. |
static void |
main(String[] argv)
Starts the GUI from command line. |
void |
mouseClicked(MouseEvent e)
Catches mouse events within table_ and
scrollPain_ used to open an close a context menu. |
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
notifiedOf(Object obj)
This method is called from the proxy's or server's event reflector and informs the class of changes of their database's state. |
void |
run()
Searches the AgentTracer locally and opens a GUI. |
void |
setStimulus(AtlasStimulator as)
Set the ".stimulus()" method class |
private void |
updateGUI()
Updates the GUI by requesting the current agent tracer data. |
void |
windowActivated(WindowEvent e)
|
void |
windowClosed(WindowEvent e)
Called after main window has been closed. |
void |
windowClosing(WindowEvent e)
Disposes the main window. |
void |
windowDeactivated(WindowEvent e)
|
void |
windowDeiconified(WindowEvent e)
|
void |
windowIconified(WindowEvent e)
|
void |
windowOpened(WindowEvent e)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public transient JFrame commandFrame_
protected transient JScrollPane scrollPane_
public transient JTable table_
protected transient JButton addButton_
protected transient JPopupMenu popupMenuGlobal_
protected transient JMenuItem setUpdateTimeItem2_
protected transient JPopupMenu popupMenuContext_
protected transient JMenuItem setUpdateTimeItem_
protected transient JMenuItem refreshItem_
protected transient JMenuItem deleteItem_
protected transient JMenuItem addItem_
protected transient AgentTracer agentTracer_
public transient byte[][] entries_
public transient SortedMap contactAddresses_
protected transient String namePrefix_
protected transient String windowName_
private transient Object guiEventLock_
private transient Object updateLock_
private transient Object notifyLock_
private transient Object waitLock_
private transient boolean running_
public static AtlasStimulator atlasStimulator_
protected transient boolean addAgentsAutomatically_
protected transient Set agentsToAdd_
protected transient int agentNr_
Constructor Detail |
public AtlasConnector()
Method Detail |
public void run()
run
in interface Runnable
private void initGUI()
private void updateGUI()
public void setStimulus(AtlasStimulator as)
public void actionPerformed(ActionEvent a)
setUpdateTimeItem_
, setUpdateTimeItem2_
,
refreshItem_
and deleteItem_
.
Used to handle the buttons and context menu items.
actionPerformed
in interface ActionListener
a
- The action event.public void mouseClicked(MouseEvent e)
table_
and
scrollPain_
used to open an close a context menu.
mouseClicked
in interface MouseListener
e
- The mouse event.public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void windowClosed(WindowEvent e)
windowClosed
in interface WindowListener
e
- The window event.public void windowClosing(WindowEvent e)
windowClosing
in interface WindowListener
e
- The window event.public void windowActivated(WindowEvent e)
windowActivated
in interface WindowListener
public void windowDeactivated(WindowEvent e)
windowDeactivated
in interface WindowListener
public void windowDeiconified(WindowEvent e)
windowDeiconified
in interface WindowListener
public void windowIconified(WindowEvent e)
windowIconified
in interface WindowListener
public void windowOpened(WindowEvent e)
windowOpened
in interface WindowListener
public void addAgentsAutomatically(boolean flag)
public void notifiedOf(Object obj)
notifiedOf
in interface Listener
obj
- The object describing the action.public static void main(String[] argv)
argv
- The command line parameters.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |