jsci.chemistry
Class Molecule
- java.lang.Object
-
- jsci.physics.Particle
-
- jsci.chemistry.Molecule
-
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- AminoAcid
public class Molecule extends Particle
A class representing molecules.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description Molecule(Atom[] a)Constructs a molecule from an array of atoms.Molecule(Atom a, Atom b)Constructs a molecule from two atoms.Molecule(java.lang.String formula)Constructs a molecule from a chemical formula.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Moleculebind(Atom a)Binds with an atom.Moleculebind(Molecule m)Binds with a molecule.java.util.SetgetAtoms()Returns the atoms in this molecule.
-
-
-
Constructor Detail
-
Molecule
public Molecule(java.lang.String formula)
Constructs a molecule from a chemical formula.
-
Molecule
public Molecule(Atom[] a)
Constructs a molecule from an array of atoms.
-
-
DMelt 3.0 © DataMelt by jWork.ORG