RdcPanda
Class Hbond

java.lang.Object
  extended by RdcPanda.Hbond
All Implemented Interfaces:
java.lang.Cloneable

public class Hbond
extends java.lang.Object
implements java.lang.Cloneable

This class defines data structures related to h-bonds. Written by Lincong Wang (2001-2005).


Nested Class Summary
static class Hbond.HbondComparatorA
          The Class HbondComparatorA.
static class Hbond.HbondComparatorB
          The Class HbondComparatorB.
 
Constructor Summary
Hbond()
          Constructors.
Hbond(int Ano, java.lang.String A, int Bno, java.lang.String B, java.lang.String id, java.lang.String t)
          Instantiates a new hbond.
 
Method Summary
 java.lang.String getAtomA()
          Gets the atom a.
 java.lang.String getAtomB()
          Gets the atom b.
 java.lang.String getID()
          Gets the iD.
 int getResidueNoA()
          Gets the residue no a.
 int getResidueNoB()
          Gets the residue no b.
 java.lang.String getType()
          Gets the type.
 java.util.Vector hbOfTwoStrands(java.util.Vector hbVec, java.lang.String ids)
          Hb of two strands.
 java.util.Vector HbondReader(java.lang.String hbFile)
          A very simple reader for H-bond data: see the attched file for the format.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Hbond

public Hbond()
Constructors.


Hbond

public Hbond(int Ano,
             java.lang.String A,
             int Bno,
             java.lang.String B,
             java.lang.String id,
             java.lang.String t)
Instantiates a new hbond.

Parameters:
Ano - the ano
A - the a
Bno - the bno
B - the b
id - the id
t - the t
Method Detail

getResidueNoA

public int getResidueNoA()
Gets the residue no a.

Returns:
the residue no a

getResidueNoB

public int getResidueNoB()
Gets the residue no b.

Returns:
the residue no b

getAtomA

public java.lang.String getAtomA()
Gets the atom a.

Returns:
the atom a

getAtomB

public java.lang.String getAtomB()
Gets the atom b.

Returns:
the atom b

getID

public java.lang.String getID()
Gets the iD.

Returns:
the iD

getType

public java.lang.String getType()
Gets the type.

Returns:
the type

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

HbondReader

public java.util.Vector HbondReader(java.lang.String hbFile)
A very simple reader for H-bond data: see the attched file for the format.

Parameters:
hbFile - the name of the file
Returns:
a vector of Hbond object

hbOfTwoStrands

public java.util.Vector hbOfTwoStrands(java.util.Vector hbVec,
                                       java.lang.String ids)
Hb of two strands.

Parameters:
hbVec - the hb vec
ids - the ids
Returns:
the vector