Package org.rcsb.strucmotif.domain.motif
Class InvertedIndexResiduePairIdentifier
java.lang.Object
org.rcsb.strucmotif.domain.motif.InvertedIndexResiduePairIdentifier
- All Implemented Interfaces:
ResiduePairIdentifier
A
ResiduePairIdentifier defined by data from the inverted index. Just a wrapper for the raw data array.-
Constructor Summary
ConstructorsConstructorDescriptionInvertedIndexResiduePairIdentifier(Object[] data, boolean flipped) Construct an identifier based on raw data. -
Method Summary
Modifier and TypeMethodDescriptionintThe index of the first residue.intThe index of the second residue.The complex IndexSelection of the first residue.The complex IndexSelection of the second residue.The operator expression applied to the first residue.The operator expression applied to the second residue.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.rcsb.strucmotif.domain.motif.ResiduePairIdentifier
indexSelections
-
Constructor Details
-
InvertedIndexResiduePairIdentifier
Construct an identifier based on raw data.- Parameters:
data- an Object[] from the inverted indexflipped- true iff positions are flipped by the contract ofResiduePairDescriptor
-
-
Method Details
-
getStructOperId1
Description copied from interface:ResiduePairIdentifierThe operator expression applied to the first residue.- Specified by:
getStructOperId1in interfaceResiduePairIdentifier- Returns:
- a String
-
getIndex1
public int getIndex1()Description copied from interface:ResiduePairIdentifierThe index of the first residue.- Specified by:
getIndex1in interfaceResiduePairIdentifier- Returns:
- an int
-
getStructOperId2
Description copied from interface:ResiduePairIdentifierThe operator expression applied to the second residue.- Specified by:
getStructOperId2in interfaceResiduePairIdentifier- Returns:
- a String
-
getIndex2
public int getIndex2()Description copied from interface:ResiduePairIdentifierThe index of the second residue.- Specified by:
getIndex2in interfaceResiduePairIdentifier- Returns:
- an int
-
getIndexSelection1
Description copied from interface:ResiduePairIdentifierThe complex IndexSelection of the first residue. If possible, use low-level methods that avoid object creation if data comes from the inverted index.- Specified by:
getIndexSelection1in interfaceResiduePairIdentifier- Returns:
- an
IndexSelection
-
getIndexSelection2
Description copied from interface:ResiduePairIdentifierThe complex IndexSelection of the second residue. If possible, use low-level methods that avoid object creation if data comes from the inverted index.- Specified by:
getIndexSelection2in interfaceResiduePairIdentifier- Returns:
- an
IndexSelection
-