Class ModificationChangeConstraint
java.lang.Object
org.biopax.paxtools.pattern.constraint.ConstraintAdapter
org.biopax.paxtools.pattern.constraint.ModificationChangeConstraint
- All Implemented Interfaces:
Constraint
This class checks if there exists a desired type of modification change among two PhysicalEntity.
var0: First simple PhysicalEntity
Var1: Second simple PhysicalEntity
- Author:
- Ozgun Babur
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]Partial names of the features to be considered.protected ModificationChangeConstraint.TypeGain or loss?Fields inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
blacklist, size -
Constructor Summary
ConstructorsConstructorDescriptionModificationChangeConstraint(ModificationChangeConstraint.Type type, String... featureSubstring) Constructor with the desired change and maps to activating and inactivating features. -
Method Summary
Methods inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
assertIndLength, canGenerate, convertStepDirection, findDirectionInCatalysis, findDirectionInPathways, generate, getCatalysisDirection, getControlChain, getConvParticipants, getDirection, getDirection, getDirection, getDirection, getVariableSize, setSize
-
Field Details
-
featureSubstring
Partial names of the features to be considered. -
type
Gain or loss?
-
-
Constructor Details
-
ModificationChangeConstraint
public ModificationChangeConstraint(ModificationChangeConstraint.Type type, String... featureSubstring) Constructor with the desired change and maps to activating and inactivating features. If the feature substrings are not provided, any feature is qualified.- Parameters:
type- either gain, loss, or anyfeatureSubstring- partial names of the features desired to be changed
-
-
Method Details
-
satisfies
Checks the any of the changed modifications match to any of the desired modifications.- Specified by:
satisfiesin interfaceConstraint- Overrides:
satisfiesin classConstraintAdapter- Parameters:
match- current pattern matchind- mapped indices- Returns:
- true if a modification change is among desired modifications
-