dk.brics.xact.analysis.flowgraph
Class Edge<Nodetype,Edgetype>

java.lang.Object
  extended by dk.brics.xact.analysis.flowgraph.Edge<Nodetype,Edgetype>

public class Edge<Nodetype,Edgetype>
extends Object

Flow graph edge.


Constructor Summary
Edge(Nodetype from, Nodetype to, Edgetype data)
          Constructs an edge.
 
Method Summary
 boolean equals(Object other)
          Checks whether the given edge is equal to this edge.
 Edgetype getData()
          Returns the edge data.
 Nodetype getFrom()
          Returns the source node.
 Nodetype getTo()
          Returns the target node.
 int hashCode()
          Returns a hash code for this edge.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Edge

public Edge(Nodetype from,
            Nodetype to,
            Edgetype data)
Constructs an edge.

Method Detail

equals

public boolean equals(Object other)
Checks whether the given edge is equal to this edge.

Overrides:
equals in class Object

getData

public Edgetype getData()
Returns the edge data.


getFrom

public Nodetype getFrom()
Returns the source node.


getTo

public Nodetype getTo()
Returns the target node.


hashCode

public int hashCode()
Returns a hash code for this edge.

Overrides:
hashCode in class Object


Copyright © 2005-2011 Aarhus University.