public class OR extends ConstraintAdapter
blacklist, size| Constructor and Description |
|---|
OR(MappedConst... con)
Constructor with the array of mapped constraints.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGenerate()
Can generate only if all of the wrapped constraints are generative.
|
Collection<BioPAXElement> |
generate(Match match,
int... ind)
Gets the intersection of the generated values of wrapped constraints.
|
int |
getVariableSize()
Checks the inner mapping of the wrapped constraints and figures the size.
|
protected int |
max(int[] v)
Gets the max value.
|
boolean |
satisfies(Match match,
int... ind)
Checks if any of the wrapped constraints satisfy.
|
assertIndLength, convertStepDirection, findDirectionInCatalysis, findDirectionInPathways, getCatalysisDirection, getControlChain, getConvParticipants, getDirection, getDirection, getDirection, getDirection, setSizepublic OR(MappedConst... con)
con - wrapped constraintspublic boolean satisfies(Match match, int... ind)
satisfies in interface Constraintsatisfies in class ConstraintAdaptermatch - current pattern matchind - mapped indicespublic boolean canGenerate()
canGenerate in interface ConstraintcanGenerate in class ConstraintAdapterpublic int getVariableSize()
getVariableSize in interface ConstraintgetVariableSize in class ConstraintAdapterprotected int max(int[] v)
v - array to checkpublic Collection<BioPAXElement> generate(Match match, int... ind)
generate in interface Constraintgenerate in class ConstraintAdaptermatch - current pattern matchind - mapped indicesCopyright © 2015 BioPAX. All rights reserved.