|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.systemsbiology.gaggle.boss.GuiBoss
public final class GuiBoss
| Field Summary | |
|---|---|
protected javax.swing.JFrame |
frame
|
protected java.util.HashMap |
gooseListeningMap
|
protected java.util.HashMap<java.lang.String,Goose> |
gooseMap
|
protected javax.swing.JTable |
gooseTable
|
protected GaggleBossTableModel |
gooseTableModel
|
protected NewNameHelper |
nameHelper
|
protected javax.swing.JScrollPane |
scrollPane
|
protected javax.swing.JTextField |
searchBox
|
protected java.lang.String |
serviceName
|
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Constructor Summary | |
|---|---|
GuiBoss()
|
|
GuiBoss(java.lang.String[] args)
|
|
| Method Summary | |
|---|---|
java.lang.String |
actuallyRenameGoose(java.lang.String oldName,
java.lang.String proposedName)
|
void |
addNewGoose(java.lang.String name,
Goose goose)
|
void |
askForShow(java.lang.String gooseName)
|
void |
broadcastCluster(java.lang.String sourceGoose,
java.lang.String targetGoose,
Cluster cluster)
Tells the boss to broadcast a Cluster object. |
void |
broadcastMatrix(java.lang.String sourceGoose,
java.lang.String targetGoose,
DataMatrix matrix)
Tells the boss to broadcast a DataMatrix object. |
void |
broadcastNamelist(java.lang.String sourceGoose,
java.lang.String targetGoose,
Namelist nameList)
Tells the boss to broadcast a Namelist object. |
void |
broadcastNetwork(java.lang.String sourceGoose,
java.lang.String targetGoose,
Network network)
Tells the boss to broadcast a Network object. |
protected void |
broadcastToPlugins(java.lang.String[] names)
|
void |
broadcastTuple(java.lang.String sourceGoose,
java.lang.String targetGoose,
GaggleTuple gaggleTuple)
Tells the boss to broadcast a GaggleTuple object. |
void |
cleanUpOnExit(java.lang.String appName)
|
protected javax.swing.JPanel |
createButtonsInPanel()
|
protected java.lang.String |
createFrameTitle()
|
protected javax.swing.JPanel |
createGaggleControlPanel()
|
protected javax.swing.JPanel |
createGui()
|
BossConfig |
getConfig()
|
javax.swing.JFrame |
getFrame()
|
Goose[] |
getGeese()
|
Goose |
getGoose(java.lang.String name)
|
java.util.HashMap |
getGooseMap()
|
java.lang.String[] |
getGooseNames()
|
protected java.lang.String[] |
getListeningGeese()
|
NewNameHelper |
getNameHelper()
|
void |
hide(java.lang.String targetGoose)
Tells the boss to hide the specified goose. |
boolean |
isListening(java.lang.String gooseName)
|
protected boolean |
listening(java.lang.String gooseName)
|
GaggleBossPlugin |
loadPlugin(java.lang.String className,
GuiBoss gaggleBoss)
|
static void |
main(java.lang.String[] args)
|
void |
refresh()
|
void |
refresh(boolean resetTableColumnWidths)
|
java.lang.String |
register(DeafGoose deafGoose)
|
java.lang.String |
register(Goose goose)
Adds a new goose to the Gaggle |
java.lang.String |
renameGoose(java.lang.String oldName,
java.lang.String proposedName)
|
protected void |
setSelectionCount(java.lang.String gooseName,
int count)
|
protected void |
setTableColumnWidths()
|
void |
show(java.lang.String gooseName)
Tells the boss to show the specified goose. |
void |
terminate(java.lang.String gooseName)
Terminates the specified goose. |
void |
toggleVisibility()
|
void |
unregister(java.lang.String gooseName)
Unregisters a goose |
void |
unregister(java.lang.String gooseName,
boolean doUpdate)
|
protected void |
unregisterIdleGeeseAndUpdate()
Check to see if we can communicate with all currently registered geese and unregister any that do not respond, then update all geese with the newly derived list of active geese. |
void |
windowActivated(java.awt.event.WindowEvent event)
|
void |
windowClosed(java.awt.event.WindowEvent event)
|
void |
windowClosing(java.awt.event.WindowEvent event)
|
void |
windowDeactivated(java.awt.event.WindowEvent event)
|
void |
windowDeiconified(java.awt.event.WindowEvent event)
|
void |
windowGainedFocus(java.awt.event.WindowEvent event)
|
void |
windowIconified(java.awt.event.WindowEvent event)
|
void |
windowLostFocus(java.awt.event.WindowEvent event)
|
void |
windowOpened(java.awt.event.WindowEvent event)
|
void |
windowStateChanged(java.awt.event.WindowEvent e)
|
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
|---|
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
|---|
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
|---|
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected javax.swing.JFrame frame
protected javax.swing.JTable gooseTable
protected javax.swing.JScrollPane scrollPane
protected javax.swing.JTextField searchBox
protected GaggleBossTableModel gooseTableModel
protected java.lang.String serviceName
protected NewNameHelper nameHelper
protected java.util.HashMap<java.lang.String,Goose> gooseMap
protected java.util.HashMap gooseListeningMap
| Constructor Detail |
|---|
public GuiBoss()
throws java.rmi.RemoteException
java.rmi.RemoteException
public GuiBoss(java.lang.String[] args)
throws java.rmi.RemoteException
java.rmi.RemoteException| Method Detail |
|---|
public BossConfig getConfig()
public NewNameHelper getNameHelper()
getNameHelper in interface Bosspublic javax.swing.JFrame getFrame()
public void windowStateChanged(java.awt.event.WindowEvent e)
windowStateChanged in interface java.awt.event.WindowStateListener
public java.lang.String actuallyRenameGoose(java.lang.String oldName,
java.lang.String proposedName)
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String renameGoose(java.lang.String oldName,
java.lang.String proposedName)
renameGoose in interface Bossprotected void unregisterIdleGeeseAndUpdate()
protected java.lang.String createFrameTitle()
public java.lang.String register(Goose goose)
throws java.rmi.RemoteException
Boss
register in interface Bossgoose - The goose to be added
java.rmi.RemoteException - if RMI communication fails
public java.lang.String register(DeafGoose deafGoose)
throws java.rmi.RemoteException
register in interface BossdeafGoose - The DeafGoose
java.rmi.RemoteException - if RMI communication failspublic void unregister(java.lang.String gooseName)
unregister in interface BossgooseName - the name of the goose to unregister
public void unregister(java.lang.String gooseName,
boolean doUpdate)
public Goose[] getGeese()
public Goose getGoose(java.lang.String name)
public java.lang.String[] getGooseNames()
getGooseNames in interface Bosspublic java.util.HashMap getGooseMap()
protected void broadcastToPlugins(java.lang.String[] names)
public void broadcastNamelist(java.lang.String sourceGoose,
java.lang.String targetGoose,
Namelist nameList)
throws java.rmi.RemoteException
Boss
broadcastNamelist in interface BosssourceGoose - The name of the goose originating the broadcasttargetGoose - The name of the goose to receive the broadcast. If this is "boss",
all listening geese will receive the broadcast.nameList - The NameList object
java.rmi.RemoteException - if RMI communication fails
public void broadcastMatrix(java.lang.String sourceGoose,
java.lang.String targetGoose,
DataMatrix matrix)
throws java.rmi.RemoteException
Boss
broadcastMatrix in interface BosssourceGoose - The name of the goose originating the broadcasttargetGoose - The name of the goose to receive the broadcast. If this is "boss",
all listening geese will receive the broadcast.matrix - The DataMatrix object
java.rmi.RemoteException - if RMI communication fails
public void broadcastTuple(java.lang.String sourceGoose,
java.lang.String targetGoose,
GaggleTuple gaggleTuple)
Boss
broadcastTuple in interface BosssourceGoose - The name of the goose originating the broadcasttargetGoose - The name of the goose to receive the broadcast. If this is "boss",
all listening geese will receive the broadcast.gaggleTuple - the GaggleTuple object
public void broadcastCluster(java.lang.String sourceGoose,
java.lang.String targetGoose,
Cluster cluster)
Boss
broadcastCluster in interface BosssourceGoose - The name of the goose originating the broadcasttargetGoose - The name of the goose to receive the broadcast. If this is "boss",
all listening geese will receive the broadcast.cluster - the Cluster object
public void broadcastNetwork(java.lang.String sourceGoose,
java.lang.String targetGoose,
Network network)
Boss
broadcastNetwork in interface BosssourceGoose - The name of the goose originating the broadcasttargetGoose - The name of the goose to receive the broadcast. If this is "boss",
all listening geese will receive the broadcast.network - the Network object
public void cleanUpOnExit(java.lang.String appName)
throws java.rmi.RemoteException
java.rmi.RemoteException
public void hide(java.lang.String targetGoose)
throws java.rmi.RemoteException
Boss
hide in interface BosstargetGoose - The name of the goose to hide
java.rmi.RemoteException - if RMI communication fails
public void show(java.lang.String gooseName)
throws java.rmi.RemoteException
Boss
show in interface BossgooseName - The name of the goose to show
java.rmi.RemoteException - if RMI communication fails
public void askForShow(java.lang.String gooseName)
throws java.rmi.RemoteException
java.rmi.RemoteException
public void terminate(java.lang.String gooseName)
throws java.rmi.RemoteException
Boss
terminate in interface BossgooseName - The name of the goose to terminate
java.rmi.RemoteException - if RMI communication failspublic void toggleVisibility()
protected javax.swing.JPanel createGui()
protected javax.swing.JPanel createGaggleControlPanel()
protected javax.swing.JPanel createButtonsInPanel()
protected void setTableColumnWidths()
protected java.lang.String[] getListeningGeese()
protected boolean listening(java.lang.String gooseName)
protected void setSelectionCount(java.lang.String gooseName,
int count)
public void refresh()
public void refresh(boolean resetTableColumnWidths)
public void windowClosed(java.awt.event.WindowEvent event)
public void windowClosing(java.awt.event.WindowEvent event)
public void windowOpened(java.awt.event.WindowEvent event)
public void windowIconified(java.awt.event.WindowEvent event)
public void windowDeiconified(java.awt.event.WindowEvent event)
public void windowActivated(java.awt.event.WindowEvent event)
public void windowDeactivated(java.awt.event.WindowEvent event)
public void windowGainedFocus(java.awt.event.WindowEvent event)
public void windowLostFocus(java.awt.event.WindowEvent event)
public void addNewGoose(java.lang.String name,
Goose goose)
public boolean isListening(java.lang.String gooseName)
public GaggleBossPlugin loadPlugin(java.lang.String className,
GuiBoss gaggleBoss)
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||