edu.neu.ccs.demeter.aplib
Class Traversal.NodeSet

java.lang.Object
  |
  +--edu.neu.ccs.demeter.aplib.Traversal.NodeSet
Direct Known Subclasses:
TraversalCombination.NodeSet, TraversalGraph.NodeSet
Enclosing class:
Traversal

public abstract class Traversal.NodeSet
extends Object

A set of nodes vi in a traversal, where the nodes in the set are all copies of the same class graph node v with different indices i.


Method Summary
 boolean equals(Object x)
           
 List getIncomingEdgeSets()
          An unmodifiable list of EdgeSet objects representing the edges in the traversal coming into the nodes in this set.
 Object getNode()
          The class graph node v corresponding to this node set.
 List getOutgoingEdgeSets()
          An unmodifiable list of EdgeSet objects representing the edges in the traversal going out of the nodes in this set.
 boolean sameNode(Traversal.NodeSet s)
          Is s a set of copies of the same node as this?
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getNode

public Object getNode()
The class graph node v corresponding to this node set.


sameNode

public boolean sameNode(Traversal.NodeSet s)
Is s a set of copies of the same node as this?


equals

public boolean equals(Object x)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

getOutgoingEdgeSets

public List getOutgoingEdgeSets()
An unmodifiable list of EdgeSet objects representing the edges in the traversal going out of the nodes in this set. Each EdgeSet will be nonempty and have a nonempty target NodeSet.


getIncomingEdgeSets

public List getIncomingEdgeSets()
An unmodifiable list of EdgeSet objects representing the edges in the traversal coming into the nodes in this set. Each EdgeSet will be nonempty and have a nonempty source NodeSet.