JavaDoc


Edge

org.dbreplicator.graph
Class Edge

java.lang.Object
  extended by org.dbreplicator.graph.Edge

public class Edge
extends java.lang.Object

Instances of this class act as edges in the graph. Instances of this class always "hang" from a JbListElement instance. They have a int weight and a link to the vertex object to which they lead. Null target vertices are not supported.


Field Summary
 Vertex targetVertex
           
 
Constructor Summary
Edge(Vertex target, int weightValue)
           
Edge(Vertex target, int weightValue, java.util.ArrayList listOfAttributes)
          An edge object leading from one vertex to another.
 
Method Summary
 void addAttribute(java.lang.String[] attributes)
           
 java.util.ArrayList getAttributesList()
           
 int whatIsWeight()
          Return the weight of the edge.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

targetVertex

public Vertex targetVertex
Constructor Detail

Edge

public Edge(Vertex target,
            int weightValue,
            java.util.ArrayList listOfAttributes)
An edge object leading from one vertex to another. Edges are unique, there can only be one edge from vertex A to vertex B. The weight cannot be changed after the object is constructed.


Edge

public Edge(Vertex target,
            int weightValue)
Method Detail

whatIsWeight

public int whatIsWeight()
Return the weight of the edge.


addAttribute

public void addAttribute(java.lang.String[] attributes)

getAttributesList

public java.util.ArrayList getAttributesList()



Powered by Drupal - Theme by Danger4k