org.severe.jripples.eig
Class JRipplesEIGEdge

java.lang.Object
  extended by org.severe.jripples.eig.JRipplesEIGEdge

public class JRipplesEIGEdge
extends java.lang.Object

JRipplesEIGEdge class represents a dependency (interoperation) between two nodes of the EIG (Evolving Interoperation Graph). It also serves as the container for the extra information that can be associated with this dependency like Incremental Change status (mark) and probability.

Author:
Maksym Petrenko
See Also:
JRipplesEIG, JRipplesEIGNode

Constructor Summary
JRipplesEIGEdge(JRipplesEIGNode fromNode, JRipplesEIGNode toNode)
          Constructor - creates an edge that represents a dependency between two nodes and sets edge's mark and probability to empty string.
 
Method Summary
 java.lang.Integer getCount()
          Returns number of times the edges appears in the code.
 JRipplesEIGNode getFromNode()
          Returns a JRipplesEIGNode, from which this dependency originates.
 java.lang.String getMark()
          Associates EIG mark with the edge during Incremental Change process.
 java.lang.String getProbability()
          Return probability value associated with the edge.
 JRipplesEIGNode getToNode()
          Returns a JRipplesEIGNode, to which which this dependency points.
 void setCount(java.lang.Integer count)
          Sets the number of times the edge appears in the code.
 void setMark(java.lang.String mark)
          Associates EIG mark with the edge during Incremental Change process.
 void setProbability(java.lang.String probability)
          associate probability value with the edge.
 java.lang.String toString()
          Returns string representation of the edge in the form of "fromNode O-------------------------> toNode".
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JRipplesEIGEdge

public JRipplesEIGEdge(JRipplesEIGNode fromNode,
                       JRipplesEIGNode toNode)
Constructor - creates an edge that represents a dependency between two nodes and sets edge's mark and probability to empty string.
( fromNode O-------------------------> toNode )
Please note that edges, created directly with the constructor, will not be handled in the EIG. To create a dependency that is handled by the EIG, use JRipplesEIG.addEdge(JRipplesEIGNode, JRipplesEIGNode) instead.

Parameters:
fromNode - a node, from which this dependency originates
toNode - a node, to which which this dependency points
Method Detail

getMark

public java.lang.String getMark()
Associates EIG mark with the edge during Incremental Change process.

Returns:
EIG mark of the edge if there is a one; null otherwise.
See Also:
setMark(String)

getProbability

public java.lang.String getProbability()
Return probability value associated with the edge. Probabilities can be evaluated through different software metrics during Incremental Change process.

Returns:
probability, associated with the edge if there is a one; null otherwise.
See Also:
setProbability(String)

setMark

public void setMark(java.lang.String mark)
Associates EIG mark with the edge during Incremental Change process.

Parameters:
mark - EIG mark to be associated with this edge
See Also:
getMark()

setProbability

public void setProbability(java.lang.String probability)
associate probability value with the edge. Probabilities can be evaluated through different software metrics during Incremental Change process.

Parameters:
probability - probability to be associated with this edge
See Also:
getProbability()

getFromNode

public JRipplesEIGNode getFromNode()
Returns a JRipplesEIGNode, from which this dependency originates.

Returns:
a JRipplesEIGNode, from which this dependency originates

getToNode

public JRipplesEIGNode getToNode()
Returns a JRipplesEIGNode, to which which this dependency points.

Returns:
a JRipplesEIGNode, to which which this dependency points

getCount

public java.lang.Integer getCount()
Returns number of times the edges appears in the code.

Returns:
number of times the edges appears in the code

setCount

public void setCount(java.lang.Integer count)
Sets the number of times the edge appears in the code. Typically used by parsers.

Parameters:
count - number of times the edges appears in the code

toString

public java.lang.String toString()
Returns string representation of the edge in the form of "fromNode O-------------------------> toNode".

Overrides:
toString in class java.lang.Object
Returns:
string representation of the edge in the form of "fromNode O-------------------------> toNode".