Package chemaxon.sss.search
Class MarkushFeature
java.lang.Object
chemaxon.sss.search.MarkushFeature
- All Implemented Interfaces:
Serializable
Markush feature identifier. Identifies a Markush feature in a Markush structure.
- Since:
- JChem 5.4
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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
ConstructorsConstructorDescriptionMarkushFeature
(int... args) Constructor.MarkushFeature
(int type, int[] data) Constructor. -
Method Summary
-
Field Details
-
RGROUP
public static final int RGROUPExpansion type: R-grgoup.- See Also:
-
LINKNODE
public static final int LINKNODEExpansion type: link node.- See Also:
-
REPUNIT
public static final int REPUNITExpansion type: repeating unit.- See Also:
-
ATOMLIST
public static final int ATOMLISTExpansion type: atom list.- See Also:
-
BONDLIST
public static final int BONDLISTExpansion type: bond list.- See Also:
-
MULTIBOND
public static final int MULTIBONDExpansion 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}
RgMolecule.findRgroupIndex(int)
.- Parameters:
type
- the feature typedata
- 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}
RgMolecule.findRgroupIndex(int)
.- Parameters:
args
- the argument list, args[0] is the feature type, args[1], ... is the feature data list
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
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
-