Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.port80.graph.dot.impl
Class DotPath  view DotPath download DotPath.java

java.lang.Object
  extended bycom.port80.graph.dot.impl.DotBoxList
      extended bycom.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.


Field Summary
private static int DEFAULT_CAPACITY
           
(package private)  VirtualPort fEnd
           
private  VirtualEdge fOriginal
           
(package private)  VirtualPort fStart
           
private static java.lang.String NAME
           
 
Fields inherited from class com.port80.graph.dot.impl.DotBoxList
fBoxes, fCapacity, fSize
 
Constructor Summary
DotPath()
           
DotPath(int n)
           
 
Method Summary
 void addInterRank(DotBox box)
           
private  double averageSlope(VirtualVertex v)
          Find the average slope of all in and out edges at 'v'.
 DotPath beginPath(VirtualEdge e)
          Initialize tail end.
 void completeRegularPath(VirtualEdge firste, VirtualEdge laste)
           
 DotPath endPath(VirtualEdge e)
           
 VirtualEdge getOriginal()
           
 void reset()
           
 java.lang.String toGeneralPath()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class com.port80.graph.dot.impl.DotBoxList
add, add, get, getLast, grow, removeLast, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

DotPath

public DotPath()

DotPath

public DotPath(int n)
Method Detail

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)