net.walend.measured
Class CENegativeWeightCycleException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--net.walend.digraph.DigraphException
                    |
                    +--net.walend.digraph.path.PathException
                          |
                          +--net.walend.measured.MeasuredPathException
                                |
                                +--net.walend.measured.NegativeWeightCycleException
                                      |
                                      +--net.walend.measured.CENegativeWeightCycleException
All Implemented Interfaces:
java.io.Serializable

public class CENegativeWeightCycleException
extends NegativeWeightCycleException
implements java.io.Serializable

An exception thrown by the Bellman-Ford test.

Author:
David Walend dfw1@cornell.edu
See Also:
Serialized Form

Field Summary
private  CEPath alternatePath
           
private  CEPath bestPath
           
 
Fields inherited from class net.walend.measured.NegativeWeightCycleException
DEFAULT1, DEFAULT2, DEFAULT3, DEFAULT4, DEFAULT5
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
CENegativeWeightCycleException(CEPath bestPath, int bestPathCost, CEPath alternatePath, int alternatePathCost, java.lang.Object toNode)
           
 
Method Summary
 Path getAlternatePath()
           
 Path getBestPath()
           
 
Methods inherited from class net.walend.measured.NegativeWeightCycleException
getAlternatePathCost, getMessage, getPathBestCost
 
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
 

Field Detail

bestPath

private CEPath bestPath

alternatePath

private CEPath alternatePath
Constructor Detail

CENegativeWeightCycleException

public CENegativeWeightCycleException(CEPath bestPath,
                                      int bestPathCost,
                                      CEPath alternatePath,
                                      int alternatePathCost,
                                      java.lang.Object toNode)
Method Detail

getBestPath

public Path getBestPath()
Specified by:
getBestPath in class NegativeWeightCycleException

getAlternatePath

public Path getAlternatePath()
Specified by:
getAlternatePath in class NegativeWeightCycleException


Copyright (c) 2001, 2002, David Walend