ucar.unidata.view.sounding
Class CellCycleException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by ucar.unidata.view.sounding.CellCycleException
All Implemented Interfaces:
Serializable

public final class CellCycleException
extends RuntimeException

The exception thrown when a cycle is dectected in directed graph of ComputeCells.

Version:
$Revision: 1.5 $ $Date: 2005/05/13 18:33:25 $
Author:
Steven R. Emmerson
See Also:
Serialized Form

Constructor Summary
CellCycleException()
          Constructs from nothing.
 
Method Summary
 ComputeCell getComputeCell()
          Returns the ComputeCell at which a cycle was detected.
 String getMessage()
          Returns the message associated with this instance.
 void setAncestor(DataReference cell)
          Sets the ancestor data cell.
 void setChild(DataReference cell)
          Sets the child data reference.
 void setFound(ComputeCell cell)
          Sets the output cell that caused the cycle.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CellCycleException

public CellCycleException()
Constructs from nothing.

Method Detail

setAncestor

public void setAncestor(DataReference cell)
Sets the ancestor data cell.

Parameters:
cell - The ancestor cell.

setChild

public void setChild(DataReference cell)
Sets the child data reference.

Parameters:
cell - The child cell.

setFound

public void setFound(ComputeCell cell)
Sets the output cell that caused the cycle.

Parameters:
cell - The output cell that caused the cycle.

getMessage

public String getMessage()
Returns the message associated with this instance.

Overrides:
getMessage in class Throwable
Returns:
This instances message.

getComputeCell

public ComputeCell getComputeCell()
Returns the ComputeCell at which a cycle was detected.

Returns:
The ComputeCell iat which a cycle was detected.