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, setSize
public SelfOrThis(Constraint con)
con
- wrapped constraintpublic SelfOrThis(Constraint con, int selfIndex)
con
- wrapped constraintselfIndex
- index of selfpublic int getVariableSize()
getVariableSize
in interface Constraint
getVariableSize
in class ConstraintAdapter
public boolean canGenerate()
canGenerate
in interface Constraint
canGenerate
in class ConstraintAdapter
public Collection<BioPAXElement> generate(Match match, int... ind)
generate
in interface Constraint
generate
in class ConstraintAdapter
match
- current pattern matchind
- mapped indicespublic boolean satisfies(Match match, int... ind)
satisfies
in interface Constraint
satisfies
in class ConstraintAdapter
match
- current pattern matchind
- mapped indicesCopyright © 2015 BioPAX. All rights reserved.