public interface WSmolecule extends Smolecule
PLEASE DO NOT IMPLEMENT THIS INTERFACE! It may get more abstract methods in later versions.
| Modifier and Type | Method and Description |
|---|---|
void |
addAtom(int atno)
Adds an atom.
|
void |
addAtom(Smolecule smol,
int k)
Adds an atom from another Smolecule.
|
void |
addBond(int atom1,
int atom2,
int type)
Adds a bond.
|
WSmolecule |
newInstance(int na,
int nb,
int aflags)
Creates a new WSmolecule instance with the specified capacity.
|
void |
removeAtom(int k)
Removes an atom.
|
void |
removeBond(int k)
Removes a bond.
|
void |
reset(int aflags)
Clears the molecule and sets the array flags.
|
void |
setAtomMap(int atom,
int map)
Sets the atom-atom mapping number.
|
void |
setAtomStereo(int atom,
int stereo)
Sets atom stereo properties.
|
void |
setCharge(int atom,
int chg)
Sets the charge of an ion.
|
void |
setHybridizationState(int atom,
int hs)
Sets the hybridization state of an atom.
|
void |
setImplicitHcount(int atom,
int h)
Sets the number of implicit Hydrogens.
|
void |
setMassno(int atom,
int m)
Sets the mass number.
|
void |
setRadical(int atom,
int rad)
Sets the radical value of an atom.
|
void |
setRgroupId(int atom,
int rgid)
Sets the R-group identifier of an atom.
|
void |
setValence(int atom,
int v)
Sets the valence.
|
areNeighbors, gearch, getArrayFlags, getAtom1, getAtom2, getAtomMap, getAtomStereo, getAtomType, getBondFlags, getBondIndex, getBondType, getBondType, getCharge, getChirality, getExplicitHcount, getHcount, getHybridizationState, getImplicitHcount, getImplicitHcount, getMassno, getNeighbor, getNeighborCount, getParity, getQPropAsInt, getRadical, getRgroupId, getValence, inAtomListgetAtomCount, getBondCount, getName, propertiesWSmolecule newInstance(int na, int nb, int aflags)
na - the maximum number of atomsnb - the maximum number of bondsaflags - arrays to enable, see Smolecule.A_ALLvoid reset(int aflags)
aflags - the array flagsvoid addAtom(Smolecule smol, int k)
smol - the other Smoleculek - atom index in smolvoid addAtom(int atno)
atno - the atomic numbervoid addBond(int atom1,
int atom2,
int type)
atom1 - first atom indexatom2 - second atom indextype - bond typevoid removeAtom(int k)
k - the atom indexvoid removeBond(int k)
k - the bond indexvoid setCharge(int atom,
int chg)
atom - the atom indexchg - the chargevoid setRadical(int atom,
int rad)
atom - the atom indexrad - the radical valuevoid setHybridizationState(int atom,
int hs)
atom - the atom indexhs - the hybridization stateHybridizationStateConstsvoid setMassno(int atom,
int m)
atom - the atom indexm - the mass number or zero to unsetvoid setValence(int atom,
int v)
atom - the atom indexv - the valencevoid setImplicitHcount(int atom,
int h)
atom - the atom indexh - the number of implicit Hydrogensvoid setRgroupId(int atom,
int rgid)
atom - the atom indexrgid - the R-group identifier or 0 to unsetvoid setAtomMap(int atom,
int map)
atom - the atom indexmap - the map value (positive integer) or 0void setAtomStereo(int atom,
int stereo)
atom - the atom indexstereo - parity | chiralityStereoConstants.PARITY_ODD,
StereoConstants.PARITY_EVEN,
StereoConstants.PARITY_UNSPEC,
StereoConstants.PARITY_EITHER,
StereoConstants.PARITY_MASK,
StereoConstants.CHIRALITY_R,
StereoConstants.CHIRALITY_S,
StereoConstants.CHIRALITY_MASK