|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object chemaxon.struc.Sgroup chemaxon.struc.sgroup.MultipleSgroup
S-group.
Field Summary |
Fields inherited from class chemaxon.struc.Sgroup |
SCN_EITHER_UNKNOWN, SCN_HEAD_TO_HEAD, SCN_HEAD_TO_TAIL, sgroupGraph, sgroupType, SST_ALTERNATING, SST_BLOCK, SST_RANDOM, ST_ANY, ST_COPOLYMER, ST_CROSSLINK, ST_DATA, ST_FORMULATION, ST_GENERIC, ST_MER, ST_MIXTURE, ST_MODIFICATION, ST_MONOMER, ST_MULTIPLE, ST_SRU, ST_SUPERATOM |
Fields inherited from interface chemaxon.struc.sgroup.Expandable |
DEFAULT_OPTIONS, MDL_EXPAND |
Constructor Summary | |
MultipleSgroup(Molecule parent,
boolean expanded)
Constructs a multiple S-group. |
Method Summary | |
boolean |
contract(int opts)
Contracts this S-group. |
protected void |
copy(Sgroup sg2,
Molecule m)
Make a copy of this S-group. |
boolean |
expand(int opts)
Expands this S-group. |
int |
getMultiplier()
Gets the multiplier. |
MolAtom |
getRepeatingUnitAtom(int i)
Gets a paradigmatic repeating unit atom. |
int |
getRepeatingUnitAtomCount()
Gets the number of atoms in the pararadigmatic repeating unit. |
java.lang.String |
getSubscript()
Gets the subscript. |
boolean |
isContracted()
Is this S-group contracted? |
boolean |
isExpanded()
Is this S-group expanded? |
boolean |
isRepeatingUnitAtom(MolAtom a)
Checks if the specified atom object is in the paradigmatic repeating unit or not. |
Sgroup |
newInstance()
Gets a new MultipleSgroup instance. |
void |
removeAtom(MolAtom a)
Removes an atom from the S-group. |
void |
setAtom(int i,
MolAtom a)
Sets the specified atom in the S-group graph. |
void |
setMultiplier(int m)
Sets the multiplier. |
void |
setRepeatingUnitAtom(MolAtom a,
boolean set)
Adds or removes an atom to/from the list of paradigmatic repeating unit atoms. |
void |
setSubscript(java.lang.String s)
Sets the subscript. |
Methods inherited from class chemaxon.struc.Sgroup |
add, cloneStructure, countAllAtoms, createMolecule, findCrossingBonds, getAtom, getAtomArray, getAtomCount, getConnectivity, getCrossingAtoms, getParentMolecule, getSgroupGraph, getSubType, getSuperscript, getType, hasBrackets, indexOf, isEmpty, removeBond, removeEdges, removeGroupedAtom, setConnectivity, setParentMolecule, setSgroupGraph, setSubType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MultipleSgroup(Molecule parent, boolean expanded)
parent
- the parent moleculeexpanded
- whether the S-group is created in expanded state or notMethod Detail |
public final boolean isRepeatingUnitAtom(MolAtom a)
a
- the atom to check
public final int getRepeatingUnitAtomCount()
public final MolAtom getRepeatingUnitAtom(int i)
i
- the paradigmatic repeating unit atom index
public final void setRepeatingUnitAtom(MolAtom a, boolean set)
a
- the atomset
- add (true) or remove (false)public final int getMultiplier()
public final void setMultiplier(int m)
m
- the multiplierpublic Sgroup newInstance()
newInstance
in class Sgroup
public final void setAtom(int i, MolAtom a)
setAtom
in class Sgroup
i
- the indexa
- the atompublic final void removeAtom(MolAtom a)
removeAtom
in class Sgroup
a
- the atomprotected final void copy(Sgroup sg2, Molecule m)
copy
in class Sgroup
sg2
- the target S-groupm
- the target molecule or nullpublic void setSubscript(java.lang.String s)
setSubscript
in class Sgroup
s
- the multiplier as a stringpublic java.lang.String getSubscript()
getSubscript
in class Sgroup
public final boolean expand(int opts)
expand
in interface Expandable
opts
- expansion options
Expandable.DEFAULT_OPTIONS
,
Expandable.MDL_EXPAND
public final boolean isExpanded()
isExpanded
in interface Expandable
public final boolean contract(int opts)
contract
in interface Expandable
opts
- contraction options
Expandable.DEFAULT_OPTIONS
public final boolean isContracted()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |