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
Fields inherited from class java.lang.Exception |
|
Fields inherited from class java.lang.Throwable |
|
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 |
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
NegativeWeightCycleException
public NegativeWeightCycleException(int bestPathCost,
int alternatePathCost,
java.lang.Object toNode)
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