Class RelatedControl
java.lang.Object
org.biopax.paxtools.pattern.constraint.ConstraintAdapter
org.biopax.paxtools.pattern.constraint.RelatedControl
- All Implemented Interfaces:
Constraint
After traversing a PhysicalEntity and the Conversion it participates, this constraint takes us to
the Control. The given relation between PhysicalEntity and Conversion is used to filter out
unrelated controls.
Var0 - PhysicalEntity (participant)
Var1 - Conversion
Var2 - related Control
- Author:
- Ozgun Babur
-
Field Summary
Fields inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
blacklist, size -
Constructor Summary
ConstructorsConstructorDescriptionRelatedControl(RelType peType) Constructor with the relation type between PhysicalEntity and Conversion.RelatedControl(RelType peType, Blacklist blacklist) Constructor with the relation type between PhysicalEntity and Conversion, and the blacklist. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis is a generative constraint.According to the relation between PhysicalEntity and the Conversion, checks of the Control is relevant.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
-
RelatedControl
Constructor with the relation type between PhysicalEntity and Conversion.- Parameters:
peType- relation type between PhysicalEntity and Conversion
-
RelatedControl
Constructor with the relation type between PhysicalEntity and Conversion, and the blacklist.- Parameters:
peType- relation type between PhysicalEntity and Conversionblacklist- to detect ubiquitous small molecules
-
-
Method Details
-
canGenerate
public boolean canGenerate()This is a generative constraint.- Specified by:
canGeneratein interfaceConstraint- Overrides:
canGeneratein classConstraintAdapter- Returns:
- true
-
generate
According to the relation between PhysicalEntity and the Conversion, checks of the Control is relevant. If relevant it is retrieved.- Specified by:
generatein interfaceConstraint- Overrides:
generatein classConstraintAdapter- Parameters:
match- current pattern matchind- mapped indices- Returns:
- related controls
-