Class Size
java.lang.Object
org.biopax.paxtools.pattern.constraint.ConstraintAdapter
org.biopax.paxtools.pattern.constraint.Size
- All Implemented Interfaces:
Constraint
Checks the size of the generated elements of the wrapped constraint.
- Author:
- Ozgun Babur
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
blacklist -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintSize is one less than the size of wrapped constraint.booleanChecks if generated element size is in limits.Methods inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
assertIndLength, canGenerate, convertStepDirection, findDirectionInCatalysis, findDirectionInPathways, generate, getCatalysisDirection, getControlChain, getConvParticipants, getDirection, getDirection, getDirection, getDirection, setSize
-
Constructor Details
-
Size
Constructor with parameters.- Parameters:
con- wrapped generative constraintsize- size thresholdtype- type of (in)equality
-
-
Method Details
-
getVariableSize
public int getVariableSize()Size is one less than the size of wrapped constraint.- Specified by:
getVariableSizein interfaceConstraint- Overrides:
getVariableSizein classConstraintAdapter- Returns:
- one less than the size of wrapped constraint
-
satisfies
Checks if generated element size is in limits.- Specified by:
satisfiesin interfaceConstraint- Overrides:
satisfiesin classConstraintAdapter- Parameters:
match- current pattern matchind- mapped indices- Returns:
- true if generated element size is in limits
-