Class PDBMonomer

All Implemented Interfaces:
Serializable, Cloneable, IAtomContainer, ICDKObject, IChemObject, IChemObjectListener, IMonomer, IPDBMonomer

public class PDBMonomer extends Monomer implements Cloneable, IPDBMonomer
Represents the idea of an monomer as used in PDB files. It contains extra fields normally associated with atoms in such files.
See Also:
Source code:
main
Belongs to CDK module:
silent
  • Constructor Details

    • PDBMonomer

      public PDBMonomer()
  • Method Details

    • setICode

      public void setICode(String newICode)
      Description copied from interface: IPDBMonomer
      Sets the ICode of this monomer.
      Specified by:
      setICode in interface IPDBMonomer
      Parameters:
      newICode - the I code of this monomer
    • getICode

      public String getICode()
      Description copied from interface: IPDBMonomer
      Gets the ICode of this monomer.
      Specified by:
      getICode in interface IPDBMonomer
      Returns:
      the ICode of this monomer
    • setChainID

      public void setChainID(String newChainID)
      Description copied from interface: IPDBMonomer
      Sets the Chain ID of this monomer.
      Specified by:
      setChainID in interface IPDBMonomer
      Parameters:
      newChainID - the Chain ID of this monomer
    • getChainID

      public String getChainID()
      Description copied from interface: IPDBMonomer
      Gets the Chain ID of this monomer.
      Specified by:
      getChainID in interface IPDBMonomer
      Returns:
      the Chain ID of this monomer
    • toString

      public String toString()
      Returns a one line string representation of this Atom. Methods is conform RFC #9.
      Specified by:
      toString in interface IChemObject
      Overrides:
      toString in class Monomer
      Returns:
      The string representation of this Atom
    • getResSeq

      public String getResSeq()
      Description copied from interface: IPDBMonomer
      Gets the sequence identifier of this monomer.
      Specified by:
      getResSeq in interface IPDBMonomer
      Returns:
      the sequence identifier of this monomer
    • clone

      public IPDBMonomer clone() throws CloneNotSupportedException
      Clones this IChemObject. It clones the identifier, flags, properties and pointer vectors. The ChemObjectListeners are not cloned, and neither is the content of the pointer vectors.
      Specified by:
      clone in interface IAtomContainer
      Specified by:
      clone in interface IChemObject
      Specified by:
      clone in interface IMonomer
      Specified by:
      clone in interface IPDBMonomer
      Overrides:
      clone in class Monomer
      Returns:
      The cloned object
      Throws:
      CloneNotSupportedException - if the IChemObject cannot be cloned
    • setResSeq

      public void setResSeq(String resSeq)
      Description copied from interface: IPDBMonomer
      Sets the sequence identifier of this monomer.
      Specified by:
      setResSeq in interface IPDBMonomer
      Parameters:
      resSeq - the new sequence identifier of this monomer