Interface IStrand

    • Method Detail

      • getStrandName

        String getStrandName()
        Retrieve the strand name.
        Returns:
        The name of the Strand object
        See Also:
        setStrandName(String)
      • getStrandType

        String getStrandType()
        Retrieve the strand type.
        Returns:
        The type of the Strand object
        See Also:
        setStrandType(String)
      • setStrandName

        void setStrandName​(String cStrandName)
        Set the name of the Strand object.
        Parameters:
        cStrandName - The new name for this strand
        See Also:
        getStrandName()
      • setStrandType

        void setStrandType​(String cStrandType)
        Set the type of the Strand object.
        Parameters:
        cStrandType - The new type for this strand
        See Also:
        getStrandType()
      • addAtom

        void addAtom​(IAtom oAtom)
        Adds the atom oAtom without specifying a Monomer or a Strand. Therefore the atom gets added to a Monomer of type UNKNOWN in a Strand of type UNKNOWN.
        Specified by:
        addAtom in interface IAtomContainer
        Parameters:
        oAtom - The atom to add
      • addAtom

        void addAtom​(IAtom oAtom,
                     IMonomer oMonomer)
        Adds the atom oAtom to a specific Monomer.
        Parameters:
        oAtom - The atom to add
        oMonomer - The monomer the atom belongs to
      • getMonomerCount

        int getMonomerCount()
        Return the number of monomers present in the Strand.
        Returns:
        number of monomers
      • getMonomer

        IMonomer getMonomer​(String cName)
        Retrieve a Monomer object by specifying its name.
        Parameters:
        cName - The name of the monomer to look for
        Returns:
        The Monomer object which was asked for
      • getMonomerNames

        Collection<String> getMonomerNames()
        Returns a collection of the names of all Monomers in this polymer.
        Returns:
        a Collection of all the monomer names.
      • removeMonomer

        void removeMonomer​(String name)
        Removes a particular monomer, specified by its name.
        Parameters:
        name - The name of the monomer to remove
      • getMonomers

        Map<String,​IMonomer> getMonomers()
        Returns the monomers in this strand.
        Returns:
        Map containing the monomers in the strand.