edu.iastate.metnet.graphmodel
Class RemoveSelectedNodes

java.lang.Object
  extended by edu.iastate.metnet.graphmodel.AbstractGraphProcessor
      extended by edu.iastate.metnet.graphmodel.RemoveSelectedNodes
All Implemented Interfaces:
IGraphProcessor

public class RemoveSelectedNodes
extends AbstractGraphProcessor

Author:
Jie Li

Constructor Summary
RemoveSelectedNodes(java.lang.Object[] nodes)
           
 
Method Summary
 java.lang.Object[] getSelectedNodes()
           
 void run(PathwayModel graph)
          remove the selected nodes, and connect the upstream nodes to all downstream nodes.
 void setSelectedNodes(java.lang.Object[] selectedNodes)
           
 
Methods inherited from class edu.iastate.metnet.graphmodel.AbstractGraphProcessor
run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoveSelectedNodes

public RemoveSelectedNodes(java.lang.Object[] nodes)
Method Detail

run

public void run(PathwayModel graph)
remove the selected nodes, and connect the upstream nodes to all downstream nodes. To prevent deletion of consecutive nodes, put the graph model change in the loop

Specified by:
run in interface IGraphProcessor
Overrides:
run in class AbstractGraphProcessor
Parameters:
graph - the graph model

getSelectedNodes

public java.lang.Object[] getSelectedNodes()
Returns:
Returns the selectedNodes.

setSelectedNodes

public void setSelectedNodes(java.lang.Object[] selectedNodes)
Parameters:
selectedNodes - The selectedNodes to set.