Class MarkushFeature

java.lang.Object
chemaxon.sss.search.MarkushFeature
All Implemented Interfaces:
Serializable

@PublicAPI public class MarkushFeature extends Object implements Serializable
Markush feature identifier. Identifies a Markush feature in a Markush structure.
Since:
JChem 5.4
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Expansion type: atom list.
    static final int
    Expansion type: bond list.
    static final int
    Expansion type: link node.
    static final int
    Expansion type: multiple position bond.
    static final int
    Expansion type: repeating unit.
    static final int
    Expansion type: R-grgoup.
  • Constructor Summary

    Constructors
    Constructor
    Description
    MarkushFeature(int... args)
    Constructor.
    MarkushFeature(int type, int[] data)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int[]
    Returns the feature data.
    int
    Returns the feature type.
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • RGROUP

      public static final int RGROUP
      Expansion type: R-grgoup.
      See Also:
    • LINKNODE

      public static final int LINKNODE
      Expansion type: link node.
      See Also:
    • REPUNIT

      public static final int REPUNIT
      Expansion type: repeating unit.
      See Also:
    • ATOMLIST

      public static final int ATOMLIST
      Expansion type: atom list.
      See Also:
    • BONDLIST

      public static final int BONDLIST
      Expansion type: bond list.
      See Also:
    • MULTIBOND

      public static final int MULTIBOND
      Expansion type: multiple position bond.
      See Also:
  • Constructor Details

    • 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 Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object