net.walend.measured
Class GENegativeWeightCycleException

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.GENegativeWeightCycleException
All Implemented Interfaces:
java.io.Serializable

public class GENegativeWeightCycleException
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  GEPath alternatePath
           
private  GEPath 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
GENegativeWeightCycleException(GEPath bestPath, int bestPathCost, GEPath 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 GEPath bestPath

alternatePath

private GEPath alternatePath
Constructor Detail

GENegativeWeightCycleException

public GENegativeWeightCycleException(GEPath bestPath,
                                      int bestPathCost,
                                      GEPath 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