Class MolDistHist

    • Constructor Detail

      • MolDistHist

        public MolDistHist()
      • MolDistHist

        public MolDistHist​(int nNodes)
    • Method Detail

      • check

        public boolean check()
      • copy

        public void copy​(MolDistHist copy)
        Parameters:
        copy - : This object is written into copy.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • getModeFlexophore

        public byte getModeFlexophore()
      • addNode

        public void addNode​(PPNode node)
        Parameters:
        node -
      • getArrNode

        protected byte[] getArrNode()
        Returns:
        the arrNode
      • setArrNode

        protected void setArrNode​(byte[] arrNode)
        Parameters:
        arrNode - the arrNode to set
      • realize

        public void realize()
        Resizes the node array to the needed length.
      • getConnAtom

        public int getConnAtom​(int at,
                               int index)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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

        public java.lang.String toStringNodes()
      • toStringHists

        public java.lang.String toStringHists()
      • isFinalized

        protected boolean isFinalized()
      • getNode

        public PPNode getNode​(int index)
        !Slow method, it has to iterate through a loop to find the node in the array!
        Specified by:
        getNode in interface IMolDistHist
        Parameters:
        index -
        Returns:
        deep copy of the node.
      • getPPPoints

        public int getPPPoints​(int index)
        Parameters:
        index -
        Returns:
        number of pharmacophore points at the specified index slow method because it calls getPositionNode(index).
      • getNumBytesEntry

        public static int getNumBytesEntry()
      • readNodes

        public static java.util.List<PPNode> readNodes​(java.lang.String strMolDistHist)
        reads a MolDistHist from the toString() method.
        Parameters:
        strMolDistHist -
        Returns:
      • read

        public static MolDistHist read​(java.lang.String strMolDistHist)