Class CompoundInfo
java.lang.Object
org.episteme.natural.chemistry.loaders.CompoundInfo
A data transfer object for chemical compound information from external APIs.
This class captures common properties returned by services like PubChem:
- PubChem CID (compound identifier)
- Molecular formula
- Molecular weight
- IUPAC name
- InChIKey (structural identifier)
- Canonical SMILES
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for CompoundInfo instances. -
Method Summary
Modifier and TypeMethodDescriptionReturns the canonical SMILES representation.longgetCid()Returns the PubChem Compound ID.Returns the InChIKey structural identifier.Returns the IUPAC systematic name.Returns the molecular formula (e.g., "C9H8O4" for Aspirin).doubleReturns the molecular weight in g/mol.Returns the molecular weight as a type-safe Quantity.getName()Returns the common name of the compound.toString()
-
Method Details
-
getCid
public long getCid()Returns the PubChem Compound ID.- Returns:
- CID
-
getName
-
getMolecularFormula
Returns the molecular formula (e.g., "C9H8O4" for Aspirin).- Returns:
- molecular formula
-
getMolecularWeight
public double getMolecularWeight()Returns the molecular weight in g/mol.- Returns:
- molecular weight
-
getMolecularWeightQuantity
-
getIUPACName
-
getInchiKey
-
getCanonicalSmiles
Returns the canonical SMILES representation.- Returns:
- SMILES string
-
toString
-