Class Molecule
java.lang.Object
org.episteme.natural.chemistry.Molecule
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named
A molecule: collection of atoms connected by bonds.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidintgetAtoms()intgetBonds()getBondsFor(Atom atom) Gets all bonds connected to an atom.Molecular formula (simplified).getId()Returns the unique identifier of this entity.Molecular weight (sum of atomic masses).getName()getNeighbors(Atom atom) Gets all neighbors of an atom.Returns the traits map for this entity.voidSets the name of this entity.toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getTrait, setTrait
-
Field Details
-
traits
-
-
Constructor Details
-
Molecule
-
-
Method Details
-
getId
Description copied from interface:IdentifiedReturns the unique identifier of this entity.- Specified by:
getIdin interfaceIdentified<Identification>- Returns:
- the identifier
-
getTraits
Description copied from interface:ComprehensiveIdentificationReturns the traits map for this entity.- Specified by:
getTraitsin interfaceCommented- Specified by:
getTraitsin interfaceComprehensiveIdentification- Returns:
- the traits map
-
setName
Description copied from interface:ComprehensiveIdentificationSets the name of this entity.- Specified by:
setNamein interfaceComprehensiveIdentification- Parameters:
name- the name to set
-
addAtom
-
addBond
-
getName
- Specified by:
getNamein interfaceComprehensiveIdentification- Specified by:
getNamein interfaceNamed
-
getAtoms
-
getBonds
-
getAtomCount
public int getAtomCount() -
getBondCount
public int getBondCount() -
getBondsFor
-
getNeighbors
-
getFormula
Molecular formula (simplified). -
getMolecularWeight
-
toString
-