Class PDBPolymer

    • Constructor Detail

      • PDBPolymer

        public PDBPolymer()
        Constructs a new Polymer to store the IMonomers.
    • Method Detail

      • addStructure

        public void addStructure​(IPDBStructure structure)
        Description copied from interface: IPDBPolymer
        Adds the PDBStructure structure a this PDBPolymer.
        Specified by:
        addStructure in interface IPDBPolymer
        Parameters:
        structure - The PDBStructure to add
      • getStructures

        public Collection<IPDBStructure> getStructures()
        Description copied from interface: IPDBPolymer
        Returns a Collection containing the PDBStructure in the PDBPolymer.
        Specified by:
        getStructures in interface IPDBPolymer
        Returns:
        Collection containing the PDBStructure in the PDBPolymer
      • addAtom

        public void addAtom​(IPDBAtom oAtom)
        Adds the atom oAtom without specifying a IMonomer or a Strand. Therefore the atom to this AtomContainer, but not to a certain Strand or IMonomer (intended e.g. for HETATMs).
        Specified by:
        addAtom in interface IPDBPolymer
        Parameters:
        oAtom - The IPDBAtom to add
      • addAtom

        public void addAtom​(IPDBAtom oAtom,
                            IMonomer oMonomer)
        Adds the atom oAtom to a specified Monomer. Additionally, it keeps record of the iCode.
        Parameters:
        oAtom - The IPDBAtom to add
        oMonomer - The monomer the atom belongs to
      • addAtom

        public void addAtom​(IPDBAtom oAtom,
                            IMonomer oMonomer,
                            IStrand oStrand)
        Adds the IPDBAtom oAtom to a specified Monomer of a specified Strand. Additionally, it keeps record of the iCode.
        Specified by:
        addAtom in interface IPDBPolymer
        Parameters:
        oAtom - The IPDBAtom to add
        oMonomer - The monomer the atom belongs to
        oStrand - The strand the atom belongs to