org.apache.tuscany.sca.databinding.impl
Class DirectedGraph.Edge

java.lang.Object
  extended by org.apache.tuscany.sca.databinding.impl.DirectedGraph.Edge
Enclosing class:
DirectedGraph<V,E>

public final class DirectedGraph.Edge
extends java.lang.Object

An Edge connects two vertices in one direction


Constructor Summary
DirectedGraph.Edge(DirectedGraph.Vertex source, DirectedGraph.Vertex target, E value, int weight, boolean pub)
           
 
Method Summary
 DirectedGraph.Vertex getSourceVertex()
           
 DirectedGraph.Vertex getTargetVertex()
           
 E getValue()
           
 int getWeight()
           
 boolean isPublic()
           
 void setPublic(boolean pub)
           
 void setSourceVertex(DirectedGraph.Vertex sourceVertex)
           
 void setTargetVertex(DirectedGraph.Vertex vertex)
           
 void setValue(E value)
           
 void setWeight(int weight)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DirectedGraph.Edge

public DirectedGraph.Edge(DirectedGraph.Vertex source,
                          DirectedGraph.Vertex target,
                          E value,
                          int weight,
                          boolean pub)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getValue

public E getValue()

setValue

public void setValue(E value)

getTargetVertex

public DirectedGraph.Vertex getTargetVertex()

setTargetVertex

public void setTargetVertex(DirectedGraph.Vertex vertex)

getWeight

public int getWeight()

setWeight

public void setWeight(int weight)

getSourceVertex

public DirectedGraph.Vertex getSourceVertex()

setSourceVertex

public void setSourceVertex(DirectedGraph.Vertex sourceVertex)

isPublic

public boolean isPublic()

setPublic

public void setPublic(boolean pub)