Interface IElement
- All Superinterfaces:
Cloneable, ICDKObject, IChemObject
- All Known Subinterfaces:
IAtom, IAtomType, IFragmentAtom, IIsotope, IPDBAtom, IPseudoAtom, IQueryAtom
- All Known Implementing Classes:
AliphaticAtom, AliphaticSymbolAtom, AnyAtom, AromaticAtom, AromaticSymbolAtom, Atom, Atom, AtomicNumberAtom, AtomRef, AtomType, AtomType, ChiralityAtom, DebugAtom, DebugAtomType, DebugElement, DebugFragmentAtom, DebugIsotope, DebugPDBAtom, DebugPseudoAtom, Element, Element, EnzymeResidueLocator, ExplicitConnectionAtom, FormalChargeAtom, FragmentAtom, FragmentAtom, HybridizationNumberAtom, HydrogenAtom, ImplicitHCountAtom, InverseSymbolSetQueryAtom, Isotope, Isotope, LogicalOperatorAtom, MassAtom, NonCHHeavyAtom, PDBAtom, PDBAtom, PeriodicGroupNumberAtom, PharmacophoreAtom, PharmacophoreQueryAtom, PseudoAtom, PseudoAtom, QueryAtom, ReactionRoleQueryAtom, RecursiveSmartsAtom, RingIdentifierAtom, RingMembershipAtom, SmallestRingAtom, SMARTSAtom, SymbolAndChargeQueryAtom, SymbolChargeIDQueryAtom, SymbolQueryAtom, SymbolSetQueryAtom, TotalConnectionAtom, TotalHCountAtom, TotalRingConnectionAtom, TotalValencyAtom
Implements the idea of an element in the periodic table.
- Keywords:
- element, atomic number, number, atomic
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intCarbon atomic numberstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intHydrogen atomic numberstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intNitrogen atomic numberstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intOxygen atomic numberstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intWildcard atom is atomic number 0static final intstatic final intstatic final intstatic final intstatic final intFields inherited from interface IChemObject
ALIPHATIC, AROMATIC, CONJUGATED, HIDDEN, HYDROGEN_BOND_ACCEPTOR, HYDROGEN_BOND_DONOR, IN_RING, MAPPED, MARKUSH, NOT_IN_RING, PLACED, REACTIVE_CENTER, SINGLE_OR_DOUBLE, TYPEABLE, VISITEDModifier and TypeFieldDescriptionstatic final intFlag that is set if a ChemObject is part of an aliphatic chain.static final intFlag is set if ChemObject is part of an aromatic system.static final intFlag is set if ChemObject is part of a conjugated system.static final intThis flag can be used when depicted structures to hide certain parts, for example the things are abbreviated (display shortcuts).static final intSets to true if the atom is a hydrogen bond acceptor.static final intSets to true if the atom is a hydrogen bond donor.static final intFlag that is set when the ChemObject is part of a ring.static final intFlag is set if a ChemObject is mapped to another ChemObject.static final intFlag to indicate a flattened molecule holds a Markush structure, you can work on it as is or it might make more sense to repack into something sensible like a RGroupQuery.static final intFlag that is set when the ChemObject is part of a ring.static final intFlag that is set if the ChemObject is placed when calculating 2D/3D layouts.static final intFlag is set if a ChemObject has reactive center.static final intFlag used for marking uncertainty of the bond order.static final intFlag is set if an atom could be typed.static final intFlag is set if ChemObject has been visited. -
Method Summary
Modifier and TypeMethodDescriptionReturns the atomic number of this element.Returns the element symbol of this element.voidsetAtomicNumber(Integer atomicNumber) Sets the atomic number of this element.voidSets the element symbol of this element.Methods inherited from interface ICDKObject
getBuilderModifier and TypeMethodDescriptionReturns aIChemObjectBuilderfor the data classes that extend this class.Methods inherited from interface IChemObject
addListener, addProperties, clear, clone, flags, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, is, notifyChanged, notifyChanged, removeListener, removeProperty, set, setFlag, setFlags, setID, setNotification, setProperties, setProperty, toStringModifier and TypeMethodDescriptionvoidUse this to add yourself to this IChemObject as a listener.voidaddProperties(Map<Object, Object> properties) Add properties to this object, duplicate keys will replace any existing value.voidclear(int flags) Clear the provided flags.clone()Returns a deep clone of this IChemObject.intflags()Access the current value of the flags for this ChemObject.booleangetFlag(int mask) Returns the value of a given flag.boolean[]getFlags()Returns the whole set of flags.Deprecated.getID()Returns the identifier (ID) of this object.intReturns the number of ChemObjectListeners registered with this object.booleanReturns the flag that indicates whether notification messages are sent around.Returns a Map with the IChemObject's properties.<T> TgetProperty(Object description) Returns a property for the IChemObject - the object is automatically cast to the required type.<T> TgetProperty(Object description, Class<T> c) Access a property of the given description and cast the specified class.booleanis(int flags) Test if a flag(s) are set on this ChemObject.voidThis should be triggered by an method that changes the content of an object to that the registered listeners can react to it.voidThis should be triggered by an method that changes the content of an object to that the registered listeners can react to it.voidUse this to remove a ChemObjectListener from the ListenerList of this IChemObject.voidremoveProperty(Object description) Removes a property for a IChemObject.voidset(int flags) Set the provided flags.voidsetFlag(int mask, boolean value) Sets the value of some flag.voidsetFlags(boolean[] newFlags) Sets the whole set of flags.voidSets the identifier (ID) of this object.voidsetNotification(boolean bool) Set a flag to use or not use notification.voidsetProperties(Map<Object, Object> properties) Set the properties of this object to the provided map (shallow copy).voidsetProperty(Object description, Object property) Sets a property for a IChemObject.toString()Returns a one line description of this IChemObject.
-
Field Details
-
Wildcard
static final int WildcardWildcard atom is atomic number 0- See Also:
-
H
static final int HHydrogen atomic number- See Also:
-
He
static final int He- See Also:
-
Li
static final int Li- See Also:
-
Be
static final int Be- See Also:
-
B
static final int B- See Also:
-
C
static final int CCarbon atomic number- See Also:
-
N
static final int NNitrogen atomic number- See Also:
-
O
static final int OOxygen atomic number- See Also:
-
F
static final int F- See Also:
-
Ne
static final int Ne- See Also:
-
Na
static final int Na- See Also:
-
Mg
static final int Mg- See Also:
-
Al
static final int Al- See Also:
-
Si
static final int Si- See Also:
-
P
static final int P- See Also:
-
S
static final int S- See Also:
-
Cl
static final int Cl- See Also:
-
Ar
static final int Ar- See Also:
-
K
static final int K- See Also:
-
Ca
static final int Ca- See Also:
-
Sc
static final int Sc- See Also:
-
Ti
static final int Ti- See Also:
-
V
static final int V- See Also:
-
Cr
static final int Cr- See Also:
-
Mn
static final int Mn- See Also:
-
Fe
static final int Fe- See Also:
-
Co
static final int Co- See Also:
-
Ni
static final int Ni- See Also:
-
Cu
static final int Cu- See Also:
-
Zn
static final int Zn- See Also:
-
Ga
static final int Ga- See Also:
-
Ge
static final int Ge- See Also:
-
As
static final int As- See Also:
-
Se
static final int Se- See Also:
-
Br
static final int Br- See Also:
-
Kr
static final int Kr- See Also:
-
Rb
static final int Rb- See Also:
-
Sr
static final int Sr- See Also:
-
Y
static final int Y- See Also:
-
Zr
static final int Zr- See Also:
-
Nb
static final int Nb- See Also:
-
Mo
static final int Mo- See Also:
-
Tc
static final int Tc- See Also:
-
Ru
static final int Ru- See Also:
-
Rh
static final int Rh- See Also:
-
Pd
static final int Pd- See Also:
-
Ag
static final int Ag- See Also:
-
Cd
static final int Cd- See Also:
-
In
static final int In- See Also:
-
Sn
static final int Sn- See Also:
-
Sb
static final int Sb- See Also:
-
Te
static final int Te- See Also:
-
I
static final int I- See Also:
-
Xe
static final int Xe- See Also:
-
Cs
static final int Cs- See Also:
-
Ba
static final int Ba- See Also:
-
La
static final int La- See Also:
-
Ce
static final int Ce- See Also:
-
Pr
static final int Pr- See Also:
-
Nd
static final int Nd- See Also:
-
Pm
static final int Pm- See Also:
-
Sm
static final int Sm- See Also:
-
Eu
static final int Eu- See Also:
-
Gd
static final int Gd- See Also:
-
Tb
static final int Tb- See Also:
-
Dy
static final int Dy- See Also:
-
Ho
static final int Ho- See Also:
-
Er
static final int Er- See Also:
-
Tm
static final int Tm- See Also:
-
Yb
static final int Yb- See Also:
-
Lu
static final int Lu- See Also:
-
Hf
static final int Hf- See Also:
-
Ta
static final int Ta- See Also:
-
W
static final int W- See Also:
-
Re
static final int Re- See Also:
-
Os
static final int Os- See Also:
-
Ir
static final int Ir- See Also:
-
Pt
static final int Pt- See Also:
-
Au
static final int Au- See Also:
-
Hg
static final int Hg- See Also:
-
Tl
static final int Tl- See Also:
-
Pb
static final int Pb- See Also:
-
Bi
static final int Bi- See Also:
-
Po
static final int Po- See Also:
-
At
static final int At- See Also:
-
Rn
static final int Rn- See Also:
-
Fr
static final int Fr- See Also:
-
Ra
static final int Ra- See Also:
-
Ac
static final int Ac- See Also:
-
Th
static final int Th- See Also:
-
Pa
static final int Pa- See Also:
-
U
static final int U- See Also:
-
Np
static final int Np- See Also:
-
Pu
static final int Pu- See Also:
-
Am
static final int Am- See Also:
-
Cm
static final int Cm- See Also:
-
Bk
static final int Bk- See Also:
-
Cf
static final int Cf- See Also:
-
Es
static final int Es- See Also:
-
Fm
static final int Fm- See Also:
-
Md
static final int Md- See Also:
-
No
static final int No- See Also:
-
Lr
static final int Lr- See Also:
-
Rf
static final int Rf- See Also:
-
Db
static final int Db- See Also:
-
Sg
static final int Sg- See Also:
-
Bh
static final int Bh- See Also:
-
Hs
static final int Hs- See Also:
-
Mt
static final int Mt- See Also:
-
Ds
static final int Ds- See Also:
-
Rg
static final int Rg- See Also:
-
Cn
static final int Cn- See Also:
-
Nh
static final int Nh- See Also:
-
Fl
static final int Fl- See Also:
-
Mc
static final int Mc- See Also:
-
Lv
static final int Lv- See Also:
-
Ts
static final int Ts- See Also:
-
Og
static final int Og- See Also:
-
-
Method Details
-
getAtomicNumber
Integer getAtomicNumber()Returns the atomic number of this element.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);- Returns:
- The atomic number of this element
- See Also:
-
setAtomicNumber
Sets the atomic number of this element.- Parameters:
atomicNumber- The atomic mass to be assigned to this element- See Also:
-
getSymbol
String getSymbol()Returns the element symbol of this element.- Returns:
- The element symbol of this element. Null if unset.
- See Also:
-
setSymbol
Sets the element symbol of this element.- Parameters:
symbol- The element symbol to be assigned to this atom- See Also:
-
IChemObject.flags()