public class AtomType extends Isotope implements IAtomType, Serializable, Cloneable
IAtomType.Hybridization
Modifier and Type | Field and Description |
---|---|
protected Integer |
electronValency
The electron Valency of this atom with CDKConstants.UNSET as default.
|
protected Integer |
formalCharge
The formal charge of the atom with CDKConstants.UNSET as default.
|
protected Integer |
formalNeighbourCount
The formal number of neighbours this atom type can have with CDKConstants_UNSET
as default.
|
protected IAtomType.Hybridization |
hybridization
The hybridization state of this atom with CDKConstants.HYBRIDIZATION_UNSET
as default.
|
exactMass, naturalAbundance
atomicNumber
Ac, Ag, Al, Am, Ar, As, At, Au, B, Ba, Be, Bh, Bi, Bk, Br, C, Ca, Cd, Ce, Cf, Cl, Cm, Cn, Co, Cr, Cs, Cu, Db, Ds, Dy, Er, Es, Eu, F, Fe, Fl, Fm, Fr, Ga, Gd, Ge, H, He, Hf, Hg, Ho, Hs, I, In, Ir, K, Kr, La, Li, Lr, Lu, Lv, Mc, Md, Mg, Mn, Mo, Mt, N, Na, Nb, Nd, Ne, Nh, Ni, No, Np, O, Og, Os, P, Pa, Pb, Pd, Pm, Po, Pr, Pt, Pu, Ra, Rb, Re, Rf, Rg, Rh, Rn, Ru, S, Sb, Sc, Se, Sg, Si, Sm, Sn, Sr, Ta, Tb, Tc, Te, Th, Ti, Tl, Tm, Ts, U, V, W, Wildcard, Xe, Y, Yb, Zn, Zr
Constructor and Description |
---|
AtomType(IElement element)
Constructs an isotope by copying the symbol, atomic number,
flags, identifier, exact mass, natural abundance and mass
number from the given IIsotope.
|
AtomType(String elementSymbol)
Constructor for the AtomType object.
|
AtomType(String identifier,
String elementSymbol)
Constructor for the AtomType object.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clones this
IChemObject . |
boolean |
compare(Object object)
Compares a atom type with this atom type.
|
String |
getAtomTypeName()
Gets the id attribute of the AtomType object.
|
Double |
getBondOrderSum()
Gets the bondOrderSum attribute of the AtomType object.
|
Double |
getCovalentRadius()
Returns the covalent radius for this AtomType.
|
Integer |
getFormalCharge()
Returns the formal charge of this atom.
|
Integer |
getFormalNeighbourCount()
Returns the formal neighbour count of this atom.
|
IAtomType.Hybridization |
getHybridization()
Returns the hybridization of this atom.
|
IBond.Order |
getMaxBondOrder()
Gets the MaxBondOrder attribute of the AtomType object.
|
Integer |
getValency()
Gets the the exact electron valency of the AtomType object.
|
void |
setAtomTypeName(String identifier)
Sets the if attribute of the AtomType object.
|
void |
setBondOrderSum(Double bondOrderSum)
Sets the the exact bond order sum attribute of the AtomType object.
|
void |
setCovalentRadius(Double radius)
Sets the covalent radius for this AtomType.
|
void |
setFormalCharge(Integer charge)
Sets the formal charge of this atom.
|
void |
setFormalNeighbourCount(Integer count)
Sets the formal neighbour count of this atom.
|
void |
setHybridization(IAtomType.Hybridization hybridization)
Sets the hybridization of this atom.
|
void |
setMaxBondOrder(IBond.Order maxBondOrder)
Sets the MaxBondOrder attribute of the AtomType object.
|
void |
setValency(Integer valency)
Sets the the exact electron valency of the AtomType object.
|
String |
toString()
A string representation of this isotope.
|
getExactMass, getMassNumber, getNaturalAbundance, setExactMass, setMassNumber, setNaturalAbundance
getAtomicNumber, getSymbol, setAtomicNumber, setSymbol
addListener, addProperties, getBuilder, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, shallowCopy
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getExactMass, getMassNumber, getNaturalAbundance, setExactMass, setMassNumber, setNaturalAbundance
getAtomicNumber, getSymbol, setAtomicNumber, setSymbol
addListener, addProperties, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty
getBuilder
protected Integer formalCharge
AtomType(String)
and
AtomType(String, String)
) will explicitly set this field to 0protected IAtomType.Hybridization hybridization
protected Integer electronValency
protected Integer formalNeighbourCount
public AtomType(String elementSymbol)
CDKConstants.UNSET
.elementSymbol
- Symbol of the atompublic AtomType(String identifier, String elementSymbol)
identifier
- An id for this atom type, like C3 for sp3 carbonelementSymbol
- The element symbol identifying the element to which this atom type appliespublic AtomType(IElement element)
element
- IIsotope to copy information frompublic void setAtomTypeName(String identifier)
setAtomTypeName
in interface IAtomType
identifier
- The new AtomTypeID value. Null if unset.getAtomTypeName()
public void setMaxBondOrder(IBond.Order maxBondOrder)
setMaxBondOrder
in interface IAtomType
maxBondOrder
- The new MaxBondOrder valuegetMaxBondOrder()
public void setBondOrderSum(Double bondOrderSum)
setBondOrderSum
in interface IAtomType
bondOrderSum
- The new bondOrderSum valuegetBondOrderSum()
public String getAtomTypeName()
getAtomTypeName
in interface IAtomType
setAtomTypeName(java.lang.String)
public IBond.Order getMaxBondOrder()
getMaxBondOrder
in interface IAtomType
setMaxBondOrder(org.openscience.cdk.interfaces.IBond.Order)
public Double getBondOrderSum()
getBondOrderSum
in interface IAtomType
setBondOrderSum(java.lang.Double)
public void setFormalCharge(Integer charge)
setFormalCharge
in interface IAtomType
charge
- The formal chargegetFormalCharge()
public Integer getFormalCharge()
getFormalCharge
in interface IAtomType
setFormalCharge(java.lang.Integer)
public void setFormalNeighbourCount(Integer count)
setFormalNeighbourCount
in interface IAtomType
count
- The neighbour countgetFormalNeighbourCount()
public Integer getFormalNeighbourCount()
getFormalNeighbourCount
in interface IAtomType
setFormalNeighbourCount(java.lang.Integer)
public void setHybridization(IAtomType.Hybridization hybridization)
setHybridization
in interface IAtomType
hybridization
- The hybridizationgetHybridization()
public IAtomType.Hybridization getHybridization()
getHybridization
in interface IAtomType
setHybridization(org.openscience.cdk.interfaces.IAtomType.Hybridization)
public boolean compare(Object object)
public void setCovalentRadius(Double radius)
setCovalentRadius
in interface IAtomType
radius
- The covalent radius for this AtomTypegetCovalentRadius()
public Double getCovalentRadius()
getCovalentRadius
in interface IAtomType
setCovalentRadius(java.lang.Double)
public void setValency(Integer valency)
setValency
in interface IAtomType
valency
- The new valency valuegetValency()
public Integer getValency()
getValency
in interface IAtomType
setValency(java.lang.Integer)
public Object clone() throws CloneNotSupportedException
ChemObject
IChemObject
. It clones the identifier, flags,
properties and pointer vectors. The ChemObjectListeners are not cloned, and
neither is the content of the pointer vectors.clone
in interface IChemObject
clone
in class Isotope
CloneNotSupportedException
- if the IChemObject cannot be clonedCopyright © 2021. All rights reserved.