public class MappedConst extends Object implements Constraint
| Constructor and Description |
|---|
MappedConst(Constraint constr,
int... inds)
Constructor with the constraint and the index mapping.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGenerate()
Can generate only if the wrapped constraint is generative.
|
Collection<BioPAXElement> |
generate(Match match,
int... outer)
Calls generate method of the constraint with index translation.
|
Constraint |
getConstr()
Getter for the constraint.
|
int[] |
getInds()
Getter for the mapped indices.
|
int |
getMaxInd()
Gets the maximum index.
|
int |
getVariableSize()
Gets variable size of the wrapped constraint.
|
boolean |
satisfies(Match match,
int... outer)
Directs to satisfies method of the wrapped constraint with index translation.
|
protected int[] |
translate(int[] outer)
This methods translates the indexes of outer constraint, to this inner constraint.
|
public MappedConst(Constraint constr, int... inds)
constr - constraint to mapinds - mapped indexespublic Constraint getConstr()
public int[] getInds()
public int getMaxInd()
protected int[] translate(int[] outer)
outer - mapped indices for the outer constraintspublic boolean canGenerate()
canGenerate in interface Constraintpublic Collection<BioPAXElement> generate(Match match, int... outer)
generate in interface Constraintmatch - current pattern matchouter - untranslated indicespublic boolean satisfies(Match match, int... outer)
satisfies in interface Constraintmatch - current pattern matchouter - untranslated indicespublic int getVariableSize()
getVariableSize in interface ConstraintCopyright © 2015 BioPAX. All rights reserved.