edu.iastate.metnet.graphmodel
Class RemoveCompositionNodes

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

public class RemoveCompositionNodes
extends AbstractGraphProcessor

the only difference with remove RemoveSelectedNodes is not connect the upstream nodes with downstream nodes

Author:
Jie Li

Constructor Summary
RemoveCompositionNodes()
           
 
Method Summary
 void run(PathwayModel graph)
          remove the selected nodes, and connect the upstream nodes to all downstream nodes.
 
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

RemoveCompositionNodes

public RemoveCompositionNodes()
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