Class Empty
java.lang.Object
org.biopax.paxtools.pattern.constraint.ConstraintAdapter
org.biopax.paxtools.pattern.constraint.Empty
- All Implemented Interfaces:
Constraint
Checks if the parameter constraint cannot generate any candidate.
- Author:
- Ozgun Babur
-
Field Summary
Fields inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
blacklist, size -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCannot generateintVariable size is one less than the wrapped Constraint.booleanChecks if the wrapped Constraint can generate any elements.Methods inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
assertIndLength, convertStepDirection, findDirectionInCatalysis, findDirectionInPathways, generate, getCatalysisDirection, getControlChain, getConvParticipants, getDirection, getDirection, getDirection, getDirection, setSize
-
Constructor Details
-
Empty
Constructor with the generative Constraint.- Parameters:
con- the generative Constraint
-
-
Method Details
-
getVariableSize
public int getVariableSize()Variable size is one less than the wrapped Constraint.- Specified by:
getVariableSizein interfaceConstraint- Overrides:
getVariableSizein classConstraintAdapter- Returns:
- one less than the size of teh wrapped constraint
-
canGenerate
public boolean canGenerate()Cannot generate- Specified by:
canGeneratein interfaceConstraint- Overrides:
canGeneratein classConstraintAdapter- Returns:
- false
-
satisfies
Checks if the wrapped Constraint can generate any elements. This satisfies if it cannot.- Specified by:
satisfiesin interfaceConstraint- Overrides:
satisfiesin classConstraintAdapter- Parameters:
match- current pattern matchind- mapped indices- Returns:
- true if the wrapped Constraint generates nothing
-