public class NodeCheckerByAnnotation extends Object implements NodeChecker
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.Constructor and Description |
---|
NodeCheckerByAnnotation(String field,
String value)
Creates the NodeChecker with the specified annotation field and value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkReactionNode(Network network,
int reaction) |
boolean |
checkSpeciesNode(Network network,
int species) |
public NodeCheckerByAnnotation(String field, String value)
null
then the reaction / species is valid if an annotation named
field
exists.field
- the annotation namevalue
- the annotation valuepublic boolean checkReactionNode(Network network, int reaction)
checkReactionNode
in interface NodeChecker
public boolean checkSpeciesNode(Network network, int species)
checkSpeciesNode
in interface NodeChecker
Copyright © 2007–2021. All rights reserved.