Class Model

  • All Implemented Interfaces:
    java.io.Serializable

    public class Model
    extends java.lang.Object
    implements java.io.Serializable
    An internal utility class for StructureImpl to make it easier to manage poly and nonpoly chains. Not to exposed to users through API. Created by andreas on 5/3/16.
    Since:
    5.0
    Author:
    Andreas Prlic
    See Also:
    Serialized Form
    • Constructor Detail

      • Model

        public Model()
    • Method Detail

      • getPolyChains

        public java.util.List<Chain> getPolyChains()
      • getNonPolyChains

        public java.util.List<Chain> getNonPolyChains()
      • getWaterChains

        public java.util.List<Chain> getWaterChains()
      • getChains

        public java.util.List<Chain> getChains()
        Get all chains: polymeric, non-polymeric and water
        Returns:
      • setChains

        public void setChains​(java.util.List<Chain> modelChains)
      • addChain

        public void addChain​(Chain c)
      • size

        public int size()
        Returns the total number of chains in this model: polymeric, non-polymeric and water
        Returns:
      • toString

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