public class DebugPseudoAtom extends PseudoAtom implements IPseudoAtom
IAtomType.Hybridization
charge, fractionalPoint3d, hydrogenCount, point2d, point3d, stereoParity
electronValency, formalCharge, formalNeighbourCount, hybridization
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 |
---|
DebugPseudoAtom() |
DebugPseudoAtom(IElement element) |
DebugPseudoAtom(String symbol) |
DebugPseudoAtom(String symbol,
javax.vecmath.Point2d point2d) |
DebugPseudoAtom(String symbol,
javax.vecmath.Point3d point3d) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(IChemObjectListener col)
Use this to add yourself to this IChemObject as a listener.
|
void |
addProperties(Map<Object,Object> properties)
Sets the properties of this object.
|
IPseudoAtom |
clone()
Clones this atom object and its content.
|
Integer |
getAtomicNumber()
Returns the atomic number of this element.
|
String |
getAtomTypeName()
Gets the id attribute of the AtomType object.
|
Double |
getBondOrderSum()
Gets the bondOrderSum attribute of the AtomType object.
|
IChemObjectBuilder |
getBuilder()
Returns a
IChemObjectBuilder for the data classes that extend
this class. |
Double |
getCharge()
Returns the partial charge of this atom.
|
Double |
getCovalentRadius()
Returns the covalent radius for this AtomType.
|
Double |
getExactMass()
Gets the ExactMass attribute of the Isotope object.
|
boolean |
getFlag(int flagType)
Returns the value of a given flag.
|
boolean[] |
getFlags()
Returns the whole set of flags.
|
Integer |
getFormalCharge()
Returns the formal charge of this atom.
|
Integer |
getFormalNeighbourCount()
Returns the formal neighbour count of this atom.
|
javax.vecmath.Point3d |
getFractionalPoint3d()
Returns a point specifying the location of this
atom in a Crystal unit cell.
|
IAtomType.Hybridization |
getHybridization()
Returns the hybridization of this atom.
|
String |
getID()
Returns the identifier (ID) of this object.
|
Integer |
getImplicitHydrogenCount()
Returns the hydrogen count of this atom.
|
String |
getLabel()
Returns the label of this PseudoAtom.
|
int |
getListenerCount()
Returns the number of ChemObjectListeners registered with this object.
|
Integer |
getMassNumber()
Returns the atomic mass of this element.
|
IBond.Order |
getMaxBondOrder()
Gets the MaxBondOrder attribute of the AtomType object.
|
Double |
getNaturalAbundance()
Gets the NaturalAbundance attribute of the Isotope object.
|
javax.vecmath.Point2d |
getPoint2d()
Returns a point specifying the location of this
atom in a 2D space.
|
javax.vecmath.Point3d |
getPoint3d()
Returns a point specifying the location of this
atom in a 3D space.
|
Map<Object,Object> |
getProperties()
Returns a Map with the IChemObject's properties.
|
<T> T |
getProperty(Object description)
Returns a property for the IChemObject.
|
Integer |
getStereoParity()
Returns the stereo parity of this atom.
|
String |
getSymbol()
Returns the element symbol of this element.
|
Integer |
getValency()
Gets the the exact electron valency of the AtomType object.
|
void |
notifyChanged()
This should be triggered by an method that changes the content of an object
to that the registered listeners can react to it.
|
void |
notifyChanged(IChemObjectChangeEvent evt)
This should be triggered by an method that changes the content of an object
to that the registered listeners can react to it.
|
void |
removeListener(IChemObjectListener col)
Use this to remove a ChemObjectListener from the ListenerList of this
IChemObject.
|
void |
removeProperty(Object description)
Removes a property for a IChemObject.
|
void |
setAtomicNumber(Integer atomicNumber)
Sets the atomic number of this element.
|
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 |
setCharge(Double charge)
Sets the partial charge of this atom.
|
void |
setCovalentRadius(Double radius)
Sets the covalent radius for this AtomType.
|
void |
setExactMass(Double exactMass)
Sets the ExactMass attribute of the Isotope object.
|
void |
setFlag(int flagType,
boolean flagValue)
Sets the value of some flag.
|
void |
setFlags(boolean[] flagsNew)
Sets the whole set of flags.
|
void |
setFormalCharge(Integer charge)
Sets the formal charge of this atom.
|
void |
setFormalNeighbourCount(Integer count)
Sets the formal neighbour count of this atom.
|
void |
setFractionalPoint3d(javax.vecmath.Point3d point3d)
Sets a point specifying the location of this
atom in a Crystal unit cell.
|
void |
setHybridization(IAtomType.Hybridization hybridization)
Sets the hybridization of this atom.
|
void |
setID(String identifier)
Sets the identifier (ID) of this object.
|
void |
setImplicitHydrogenCount(Integer hydrogenCount)
Sets the number of implicit hydrogen count of this atom.
|
void |
setLabel(String label)
Sets the label of this PseudoAtom.
|
void |
setMassNumber(Integer massNumber)
Sets the atomic mass of this element.
|
void |
setMaxBondOrder(IBond.Order maxBondOrder)
Sets the MaxBondOrder attribute of the AtomType object.
|
void |
setNaturalAbundance(Double naturalAbundance)
Sets the NaturalAbundance attribute of the Isotope object.
|
void |
setPoint2d(javax.vecmath.Point2d point2d)
Sets a point specifying the location of this
atom in a 2D space.
|
void |
setPoint3d(javax.vecmath.Point3d point3d)
Sets a point specifying the location of this
atom in 3D space.
|
void |
setProperty(Object description,
Object property)
Sets a property for a IChemObject.
|
void |
setStereoParity(Integer stereoParity)
Dummy method: the stereo parity is undefined, final.
|
void |
setSymbol(String symbol)
Sets the element symbol of this element.
|
void |
setValency(Integer valency)
Sets the the exact electron valency of the AtomType object.
|
getAttachPointNum, setAttachPointNum, toString
bonds, compare, equals, getBond, getBondCount, getContainer, getIndex, getMapIdx, hashCode, isAromatic, isInRing, setIsAromatic, setIsInRing, setMapIdx
getFlagValue, getNotification, getProperty, setNotification, setProperties, shallowCopy
finalize, getClass, notify, notifyAll, wait, wait, wait
getAttachPointNum, setAttachPointNum
bonds, getBond, getBondCount, getContainer, getIndex, getMapIdx, isAromatic, isInRing, setIsAromatic, setIsInRing, setMapIdx
getFlagValue, getNotification, getProperty, setNotification, setProperties, toString
public DebugPseudoAtom()
public DebugPseudoAtom(IElement element)
public DebugPseudoAtom(String symbol)
public DebugPseudoAtom(String symbol, javax.vecmath.Point2d point2d)
public DebugPseudoAtom(String symbol, javax.vecmath.Point3d point3d)
public void setCharge(Double charge)
setCharge
in interface IAtom
setCharge
in class Atom
charge
- The partial chargeAtom.getCharge()
public Double getCharge()
getCharge
in interface IAtom
getCharge
in class Atom
Atom.setCharge(java.lang.Double)
public void setImplicitHydrogenCount(Integer hydrogenCount)
setImplicitHydrogenCount
in interface IAtom
setImplicitHydrogenCount
in class Atom
hydrogenCount
- The number of hydrogen atoms bonded to this atom.Atom.getImplicitHydrogenCount()
public Integer getImplicitHydrogenCount()
getImplicitHydrogenCount
in interface IAtom
getImplicitHydrogenCount
in class Atom
Atom.setImplicitHydrogenCount(java.lang.Integer)
public void setPoint2d(javax.vecmath.Point2d point2d)
setPoint2d
in interface IAtom
setPoint2d
in class Atom
point2d
- A point in a 2D planeAtom.getPoint2d()
public void setPoint3d(javax.vecmath.Point3d point3d)
setPoint3d
in interface IAtom
setPoint3d
in class Atom
point3d
- A point in a 3-dimensional spaceAtom.getPoint3d()
public void setFractionalPoint3d(javax.vecmath.Point3d point3d)
setFractionalPoint3d
in interface IAtom
setFractionalPoint3d
in class Atom
point3d
- A point in a 3d fractional unit cell spaceAtom.getFractionalPoint3d()
,
Crystal
public void setStereoParity(Integer stereoParity)
setStereoParity
in interface IAtom
setStereoParity
in class PseudoAtom
stereoParity
- The stereo parity for this atomfor predefined values.
,
Atom.getStereoParity()
public javax.vecmath.Point2d getPoint2d()
getPoint2d
in interface IAtom
getPoint2d
in class Atom
Atom.setPoint2d(javax.vecmath.Point2d)
public javax.vecmath.Point3d getPoint3d()
getPoint3d
in interface IAtom
getPoint3d
in class Atom
Atom.setPoint3d(javax.vecmath.Point3d)
public javax.vecmath.Point3d getFractionalPoint3d()
getFractionalPoint3d
in interface IAtom
getFractionalPoint3d
in class Atom
Atom.setFractionalPoint3d(javax.vecmath.Point3d)
,
for predefined values.
public Integer getStereoParity()
getStereoParity
in interface IAtom
getStereoParity
in class Atom
CDKConstants
,
Atom.setStereoParity(java.lang.Integer)
public void setAtomTypeName(String identifier)
setAtomTypeName
in interface IAtomType
setAtomTypeName
in class AtomType
identifier
- The new AtomTypeID value. Null if unset.AtomType.getAtomTypeName()
public void setMaxBondOrder(IBond.Order maxBondOrder)
setMaxBondOrder
in interface IAtomType
setMaxBondOrder
in class AtomType
maxBondOrder
- The new MaxBondOrder valueAtomType.getMaxBondOrder()
public void setBondOrderSum(Double bondOrderSum)
setBondOrderSum
in interface IAtomType
setBondOrderSum
in class AtomType
bondOrderSum
- The new bondOrderSum valueAtomType.getBondOrderSum()
public String getAtomTypeName()
getAtomTypeName
in interface IAtomType
getAtomTypeName
in class AtomType
AtomType.setAtomTypeName(java.lang.String)
public IBond.Order getMaxBondOrder()
getMaxBondOrder
in interface IAtomType
getMaxBondOrder
in class AtomType
AtomType.setMaxBondOrder(org.openscience.cdk.interfaces.IBond.Order)
public Double getBondOrderSum()
getBondOrderSum
in interface IAtomType
getBondOrderSum
in class AtomType
AtomType.setBondOrderSum(java.lang.Double)
public void setFormalCharge(Integer charge)
setFormalCharge
in interface IAtomType
setFormalCharge
in class AtomType
charge
- The formal chargeAtomType.getFormalCharge()
public Integer getFormalCharge()
getFormalCharge
in interface IAtomType
getFormalCharge
in class AtomType
AtomType.setFormalCharge(java.lang.Integer)
public void setFormalNeighbourCount(Integer count)
setFormalNeighbourCount
in interface IAtomType
setFormalNeighbourCount
in class AtomType
count
- The neighbour countAtomType.getFormalNeighbourCount()
public Integer getFormalNeighbourCount()
getFormalNeighbourCount
in interface IAtomType
getFormalNeighbourCount
in class AtomType
AtomType.setFormalNeighbourCount(java.lang.Integer)
public void setHybridization(IAtomType.Hybridization hybridization)
setHybridization
in interface IAtomType
setHybridization
in class AtomType
hybridization
- The hybridizationAtomType.getHybridization()
public IAtomType.Hybridization getHybridization()
getHybridization
in interface IAtomType
getHybridization
in class AtomType
AtomType.setHybridization(org.openscience.cdk.interfaces.IAtomType.Hybridization)
public void setCovalentRadius(Double radius)
setCovalentRadius
in interface IAtomType
setCovalentRadius
in class AtomType
radius
- The covalent radius for this AtomTypeAtomType.getCovalentRadius()
public Double getCovalentRadius()
getCovalentRadius
in interface IAtomType
getCovalentRadius
in class AtomType
AtomType.setCovalentRadius(java.lang.Double)
public void setValency(Integer valency)
setValency
in interface IAtomType
setValency
in class AtomType
valency
- The new valency valueAtomType.getValency()
public Integer getValency()
getValency
in interface IAtomType
getValency
in class AtomType
AtomType.setValency(java.lang.Integer)
public void setNaturalAbundance(Double naturalAbundance)
setNaturalAbundance
in interface IIsotope
setNaturalAbundance
in class Isotope
naturalAbundance
- The new NaturalAbundance valueIsotope.getNaturalAbundance()
public void setExactMass(Double exactMass)
setExactMass
in interface IIsotope
setExactMass
in class Isotope
exactMass
- The new ExactMass valueIsotope.getExactMass()
public Double getNaturalAbundance()
Once instantiated all field not filled by passing parameters to the constructor are null. Isotopes can be configured by using the IsotopeFactory.configure() method:
Isotope isotope = new Isotope("C", 13); IsotopeFactory if = IsotopeFactory.getInstance(isotope.getNewBuilder()); if.configure(isotope);
getNaturalAbundance
in interface IIsotope
getNaturalAbundance
in class Isotope
Isotope.setNaturalAbundance(java.lang.Double)
public Double getExactMass()
Once instantiated all field not filled by passing parameters to the constructor are null. Isotopes can be configured by using the IsotopeFactory.configure() method:
Isotope isotope = new Isotope("C", 13); IsotopeFactory if = IsotopeFactory.getInstance(isotope.getNewBuilder()); if.configure(isotope);
getExactMass
in interface IIsotope
getExactMass
in class Isotope
Isotope.setExactMass(java.lang.Double)
public Integer getMassNumber()
Once instantiated all field not filled by passing parameters to the constructor are null. Isotopes can be configured by using the IsotopeFactory.configure() method:
Isotope isotope = new Isotope("C", 13); IsotopeFactory if = IsotopeFactory.getInstance(isotope.getNewBuilder()); if.configure(isotope);
getMassNumber
in interface IIsotope
getMassNumber
in class Isotope
Isotope.setMassNumber(Integer)
public void setMassNumber(Integer massNumber)
setMassNumber
in interface IIsotope
setMassNumber
in class Isotope
massNumber
- The atomic mass to be assigned to this elementIsotope.getMassNumber()
public Integer getAtomicNumber()
Once instantiated all field not filled by passing parameters to the constructor are null. Elements can be configured by using the IsotopeFactory.configure() method:
Element element = new Element("C"); IsotopeFactory if = IsotopeFactory.getInstance(element.getNewBuilder()); if.configure(element);
getAtomicNumber
in interface IElement
getAtomicNumber
in class Element
Element.setAtomicNumber(java.lang.Integer)
public void setAtomicNumber(Integer atomicNumber)
setAtomicNumber
in interface IElement
setAtomicNumber
in class Element
atomicNumber
- The atomic mass to be assigned to this elementElement.getAtomicNumber()
public String getSymbol()
getSymbol
in interface IElement
getSymbol
in class Element
Element.setSymbol(java.lang.String)
public void setSymbol(String symbol)
setSymbol
in interface IElement
setSymbol
in class Element
symbol
- The element symbol to be assigned to this atomElement.getSymbol()
public void addListener(IChemObjectListener col)
addListener
in interface IChemObject
addListener
in class ChemObject
col
- the ChemObjectListenerChemObject.removeListener(org.openscience.cdk.interfaces.IChemObjectListener)
public int getListenerCount()
getListenerCount
in interface IChemObject
getListenerCount
in class ChemObject
public void removeListener(IChemObjectListener col)
removeListener
in interface IChemObject
removeListener
in class ChemObject
col
- The ChemObjectListener to be removedChemObject.addListener(org.openscience.cdk.interfaces.IChemObjectListener)
public void notifyChanged()
notifyChanged
in interface IChemObject
notifyChanged
in class ChemObject
public void notifyChanged(IChemObjectChangeEvent evt)
notifyChanged
in interface IChemObject
notifyChanged
in class ChemObject
evt
- A ChemObjectChangeEvent pointing to the source of where
the change happenedpublic void setProperty(Object description, Object property)
setProperty
in interface IChemObject
setProperty
in class ChemObject
description
- An object description of the property (most likely a
unique string)property
- An object with the property itselfChemObject.getProperty(java.lang.Object)
,
ChemObject.removeProperty(java.lang.Object)
public void removeProperty(Object description)
removeProperty
in interface IChemObject
removeProperty
in class ChemObject
description
- The object description of the property (most likely a
unique string)ChemObject.setProperty(java.lang.Object, java.lang.Object)
,
ChemObject.getProperty(java.lang.Object)
public <T> T getProperty(Object description)
getProperty
in interface IChemObject
getProperty
in class ChemObject
T
- generic return typedescription
- An object description of the property (most likely a
unique string)ChemObject.setProperty(java.lang.Object, java.lang.Object)
,
ChemObject.removeProperty(java.lang.Object)
public Map<Object,Object> getProperties()
getProperties
in interface IChemObject
getProperties
in class ChemObject
ChemObject.addProperties(java.util.Map<java.lang.Object, java.lang.Object>)
public String getID()
getID
in interface IChemObject
getID
in class ChemObject
ChemObject.setID(java.lang.String)
public void setID(String identifier)
setID
in interface IChemObject
setID
in class ChemObject
identifier
- a String representing the ID valueChemObject.getID()
public void setFlag(int flagType, boolean flagValue)
CDKConstants.ISAROMATIC
or CDKConstants.VISITED
). The flags are
intrinsic internal properties and should not be used to store custom
values, please use IChemObject.setProperty(Object, Object)
.
// set this chem object to be aromatic
chemObject.setFlag(CDKConstants.ISAROMATIC, Boolean.TRUE);
// ...
// indicate we have visited this chem object
chemObject.setFlag(CDKConstants.VISITED, Boolean.TRUE);
setFlag
in interface IChemObject
setFlag
in class ChemObject
flagType
- flag to set the value forflagValue
- value to assign to flagIChemObject.getFlag(int)
,
CDKConstants
public boolean getFlag(int flagType)
CDKConstants.ISAROMATIC
).
if(chemObject.getFlag(CDKConstants.ISAROMATIC)){
// handle aromatic flag on this chem object
}
getFlag
in interface IChemObject
getFlag
in class ChemObject
flagType
- flag to retrieve the value offlag_type
is setIChemObject.setFlag(int, boolean)
,
CDKConstants
public void addProperties(Map<Object,Object> properties)
addProperties
in interface IChemObject
addProperties
in class ChemObject
properties
- a Hashtable specifying the property valuesChemObject.getProperties()
public void setFlags(boolean[] flagsNew)
setFlags
in interface IChemObject
setFlags
in class ChemObject
flagsNew
- the new flags.ChemObject.getFlags()
public boolean[] getFlags()
getFlags
in interface IChemObject
getFlags
in class ChemObject
ChemObject.setFlags(boolean[])
public IPseudoAtom clone() throws CloneNotSupportedException
clone
in interface IAtom
clone
in interface IChemObject
clone
in interface IPseudoAtom
clone
in class PseudoAtom
CloneNotSupportedException
- if the IChemObject cannot be clonedpublic IChemObjectBuilder getBuilder()
IChemObjectBuilder
for the data classes that extend
this class.getBuilder
in interface ICDKObject
getBuilder
in class ChemObject
IChemObjectBuilder
matching this ICDKObject
public String getLabel()
getLabel
in interface IPseudoAtom
getLabel
in class PseudoAtom
PseudoAtom.setLabel(java.lang.String)
public void setLabel(String label)
setLabel
in interface IPseudoAtom
setLabel
in class PseudoAtom
label
- The new label for this PseudoAtomPseudoAtom.getLabel()
Copyright © 2021. All rights reserved.