Class SolutionCompleteGraph

  • All Implemented Interfaces:
    java.lang.Comparable<SolutionCompleteGraph>
    Direct Known Subclasses:
    ModelSolutionSimilarity

    public class SolutionCompleteGraph
    extends AMemorizedObject
    implements java.lang.Comparable<SolutionCompleteGraph>
    SolutionCompleteGraph

    Copyright: Actelion Ltd., Inc. All Rights Reserved This software is the proprietary information of Actelion Pharmaceuticals, Ltd. Use is subject to license terms.

    Version:
    1.0 Oct 1, 2012 MvK: Start implementation
    Author:
    Modest von Korff
    • Constructor Detail

      • SolutionCompleteGraph

        public SolutionCompleteGraph()
    • Method Detail

      • add

        public void add​(byte indexNodeQuery,
                        byte indexNodeBase)
        Adds a pair of nodes to this solution.
        Parameters:
        indexNodeBase - index of the base node in the complete base graph.
        indexNodeQuery - index of the query node in the complete query graph.
      • getSizeHeap

        public int getSizeHeap()
      • getIndexBaseFromHeap

        public byte getIndexBaseFromHeap​(int indexOnHeapBase)
      • getIndexQueryFromHeap

        public byte getIndexQueryFromHeap​(int indexOnHeapQuery)
      • getIndexCorrespondingBaseNode

        public byte getIndexCorrespondingBaseNode​(int indexQueryNode)
      • getSolution

        public byte[] getSolution()
        The index is the index of the node in the query molecule. The value at 'index' is the index of the node in the base molecule.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public double getSimilarity()
      • setSimilarity

        public void setSimilarity​(double similarity)
      • setNodesQuery

        public void setNodesQuery​(int nodes)
        Only needed for the toString() method.
        Parameters:
        nodes -
      • getNodesQuery

        public int getNodesQuery()
      • toString

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