| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectchemaxon.struc.Sgroup
S-group.
| Field Summary | |
static int | 
SCN_EITHER_UNKNOWN
Either unknown S-group connectivity.  | 
static int | 
SCN_HEAD_TO_HEAD
Head-to-head S-group connectivity.  | 
static int | 
SCN_HEAD_TO_TAIL
Head-to-tail S-group connectivity.  | 
protected  SelectionMolecule | 
sgroupGraph
The S-group's internal structure.  | 
protected  int | 
sgroupType
The S-group type.  | 
static int | 
SST_ALTERNATING
Alternating polymer S-group subtype.  | 
static int | 
SST_BLOCK
Block polymer S-group subtype.  | 
static int | 
SST_RANDOM
Random polymer S-group subtype.  | 
static int | 
ST_ANY
Any polymer S-group type.  | 
static int | 
ST_COPOLYMER
Copolymer S-group type.  | 
static int | 
ST_CROSSLINK
Crosslink S-group type.  | 
static int | 
ST_DATA
Data S-group type.  | 
static int | 
ST_FORMULATION
Formulation S-group type.  | 
static int | 
ST_GENERIC
Generic S-group type.  | 
static int | 
ST_MER
Mer S-group type.  | 
static int | 
ST_MIXTURE
Mixture S-group type.  | 
static int | 
ST_MODIFICATION
Modification S-group type.  | 
static int | 
ST_MONOMER
Monomer S-group type.  | 
static int | 
ST_MULTIPLE
Multiple group S-group type.  | 
static int | 
ST_SRU
SRU S-group type.  | 
static int | 
ST_SUPERATOM
Superatom S-group type.  | 
| Constructor Summary | |
Sgroup(Molecule parent,
       int t)
Creates an S-group with the specified parent and type.  | 
|
| Method Summary | |
 void | 
add(MolAtom a)
Adds a new atom to the S-group.  | 
 SelectionMolecule | 
cloneStructure()
Gets the clone of the structure stored.  | 
protected  void | 
copy(Sgroup sg2,
     Molecule m)
Make a copy of this S-group.  | 
 int | 
countAllAtoms()
Counts the total number of atoms recursively.  | 
 Molecule | 
createMolecule()
Creates a molecule object that contains only this group.  | 
 MolBond[] | 
findCrossingBonds()
Finds the crossing bonds.  | 
 MolAtom | 
getAtom(int i)
Gets an atom in the S-group.  | 
 MolAtom[] | 
getAtomArray()
Gets the array of atoms in the S-group.  | 
 int | 
getAtomCount()
Gets the number of atoms in the S-group.  | 
 int | 
getConnectivity()
Gets S-group connectivity.  | 
 MolAtom[] | 
getCrossingAtoms(MolBond[] xbonds)
Gets the atoms that have crossing bonds.  | 
 Molecule | 
getParentMolecule()
Gets the parent molecule.  | 
 SelectionMolecule | 
getSgroupGraph()
Gets the molecule graph.  | 
 java.lang.String | 
getSubscript()
Gets the subscript for non-superatom S-groups.  | 
 int | 
getSubType()
Gets polymer S-group subtype.  | 
 java.lang.String | 
getSuperscript()
Gets the superscript for non-superatom S-groups.  | 
 int | 
getType()
Gets S-group type.  | 
 boolean | 
hasBrackets()
Checks if brackets should be painted or not.  | 
 int | 
indexOf(MolAtom a)
Gets the atom index in the S-group graph.  | 
 boolean | 
isEmpty()
Is it an empty S-group?  | 
 Sgroup | 
newInstance()
Gets a new Sgroup instance.  | 
 void | 
removeAtom(MolAtom a)
Removes an atom from the S-group.  | 
protected  void | 
removeBond(MolBond b)
Removes a bond from the S-group.  | 
 void | 
removeEdges()
Removes the edge references.  | 
protected static void | 
removeGroupedAtom(Molecule m,
                  MolAtom a,
                  MolBond[] v)
Removes an atom from the molecule and remove its specified bonds.  | 
 void | 
setAtom(int i,
        MolAtom a)
Sets the specified atom in the S-group graph.  | 
 void | 
setConnectivity(int c)
Sets S-group connectivity.  | 
protected  void | 
setParentMolecule(Molecule p)
Sets the parent molecule.  | 
 void | 
setSgroupGraph(SelectionMolecule smol)
Sets the molecule graph.  | 
 void | 
setSubscript(java.lang.String s)
Sets the subscript for non-superatom S-groups.  | 
 void | 
setSubType(int t)
Sets polymer S-group subtype.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final int ST_SUPERATOM
public static final int ST_MULTIPLE
public static final int ST_SRU
public static final int ST_MONOMER
public static final int ST_MER
public static final int ST_COPOLYMER
public static final int ST_CROSSLINK
public static final int ST_MODIFICATION
public static final int ST_MIXTURE
public static final int ST_FORMULATION
public static final int ST_DATA
public static final int ST_ANY
public static final int ST_GENERIC
public static final int SST_ALTERNATING
public static final int SST_RANDOM
public static final int SST_BLOCK
public static final int SCN_EITHER_UNKNOWN
public static final int SCN_HEAD_TO_HEAD
public static final int SCN_HEAD_TO_TAIL
protected transient int sgroupType
protected transient SelectionMolecule sgroupGraph
| Constructor Detail | 
public Sgroup(Molecule parent,
              int t)
parent - the parent moleculet - S-group type| Method Detail | 
public void setSgroupGraph(SelectionMolecule smol)
smol - the molecule graphpublic SelectionMolecule getSgroupGraph()
protected final void setParentMolecule(Molecule p)
p - the parent moleculepublic final Molecule getParentMolecule()
public java.lang.String getSuperscript()
public void setSubscript(java.lang.String s)
s - the subscriptpublic java.lang.String getSubscript()
public int getType()
ST_SUPERATOM, 
ST_MULTIPLE, 
ST_SRU, 
ST_MONOMER, 
ST_MER, 
ST_COPOLYMER, 
ST_CROSSLINK, 
ST_MODIFICATION, 
ST_MODIFICATION, 
ST_MIXTURE, 
ST_FORMULATION, 
ST_DATA, 
ST_ANY, 
ST_GENERICpublic int getSubType()
SST_ALTERNATING, 
SST_RANDOM, 
SST_BLOCKpublic void setSubType(int t)
t - the typegetSubType()public int getConnectivity()
SCN_EITHER_UNKNOWN, 
SCN_HEAD_TO_HEAD, 
SCN_HEAD_TO_TAILpublic void setConnectivity(int c)
c - the connectivitygetConnectivity()public boolean hasBrackets()
public final SelectionMolecule cloneStructure()
public final Molecule createMolecule()
public final MolAtom[] getAtomArray()
public final MolAtom getAtom(int i)
i - the atom index
public final int countAllAtoms()
public final boolean isEmpty()
public Sgroup newInstance()
public final int getAtomCount()
public int indexOf(MolAtom a)
a - the atom
public void add(MolAtom a)
a - the atom
public void setAtom(int i,
                    MolAtom a)
i - the indexa - the atompublic void removeEdges()
public void removeAtom(MolAtom a)
a - the atomprotected void removeBond(MolBond b)
b - the bondpublic MolBond[] findCrossingBonds()
public MolAtom[] getCrossingAtoms(MolBond[] xbonds)
xbonds - the crossing bonds
protected void copy(Sgroup sg2,
                    Molecule m)
sg2 - the target S-groupm - the target molecule or null
protected static void removeGroupedAtom(Molecule m,
                                        MolAtom a,
                                        MolBond[] v)
m - the moleculea - the atomv - bonds to remove from the atom, remove all bonds if nullCGraph.removeNode(int, int)
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||