fern.analysis
Class NodeCheckerByAnnotation
java.lang.Object
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
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 namevalue
- the annotation value
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