|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectDefaultEdge
org.deri.iris.graph.LabeledEdge<V,L>
public class LabeledEdge<V,L>
This class represents a simple implementation of a labeled edge.
This class was only made, because the Graph class prohibits adding of two equal edges.
NOTE: do not use this class outside of this project! We don't know whether to keep this class in the api!
$Id: LabeledEdge.java,v 1.2 2007-10-09 20:23:12 bazbishop237 Exp $
| Constructor Summary | |
|---|---|
LabeledEdge(V source,
V target)
A constructor which sets the source, taget and the label. |
|
LabeledEdge(V source,
V target,
L label)
A constructor which sets the source, taget and the label. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
L |
getLabel()
Returns the actual label of the edge. |
V |
getSource()
|
V |
getTarget()
|
int |
hashCode()
|
boolean |
hasLabel()
Returns whether there is actually a label set. |
String |
toString()
Returns a simple string representation of this labeled directed edge. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LabeledEdge(V source,
V target)
source - the source vertextarget - the target vertex
NullPointerException - if the source or the tages are
null
public LabeledEdge(V source,
V target,
L label)
source - the source vertextarget - the target vertexlabel - the label to set
NullPointerException - if the source or the tages are
null| Method Detail |
|---|
public V getSource()
public V getTarget()
public L getLabel()
public boolean hasLabel()
public boolean equals(Object o)
public int hashCode()
public String toString()
Returns a simple string representation of this labeled directed edge. The subject of the stringrepresentation is to change.
An example String could be: source->(label)->target.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||