chemaxon.sss.search
Class MarkushFeature

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

public class MarkushFeature
extends java.lang.Object
implements java.io.Serializable

Markush feature identifier. Identifies a Markush feature in a Markush structure.

Since:
JChem 5.4
Author:
Nora Mate
See Also:
Serialized Form

Field Summary
static int ATOMLIST
          Expansion type: atom list.
static int BONDLIST
          Expansion type: bond list.
static int LINKNODE
          Expansion type: link node.
static int MULTIBOND
          Expansion type: multiple position bond.
static int REPUNIT
          Expansion type: repeating unit.
static int RGROUP
          Expansion type: R-grgoup.
 
Constructor Summary
MarkushFeature(int... args)
          Constructor.
MarkushFeature(int type, int[] data)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int[] getData()
          Returns the feature data.
 int getType()
          Returns the feature type.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

RGROUP

public static final int RGROUP
Expansion type: R-grgoup.

See Also:
Constant Field Values

LINKNODE

public static final int LINKNODE
Expansion type: link node.

See Also:
Constant Field Values

REPUNIT

public static final int REPUNIT
Expansion type: repeating unit.

See Also:
Constant Field Values

ATOMLIST

public static final int ATOMLIST
Expansion type: atom list.

See Also:
Constant Field Values

BONDLIST

public static final int BONDLIST
Expansion type: bond list.

See Also:
Constant Field Values

MULTIBOND

public static final int MULTIBOND
Expansion type: multiple position bond.

See Also:
Constant Field Values
Constructor Detail

MarkushFeature

public MarkushFeature(int type,
                      int[] data)
Constructor. Sets the feature type and data. The possible type - data combinations: 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: 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

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object