org.systemsbiology.gaggle.geese.lister
Class GaggledLister

java.lang.Object
  extended by org.systemsbiology.gaggle.geese.lister.GaggledLister
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, Goose

public class GaggledLister
extends java.lang.Object
implements Goose, java.io.Serializable

See Also:
Serialized Form

Nested Class Summary
protected  class GaggledLister.BroadcastSelectionAction
           
 
Constructor Summary
GaggledLister()
           
GaggledLister(javax.swing.JFrame appFrame, java.lang.String name)
           
 
Method Summary
 void clearSelections()
           
 void connectToGaggle()
           
 void doBroadcastList()
           
 void doExit()
          Tells the goose to exit (terminate).
 void doHide()
          Tells the goose to hide itself
 void doShow()
          Tells the goose to show itself
 java.lang.String getName()
          Returns the name of the goose.
 int getSelectionCount()
           
 java.util.HashMap getState()
           
 void handleCluster(java.lang.String source, Cluster cluster)
          Called when the goose receives a Cluster object
 void handleMatrix(java.lang.String source, DataMatrix Matrix)
          Called when the goose receives a DataMatrix object
 void handleNameList(java.lang.String source, Namelist nameList)
          Called when the goose receives a NameList object
 void handleNetwork(java.lang.String source, Network network)
          Called when the goose receives a Network object
 void handleTuple(java.lang.String source, GaggleTuple gaggleTuple)
          Called when the goose receives a GaggleTuple object
static void main(java.lang.String[] args)
           
 void saveState(java.lang.String servletUri, java.lang.String projectPath)
           
 void setGeometry(int x, int y, int width, int height)
           
 void setName(java.lang.String newValue)
          Sets the name of (renames) the goose.
 void update(java.lang.String[] gooseNames)
          Provides the goose with an updated list of the names of active geese.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GaggledLister

public GaggledLister()

GaggledLister

public GaggledLister(javax.swing.JFrame appFrame,
                     java.lang.String name)
Method Detail

handleNameList

public void handleNameList(java.lang.String source,
                           Namelist nameList)
                    throws java.rmi.RemoteException
Description copied from interface: Goose
Called when the goose receives a NameList object

Specified by:
handleNameList in interface Goose
Parameters:
source - Optional string indicating name of source goose
nameList - The NameList object
Throws:
java.rmi.RemoteException - if RMI communication fails

handleMatrix

public void handleMatrix(java.lang.String source,
                         DataMatrix Matrix)
Description copied from interface: Goose
Called when the goose receives a DataMatrix object

Specified by:
handleMatrix in interface Goose
Parameters:
source - Optional string indicating name of source goose
Matrix - The DataMatrix object

handleTuple

public void handleTuple(java.lang.String source,
                        GaggleTuple gaggleTuple)
Description copied from interface: Goose
Called when the goose receives a GaggleTuple object

Specified by:
handleTuple in interface Goose
Parameters:
source - Optional string indicating name of source goose
gaggleTuple - The GaggleTuple object

handleCluster

public void handleCluster(java.lang.String source,
                          Cluster cluster)
Description copied from interface: Goose
Called when the goose receives a Cluster object

Specified by:
handleCluster in interface Goose
Parameters:
source - Optional string indicating name of source goose
cluster - The Cluster object

handleNetwork

public void handleNetwork(java.lang.String source,
                          Network network)
Description copied from interface: Goose
Called when the goose receives a Network object

Specified by:
handleNetwork in interface Goose
Parameters:
source - Optional string indicating name of source goose
network - The Network object

getName

public java.lang.String getName()
Description copied from interface: Goose
Returns the name of the goose.

Specified by:
getName in interface Goose
Returns:
the name of the goose

getSelectionCount

public int getSelectionCount()

setName

public void setName(java.lang.String newValue)
Description copied from interface: Goose
Sets the name of (renames) the goose.

Specified by:
setName in interface Goose
Parameters:
newValue - The new name of the goose

doHide

public void doHide()
Description copied from interface: Goose
Tells the goose to hide itself

Specified by:
doHide in interface Goose

doShow

public void doShow()
Description copied from interface: Goose
Tells the goose to show itself

Specified by:
doShow in interface Goose

setGeometry

public void setGeometry(int x,
                        int y,
                        int width,
                        int height)

doExit

public void doExit()
Description copied from interface: Goose
Tells the goose to exit (terminate).

Specified by:
doExit in interface Goose

connectToGaggle

public void connectToGaggle()
                     throws java.lang.Exception
Throws:
java.lang.Exception

clearSelections

public void clearSelections()

getState

public java.util.HashMap getState()

saveState

public void saveState(java.lang.String servletUri,
                      java.lang.String projectPath)

doBroadcastList

public void doBroadcastList()
Specified by:
doBroadcastList in interface Goose

update

public void update(java.lang.String[] gooseNames)
Description copied from interface: Goose
Provides the goose with an updated list of the names of active geese. This list includes the name of the goose receiving the list.

Specified by:
update in interface Goose
Parameters:
gooseNames - the names of the currently active geese
See Also:
MiscUtil.updateGooseChooser(javax.swing.JComboBox gooseChooser, String callingGoose, String[] allGeese);

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception