prioritizer
Class Pairwise.Graph.Node

java.lang.Object
  extended byprioritizer.Pairwise.Graph.Node
Enclosing class:
Pairwise.Graph

class Pairwise.Graph.Node
extends java.lang.Object

Defines a node in the graph


Field Summary
private  java.util.LinkedList arcs
           
private  Requirement req
           
private  boolean visited
           
 
Constructor Summary
Pairwise.Graph.Node(Requirement req)
          Constructs a node corresponding to the specified requirement
 
Method Summary
 void addArc(Pairwise.Graph.Arc arc)
          Adds an outgoing arc from the node
 Pairwise.Graph.Arc getArcTo(Pairwise.Graph.Node node)
          Gets the arc from this node to the specified node
 Requirement getRequirement()
          Get this node's associated requirement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

req

private Requirement req

arcs

private java.util.LinkedList arcs

visited

private boolean visited
Constructor Detail

Pairwise.Graph.Node

public Pairwise.Graph.Node(Requirement req)
Constructs a node corresponding to the specified requirement

Parameters:
req - the requirement to create a node for
Method Detail

addArc

public void addArc(Pairwise.Graph.Arc arc)
Adds an outgoing arc from the node

Parameters:
arc - the arc to add

getRequirement

public Requirement getRequirement()
Get this node's associated requirement

Returns:
the requirement associated with this node

getArcTo

public Pairwise.Graph.Arc getArcTo(Pairwise.Graph.Node node)
Gets the arc from this node to the specified node

Parameters:
node - the node to find the arc to
Returns:
the arc if it is found, null if not