ucar.unidata.view.sounding
Class CellNetwork

java.lang.Object
  extended by ucar.unidata.view.sounding.CellNetwork

public final class CellNetwork
extends Object

A network of ComputeCells. This class provides support for computational networks of ComputeCells that perform their work more efficiently than a naive network.

This class is thread-compatible but not thread-safe. Clients should synchronize access to an instance of this class when appropriate.

Version:
$Revision: 1.7 $ $Date: 2005/05/13 18:33:25 $
Author:
Steven R. Emmerson

Constructor Summary
CellNetwork()
          Constructs from nothing.
 
Method Summary
 void add(ComputeCell cell)
          Adds a cell.
 void configure()
          Configures the network.
 void remove(ComputeCell cell)
          Removes a cell.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellNetwork

public CellNetwork()
Constructs from nothing.

Method Detail

add

public void add(ComputeCell cell)
Adds a cell.

Parameters:
cell - The cell to be added to this network.

remove

public void remove(ComputeCell cell)
Removes a cell.

Parameters:
cell - The cell to be removed from this network.

configure

public void configure()
               throws VisADException,
                      RemoteException
Configures the network. The network is analyzed for dependencies and the input data references of the individual cells are appropriately adjusted.

Throws:
CellCycleException - if the directed graph of dependencies of the cells contains a cycle.
VisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.