|
|||||||||
| Home >> All >> com >> port80 >> graph >> dot >> [ impl overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.port80.graph.dot.impl
Class VirtualChain

java.lang.Objectcom.port80.graph.dot.impl.VirtualChain
- public class VirtualChain
- extends java.lang.Object
A chain of VirtualEdge that should be routed together. Typically represents an IEdge or a portion an an IEdge (eg. a stub or a bus). The tail of a chain is the top-most VirtualVertex. The head of a chain is the bottom-most VirtualVertex.
| Nested Class Summary | |
static class |
VirtualChain.ChainTypeComparator
Sort edge in drawing order. |
static class |
VirtualChain.PTPSlackComparator
Comparator based on slack (length/direct distance) of the chain (Larger first). |
| Field Summary | |
private static boolean |
DEBUG
|
VirtualEdge |
fChainTail
|
VirtualVertex |
fHead
|
private float |
fLength
Acutal chain length by summing length of all segments. |
private int |
fSize
|
private float |
fSlack
Slack = chain length/minimium distance between chain tail and head. |
VirtualVertex |
fTail
|
private static java.lang.String |
NAME
|
| Constructor Summary | |
(package private) |
VirtualChain(VirtualEdge e)
|
| Method Summary | |
float |
getLength()
|
float |
getSlack()
|
private VirtualVertex |
initLength()
Calculate chain length base on current coordinates. |
int |
size()
|
java.lang.String |
toDump()
|
java.lang.String |
toString()
Convert this Object to a human-readable String. |
float |
updateLength()
|
| 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
DEBUG
private static final boolean DEBUG
- See Also:
- Constant Field Values
fTail
public VirtualVertex fTail
fHead
public VirtualVertex fHead
fChainTail
public VirtualEdge fChainTail
fSize
private int fSize
fLength
private float fLength
- Acutal chain length by summing length of all segments.
fSlack
private float fSlack
- Slack = chain length/minimium distance between chain tail and head.
| Constructor Detail |
VirtualChain
VirtualChain(VirtualEdge e)
| Method Detail |
size
public int size()
getLength
public float getLength()
getSlack
public float getSlack()
updateLength
public float updateLength()
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()).
toDump
public java.lang.String toDump()
initLength
private VirtualVertex initLength()
- Calculate chain length base on current coordinates.
|
|||||||||
| Home >> All >> com >> port80 >> graph >> dot >> [ impl overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.port80.graph.dot.impl.VirtualChain