com.ibm.wala.util.graph.impl
Class NodeWithNumberedEdges

java.lang.Object
  extended by com.ibm.wala.util.graph.impl.NodeWithNumber
      extended by com.ibm.wala.util.graph.impl.NodeWithNumberedEdges
All Implemented Interfaces:
INodeWithNumber, INodeWithNumberedEdges

public class NodeWithNumberedEdges
extends NodeWithNumber
implements INodeWithNumberedEdges


Constructor Summary
NodeWithNumberedEdges()
           
 
Method Summary
 void addPred(int eqNumber)
          Note that this variable appears on the LHS of an equation.
 void addSucc(int eqNumber)
          Note that this variable appears on the RHS of an equation.
 void deletePred(int eqNumber)
          remove the edge that indicates this variable is Predined by a certain equation
 void deleteSucc(int eqNumber)
          remove the edge that indicates this variable is Succd by a certain equation
 IntSet getPredNumbers()
           
 IntSet getSuccNumbers()
           
 void removeAllIncidentEdges()
          remove all edges that involve this node.
 void removeIncomingEdges()
          remove all incoming edges to this this node.
 void removeOutgoingEdges()
          remove all outgoing edges to this this node.
 
Methods inherited from class com.ibm.wala.util.graph.impl.NodeWithNumber
getGraphNodeId, setGraphNodeId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.wala.util.graph.INodeWithNumber
getGraphNodeId, setGraphNodeId
 

Constructor Detail

NodeWithNumberedEdges

public NodeWithNumberedEdges()
Method Detail

getSuccNumbers

public IntSet getSuccNumbers()
Specified by:
getSuccNumbers in interface INodeWithNumberedEdges
Returns:
set of node numbers which are successors of this node

getPredNumbers

public IntSet getPredNumbers()
Specified by:
getPredNumbers in interface INodeWithNumberedEdges
Returns:
set of node numbers which are predecessors of this node

addSucc

public void addSucc(int eqNumber)
Note that this variable appears on the RHS of an equation.

Specified by:
addSucc in interface INodeWithNumberedEdges
Parameters:
eqNumber - the equation number

addPred

public void addPred(int eqNumber)
Note that this variable appears on the LHS of an equation.

Specified by:
addPred in interface INodeWithNumberedEdges
Parameters:
eqNumber - the equation number

deleteSucc

public void deleteSucc(int eqNumber)
remove the edge that indicates this variable is Succd by a certain equation

Parameters:
eqNumber -

deletePred

public void deletePred(int eqNumber)
remove the edge that indicates this variable is Predined by a certain equation

Parameters:
eqNumber -

removeAllIncidentEdges

public void removeAllIncidentEdges()
                            throws UnimplementedError
Description copied from interface: INodeWithNumberedEdges
remove all edges that involve this node. This must fix up the other nodes involved in each edge removed.

Specified by:
removeAllIncidentEdges in interface INodeWithNumberedEdges
Throws:
UnimplementedError

removeIncomingEdges

public void removeIncomingEdges()
                         throws UnimplementedError
Description copied from interface: INodeWithNumberedEdges
remove all incoming edges to this this node. This must fix up the other nodes involved in each edge removed.

Specified by:
removeIncomingEdges in interface INodeWithNumberedEdges
Throws:
UnimplementedError

removeOutgoingEdges

public void removeOutgoingEdges()
                         throws UnimplementedError
Description copied from interface: INodeWithNumberedEdges
remove all outgoing edges to this this node. This must fix up the other nodes involved in each edge removed.

Specified by:
removeOutgoingEdges in interface INodeWithNumberedEdges
Throws:
UnimplementedError