Package org.rcsb.strucmotif.domain.motif
Class ResiduePairOccurrence
java.lang.Object
org.rcsb.strucmotif.domain.motif.ResiduePairOccurrence
A residue pair occurrence is the combination of its properties (
ResiduePairDescriptor) and both identifiers
(wrapped as ResiduePairIdentifier).-
Constructor Summary
ConstructorsConstructorDescriptionResiduePairOccurrence(ResiduePairDescriptor residuePairDescriptor, ResiduePairIdentifier residuePairIdentifier) Construct a pair occurrence. -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhere is this pair located?What are the properties of this pair?inthashCode()residuePairDescriptorsByTolerance(int backboneTolerance, int sideChainTolerance, int angleTolerance, Map<IndexSelection, Set<ResidueType>> exchanges) Traverse allResiduePairDescriptorinstances which are compatible to this one given the specified parameters and registered position-specific exchanges (if any).toString()
-
Constructor Details
-
ResiduePairOccurrence
public ResiduePairOccurrence(ResiduePairDescriptor residuePairDescriptor, ResiduePairIdentifier residuePairIdentifier) Construct a pair occurrence.- Parameters:
residuePairDescriptor- what are the properties of this pair?residuePairIdentifier- where is this pair located?
-
-
Method Details
-
getResiduePairDescriptor
What are the properties of this pair?- Returns:
- a pair descriptor
-
getResidueIdentifier
Where is this pair located?- Returns:
- a pair identifier
-
equals
-
hashCode
public int hashCode() -
toString
-
residuePairDescriptorsByTolerance
public Stream<ResiduePairDescriptor> residuePairDescriptorsByTolerance(int backboneTolerance, int sideChainTolerance, int angleTolerance, Map<IndexSelection, Set<ResidueType>> exchanges) Traverse allResiduePairDescriptorinstances which are compatible to this one given the specified parameters and registered position-specific exchanges (if any).- Parameters:
backboneTolerance- tolerance valuesideChainTolerance- tolerance valueangleTolerance- tolerance valueexchanges- map of position-specific exchanges - may be empty- Returns:
- stream of all
ResiduePairDescriptorinstances formed
-