static class LinkedDirectedGraph.AnnotatedLinkedDirectedGraphEdge<N,E> extends LinkedDirectedGraph.LinkedDirectedGraphEdge<N,E>
| Modifier and Type | Field and Description |
|---|---|
protected Annotation |
annotation |
value| Constructor and Description |
|---|
AnnotatedLinkedDirectedGraphEdge(DiGraph.DiGraphNode<N,E> sourceNode,
E edgeValue,
DiGraph.DiGraphNode<N,E> destNode)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<A extends Annotation> |
getAnnotation()
Retrieves a piece of information that has been annotated.
|
void |
setAnnotation(Annotation data)
Annotates a piece of information to the object.
|
getColor, getDestination, getLabel, getNode1Id, getNode2Id, getNodeA, getNodeB, getSource, getValue, setDestination, setSource, toStringprotected Annotation annotation
AnnotatedLinkedDirectedGraphEdge(DiGraph.DiGraphNode<N,E> sourceNode, E edgeValue, DiGraph.DiGraphNode<N,E> destNode)
edgeValue - Edge Value.public <A extends Annotation> A getAnnotation()
AnnotatablegetAnnotation in interface AnnotatablegetAnnotation in class LinkedDirectedGraph.LinkedDirectedGraphEdge<N,E>null if the object has not
been annotated.public void setAnnotation(Annotation data)
AnnotatablesetAnnotation in interface AnnotatablesetAnnotation in class LinkedDirectedGraph.LinkedDirectedGraphEdge<N,E>data - Information to be annotated.