java.lang.Object
com.port80.graph.dot.impl.DotBoxList
com.port80.graph.dot.impl.DotPath
- public class DotPath
- extends DotBoxList
Data structure for routing information.
. Boxes in the path are not pre-allocated and are added by
reference.
NAME
private static final java.lang.String NAME
- See Also:
- Constant Field Values
DEFAULT_CAPACITY
private static final int DEFAULT_CAPACITY
- See Also:
- Constant Field Values
fOriginal
private VirtualEdge fOriginal
fStart
VirtualPort fStart
fEnd
VirtualPort fEnd
DotPath
public DotPath()
DotPath
public DotPath(int n)
reset
public void reset()
- Overrides:
reset in class DotBoxList
getOriginal
public VirtualEdge getOriginal()
addInterRank
public void addInterRank(DotBox box)
beginPath
public DotPath beginPath(VirtualEdge e)
- Initialize tail end.
endPath
public DotPath endPath(VirtualEdge e)
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).
toGeneralPath
public java.lang.String toGeneralPath()
averageSlope
private double averageSlope(VirtualVertex v)
- Find the average slope of all in and out edges at 'v'.
completeRegularPath
public void completeRegularPath(VirtualEdge firste,
VirtualEdge laste)