|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsci.physics.Particle
jsci.chemistry.Molecule
public class Molecule
A class representing molecules.
Constructor Summary | |
---|---|
Molecule(Atom[] a)
Constructs a molecule from an array of atoms. |
|
Molecule(Atom a,
Atom b)
Constructs a molecule from two atoms. |
|
Molecule(String formula)
Constructs a molecule from a chemical formula. |
Method Summary | |
---|---|
Molecule |
bind(Atom a)
Binds with an atom. |
Molecule |
bind(Molecule m)
Binds with a molecule. |
Set |
getAtoms()
Returns the atoms in this molecule. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Molecule(String formula)
public Molecule(Atom a, Atom b)
public Molecule(Atom[] a)
Method Detail |
---|
public Set getAtoms()
public Molecule bind(Atom a)
public Molecule bind(Molecule m)
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |