net.walend.measured
Class NegativeWeightCycleException

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
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CENegativeWeightCycleException, GENegativeWeightCycleException

public abstract class NegativeWeightCycleException
extends MeasuredPathException
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  int alternatePathCost
           
private  int bestPathCost
           
protected static java.lang.String DEFAULT1
           
protected static java.lang.String DEFAULT2
           
protected static java.lang.String DEFAULT3
           
protected static java.lang.String DEFAULT4
           
protected static java.lang.String DEFAULT5
           
private  java.lang.Object toNode
           
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
NegativeWeightCycleException(int bestPathCost, int alternatePathCost, java.lang.Object toNode)
           
 
Method Summary
abstract  Path getAlternatePath()
           
 int getAlternatePathCost()
           
abstract  Path getBestPath()
           
 java.lang.String getMessage()
           
 int 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

bestPathCost

private int bestPathCost

alternatePathCost

private int alternatePathCost

toNode

private java.lang.Object toNode

DEFAULT1

protected static final java.lang.String DEFAULT1
See Also:
Constant Field Values

DEFAULT2

protected static final java.lang.String DEFAULT2
See Also:
Constant Field Values

DEFAULT3

protected static final java.lang.String DEFAULT3
See Also:
Constant Field Values

DEFAULT4

protected static final java.lang.String DEFAULT4
See Also:
Constant Field Values

DEFAULT5

protected static final java.lang.String DEFAULT5
See Also:
Constant Field Values
Constructor Detail

NegativeWeightCycleException

public NegativeWeightCycleException(int bestPathCost,
                                    int alternatePathCost,
                                    java.lang.Object toNode)
Method Detail

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getPathBestCost

public int getPathBestCost()

getAlternatePathCost

public int getAlternatePathCost()

getBestPath

public abstract Path getBestPath()

getAlternatePath

public abstract Path getAlternatePath()


Copyright (c) 2001, 2002, David Walend