Class ConversionSide
java.lang.Object
org.biopax.paxtools.pattern.constraint.ConstraintAdapter
org.biopax.paxtools.pattern.constraint.ConversionSide
- All Implemented Interfaces:
Constraint
Given Conversion and its one of the participants (at the left or right), traverses to either
the participants at the other side or the same side.
var0 is a PE (PE1)
var1 is a Conv
var2 is a PE (PE2)
Prerequisite: PE1 is either at left or right of Conv
- Author:
- Ozgun Babur
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThis enum tells if the user want to traverse towards other side of the conversion or stay at the same side. -
Field Summary
Fields inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
blacklist, size -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.ConversionSide(ConversionSide.Type type, Blacklist blacklist, RelType relType) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis is a generative constraint.Checks which side is the first PhysicalEntity, and gathers participants on either the other side or the same side.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
-
ConversionSide
Constructor.- Parameters:
type- side type (same side or the other)
-
ConversionSide
Constructor. The relType parameter is using during blacklisting, and only if the blacklist is not null.- Parameters:
type- side typeblacklist- blacklist of ubiquitous moleculesrelType- relationship type (used together with and during blacklisting)
-
-
Method Details
-
canGenerate
public boolean canGenerate()This is a generative constraint.- Specified by:
canGeneratein interfaceConstraint- Overrides:
canGeneratein classConstraintAdapter- Returns:
- true
-
generate
Checks which side is the first PhysicalEntity, and gathers participants on either the other side or the same side.- Specified by:
generatein interfaceConstraint- Overrides:
generatein classConstraintAdapter- Parameters:
match- current pattern matchind- mapped indices- Returns:
- participants at the desired side
-