Class MarkushFeature

    • Constructor Detail

      • MarkushFeature

        public MarkushFeature​(int type,
                              int[] data)
        Constructor. Sets the feature type and data. The possible type - data combinations:
        • RGROUP: {R-atom union index, R-group definition index}
        • LINKNODE: {link atom union index}
        • REPUNIT: {RepeatingUnitSgroup sgroup index in markush}
        • ATOMLIST: {list atom union index}
        • BONDLIST: {list bond union bond index}
        • MULTIBOND: {union bond index, MulticenterSgroup sgroup index in markush}
        R-group definition index: the index returned by RgMolecule.findRgroupIndex(int).
        Parameters:
        type - the feature type
        data - the feature data
      • MarkushFeature

        public MarkushFeature​(int... args)
        Constructor. Sets the feature type and data. The first argument is the feature type, the rest of the argument list is composed to the data array. The possible type - data combinations:
        • RGROUP: {R-atom union index, R-group definition index}
        • LINKNODE: {link atom union index}
        • REPUNIT: {RepeatingUnitSgroup sgroup index in markush}
        • ATOMLIST: {list atom union index}
        • BONDLIST: {list bond union bond index}
        • MULTIBOND: {union bond index, MulticenterSgroup sgroup index in markush}
        R-group definition index: the index returned by RgMolecule.findRgroupIndex(int).
        Parameters:
        args - the argument list, args[0] is the feature type, args[1], ... is the feature data list
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getType

        public int getType()
        Returns the feature type.
        Returns:
        the feature type
      • getData

        public int[] getData()
        Returns the feature data.
        Returns:
        the feature data