Class PdbPair
- java.lang.Object
-
- org.biojava.nbio.structure.align.client.PdbPair
-
- All Implemented Interfaces:
Comparable<PdbPair>
public class PdbPair extends Object implements Comparable<PdbPair>
A pair for structure alignment. a pair is considered equal to another pair if their two respective tuple poles are equal either in their original or reversed order. i.e. bothnew PdbPair("1abc", "2abc").equals(new PdbPair("1abc", "2abc"))
andnew PdbPair("1abc", "2abc").equals(new PdbPair("2abc", "1abc"))
aretrue
.- Author:
- Andreas Prlic
-
-
Constructor Summary
Constructors Constructor Description PdbPair(String name1, String name2)
PdbPair(StructureName name1, StructureName name2)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
compareTo(PdbPair o)
boolean
equals(Object obj)
String
getChainId1()
String
getChainId2()
String
getName1()
String
getName2()
String
getPDBCode1()
Deprecated.usegetPDBCode1()
insteadString
getPDBCode2()
Deprecated.usegetPDBCode2()
insteadPdbId
getPdbId1()
PdbId
getPdbId2()
PdbPair
getReverse()
int
hashCode()
void
setName1(String name1)
void
setName2(String name2)
String
toString()
-
-
-
Constructor Detail
-
PdbPair
public PdbPair(StructureName name1, StructureName name2)
-
-
Method Detail
-
compareTo
public int compareTo(PdbPair o)
- Specified by:
compareTo
in interfaceComparable<PdbPair>
-
getPDBCode1
public String getPDBCode1() throws StructureException
Deprecated.usegetPDBCode1()
instead- Returns:
- Throws:
StructureException
-
getPDBCode2
@Deprecated public String getPDBCode2() throws StructureException
Deprecated.usegetPDBCode2()
instead- Returns:
- Throws:
StructureException
-
getPdbId1
public PdbId getPdbId1() throws StructureException
- Returns:
- Throws:
StructureException
- Since:
- 6.0.0
-
getPdbId2
public PdbId getPdbId2() throws StructureException
- Returns:
- Throws:
StructureException
- Since:
- 6.0.0
-
getChainId1
public String getChainId1()
-
getChainId2
public String getChainId2()
-
getReverse
public PdbPair getReverse()
-
-