edu.iastate.metnet.graphmodel
Class GraphWalker

java.lang.Object
  extended by edu.iastate.metnet.graphmodel.AbstractGraphProcessor
      extended by edu.iastate.metnet.graphmodel.GraphWalker
All Implemented Interfaces:
IGraphProcessor
Direct Known Subclasses:
AdjacencyGraphWalker, GlobalGraphWalker

public abstract class GraphWalker
extends AbstractGraphProcessor

facility to traverse the graph, and run the interaction node

Author:
Jie Li

Field Summary
(package private) static org.apache.log4j.Logger logger
          log4j facility
(package private) static int WALK_ADJCENT
          walk adjacent interaction nodes in each pass
(package private) static int WALK_ALL
          walk all the interaction nodes in each pass
(package private)  int walkType
          how to walk throgh the graph model
 
Constructor Summary
GraphWalker()
          initialize the walker, such as if walk through whole graph model or only walk through affected interaction nodes in the graph model depends on the algorithm requirement
GraphWalker(int walkType)
          initialize the walker, such as if walk through whole graph model or only walk through affected interaction nodes in the graph model depends on the algorithm requirement
 
Method Summary
 int getWalkType()
           
 void run(PathwayModel model)
          walk through pathway model
 void setWalkType(int walkType)
           
 
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
 

Field Detail

logger

static org.apache.log4j.Logger logger
log4j facility


WALK_ALL

static final int WALK_ALL
walk all the interaction nodes in each pass

See Also:
Constant Field Values

WALK_ADJCENT

static final int WALK_ADJCENT
walk adjacent interaction nodes in each pass

See Also:
Constant Field Values

walkType

int walkType
how to walk throgh the graph model

Constructor Detail

GraphWalker

public GraphWalker()
initialize the walker, such as if walk through whole graph model or only walk through affected interaction nodes in the graph model depends on the algorithm requirement


GraphWalker

public GraphWalker(int walkType)
initialize the walker, such as if walk through whole graph model or only walk through affected interaction nodes in the graph model depends on the algorithm requirement

Method Detail

run

public void run(PathwayModel model)
walk through pathway model

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

getWalkType

public int getWalkType()
Returns:
Returns the walkType.

setWalkType

public void setWalkType(int walkType)
Parameters:
walkType - The walkType to set.