public class SelfOrThis extends ConstraintAdapter
blacklist, size| Constructor and Description |
|---|
SelfOrThis(Constraint con)
Constructor with the wrapped constraint.
|
SelfOrThis(Constraint con,
int selfIndex)
Constructor with the wrapped constraint and index of self.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGenerate()
This is a generative constraint.
|
Collection<BioPAXElement> |
generate(Match match,
int... ind)
Gets the first mapped element along with the generated elements of wrapped constraint.
|
int |
getVariableSize()
Returns size of the wrapped constraint.
|
boolean |
satisfies(Match match,
int... ind)
Checks if the last index is either generated or equal to the first element.
|
assertIndLength, convertStepDirection, findDirectionInCatalysis, findDirectionInPathways, getCatalysisDirection, getControlChain, getConvParticipants, getDirection, getDirection, getDirection, getDirection, setSizepublic SelfOrThis(Constraint con)
con - wrapped constraintpublic SelfOrThis(Constraint con, int selfIndex)
con - wrapped constraintselfIndex - index of selfpublic int getVariableSize()
getVariableSize in interface ConstraintgetVariableSize in class ConstraintAdapterpublic boolean canGenerate()
canGenerate in interface ConstraintcanGenerate in class ConstraintAdapterpublic Collection<BioPAXElement> generate(Match match, int... ind)
generate in interface Constraintgenerate in class ConstraintAdaptermatch - current pattern matchind - mapped indicespublic boolean satisfies(Match match, int... ind)
satisfies in interface Constraintsatisfies in class ConstraintAdaptermatch - current pattern matchind - mapped indicesCopyright © 2017 BioPAX. All rights reserved.