fern.analysis
Class NodeCheckerByAnnotation

java.lang.Object
  extended by fern.analysis.NodeCheckerByAnnotation
All Implemented Interfaces:
NodeChecker

public class NodeCheckerByAnnotation
extends Object
implements NodeChecker

An instance of NodeCheckerByAnnotation can be used to control a search in AnalysisBase by a NetworkSearchAction. Then the reactions / species in the network are only visited, if they have the specified annotation.

Author:
Florian Erhard

Constructor Summary
NodeCheckerByAnnotation(String field, String value)
          Creates the NodeChecker with the specified annotation field and value.
 
Method Summary
 boolean checkReactionNode(Network network, int reaction)
           
 boolean checkSpeciesNode(Network network, int species)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeCheckerByAnnotation

public NodeCheckerByAnnotation(String field,
                               String value)
Creates the NodeChecker with the specified annotation field and value. If value is null then the reaction / species is valid if an annotation named field exists.

Parameters:
field - the annotation name
value - the annotation value
Method Detail

checkReactionNode

public boolean checkReactionNode(Network network,
                                 int reaction)
Specified by:
checkReactionNode in interface NodeChecker

checkSpeciesNode

public boolean checkSpeciesNode(Network network,
                                int species)
Specified by:
checkSpeciesNode in interface NodeChecker