JavaDoc


JbEdge

org.dbreplicator.graph
Class JbEdge

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

public class JbEdge
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
 JbVertex targetVertex
          The vertex where the edge leads to.
 
Constructor Summary
JbEdge(JbVertex target, int weightValue)
           
JbEdge(JbVertex 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 JbVertex targetVertex
The vertex where the edge leads to.

Constructor Detail

JbEdge

public JbEdge(JbVertex 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.

Parameters:
target - The JbVertex instance where this edge leads to.
weightValue - The integer weight of this edge

JbEdge

public JbEdge(JbVertex 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