Class XOR
java.lang.Object
org.biopax.paxtools.pattern.constraint.ConstraintAdapter
org.biopax.paxtools.pattern.constraint.OR
org.biopax.paxtools.pattern.constraint.XOR
- All Implemented Interfaces:
Constraint
Used for getting logical XOR of a set of constraints.
- Author:
- Ozgun Babur
-
Field Summary
Fields inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
blacklist, size -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets xor of the generated elements by the member constraints.booleanChecks if constraints satisfy in xor pattern.Methods inherited from class org.biopax.paxtools.pattern.constraint.OR
canGenerate, getVariableSize, maxMethods inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
assertIndLength, convertStepDirection, findDirectionInCatalysis, findDirectionInPathways, getCatalysisDirection, getControlChain, getConvParticipants, getDirection, getDirection, getDirection, getDirection, setSize
-
Constructor Details
-
XOR
Constructor with the mapped constraints.- Parameters:
con- mapped constraints
-
-
Method Details
-
satisfies
Checks if constraints satisfy in xor pattern.- Specified by:
satisfiesin interfaceConstraint- Overrides:
satisfiesin classOR- Parameters:
match- match to validateind- mapped indices- Returns:
- true if all satisfy
-
generate
Gets xor of the generated elements by the member constraints.- Specified by:
generatein interfaceConstraint- Overrides:
generatein classOR- Parameters:
match- match to processind- mapped indices- Returns:
- satisfying elements
-