Class Participant
java.lang.Object
org.biopax.paxtools.pattern.constraint.ConstraintAdapter
org.biopax.paxtools.pattern.constraint.Participant
- All Implemented Interfaces:
Constraint
Gets input or output participants of a Conversion.
if NOT consider Control and NOT considerPathway (default):
var0 is a Conversion
var1 is a PE
else if considerControl and NOT considerPathway
var0 is a Control
var1 is a Conversion
var2 is a PE
else if NOT considerControl and considerPathway
var0 is a Pathway
var1 is a Conversion
var2 is a PE
else if considerControl and consider pathway
var0 is a Pathway
var1 is a Control
var2 is a Conversion
var3 is a PE
- Author:
- Ozgun Babur
-
Field Summary
Fields inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
blacklist, size -
Constructor Summary
ConstructorsConstructorDescriptionParticipant(RelType type) Constructor with parameters.Participant(RelType type, boolean considerControl) Constructor with parameters.Participant(RelType type, boolean considerControl, boolean considerPathway) Constructor with parameters.Participant(RelType type, Blacklist blacklist) Constructor with parameters.Participant(RelType type, Blacklist blacklist, boolean considerControl) Constructor with parameters.Participant(RelType type, Blacklist blacklist, boolean considerControl, boolean considerPathway) 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
-
Participant
public Participant(RelType type, Blacklist blacklist, boolean considerControl, boolean considerPathway) Constructor with parameters.- Parameters:
type- input or output conversionblacklist- for detecting ubiquitous small moleculesconsiderControl- whether there is a Control that we should considerconsiderPathway- whether there is a Pathway that we should consider
-
Participant
Constructor with parameters.- Parameters:
type- input or output of the conversion
-
Participant
Constructor with parameters.- Parameters:
type- input or output conversionblacklist- for detecting ubiquitous small molecules
-
Participant
Constructor with parameters.- Parameters:
type- input or output conversionblacklist- for detecting ubiquitous small moleculesconsiderControl- whether there is a Control that we should consider
-
Participant
Constructor with parameters.- Parameters:
type- input or output of the conversionconsiderControl- whether there is a Control that we should consider
-
Participant
Constructor with parameters.- Parameters:
type- input or output of the conversionconsiderControl- whether there is a Control that we should considerconsiderPathway- whether there is a Pathway that we should consider
-
-
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
-