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, setSize
public OR(MappedConst... con)
con
- wrapped constraintspublic boolean satisfies(Match match, int... ind)
satisfies
in interface Constraint
satisfies
in class ConstraintAdapter
match
- current pattern matchind
- mapped indicespublic boolean canGenerate()
canGenerate
in interface Constraint
canGenerate
in class ConstraintAdapter
public int getVariableSize()
getVariableSize
in interface Constraint
getVariableSize
in class ConstraintAdapter
protected int max(int[] v)
v
- array to checkpublic Collection<BioPAXElement> generate(Match match, int... ind)
generate
in interface Constraint
generate
in class ConstraintAdapter
match
- current pattern matchind
- mapped indicesCopyright © 2015 BioPAX. All rights reserved.