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 intcompareTo(PdbPair o)booleanequals(Object obj)StringgetChainId1()StringgetChainId2()StringgetName1()StringgetName2()StringgetPDBCode1()Deprecated.usegetPDBCode1()insteadStringgetPDBCode2()Deprecated.usegetPDBCode2()insteadPdbIdgetPdbId1()PdbIdgetPdbId2()PdbPairgetReverse()inthashCode()voidsetName1(String name1)voidsetName2(String name2)StringtoString()
-
-
-
Constructor Detail
-
PdbPair
public PdbPair(StructureName name1, StructureName name2)
-
-
Method Detail
-
compareTo
public int compareTo(PdbPair o)
- Specified by:
compareToin 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()
-
-