Class ParticipatesInConv
java.lang.Object
org.biopax.paxtools.pattern.constraint.ConstraintAdapter
org.biopax.paxtools.pattern.constraint.ParticipatesInConv
- All Implemented Interfaces:
Constraint
Gets the related Conversion where the PhysicalEntity is input or output, whichever is desired.
var0 is a PE
var1 is a Conversion
- Author:
- Ozgun Babur
-
Field Summary
Fields inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
blacklist, size -
Constructor Summary
ConstructorsConstructorDescriptionParticipatesInConv(RelType type) Constructor with parameters.ParticipatesInConv(RelType type, Blacklist blacklist) Constructor with parameters. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis is a generative constraint.Identifies the conversion direction and gets the related participants.Methods inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
assertIndLength, convertStepDirection, findDirectionInCatalysis, findDirectionInPathways, getCatalysisDirection, getControlChain, getConvParticipants, getDirection, getDirection, getDirection, getDirection, getVariableSize, satisfies, setSize
-
Constructor Details
-
ParticipatesInConv
Constructor with parameters.- Parameters:
type- input or output conversionblacklist- for detecting blacklisted small molecules
-
ParticipatesInConv
Constructor with parameters.- Parameters:
type- input or output conversion
-
-
Method Details
-
canGenerate
public boolean canGenerate()This is a generative constraint.- Specified by:
canGeneratein interfaceConstraint- Overrides:
canGeneratein classConstraintAdapter- Returns:
- true
-
generate
Identifies the conversion direction and gets the related participants.- Specified by:
generatein interfaceConstraint- Overrides:
generatein classConstraintAdapter- Parameters:
match- current pattern matchind- mapped indices- Returns:
- input or output participants
-