|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.chemistry.quantum.Molecule
public class Molecule
The Molecule class
| Constructor Summary | |
|---|---|
Molecule()
Creates a new instance of MoleculeImpl |
|
Molecule(java.lang.String title)
Creates a new Molecule object. |
|
| Method Summary | |
|---|---|
void |
addAtom(Atom atom)
Overloaded addAtom() method. |
void |
addAtom(java.lang.String symbol,
double x,
double y,
double z)
Adds an atom to this molecule object. |
void |
addAtom(java.lang.String symbol,
double charge,
double x,
double y,
double z)
Overloaded addAtom() method. |
void |
addAtom(java.lang.String symbol,
double x,
double y,
double z,
int index)
Adds an atom to this molecule object. |
void |
addAtom(java.lang.String symbol,
double charge,
Point3D atomCenter)
Overloaded addAtom() method. |
void |
addAtom(java.lang.String symbol,
Point3D atomCenter)
Overloaded addAtom() method. |
Atom |
getAtom(int atomIndex)
Method to get a particular atom from the lists of atoms. |
java.util.Iterator |
getAtoms()
Method to get a particular atom from the lists of atoms. |
int |
getNumberOfAtoms()
Method to get total number of atoms in the molecule. |
int |
getNumberOfElectrons()
Getter for property numberOfElectrons. |
java.lang.String |
getTitle()
Returns the title. |
void |
removeAtom(Atom atom)
remove an atom from this Molecule |
void |
removeAtomAt(int atomIndex)
remove an atom from this Molecule at a given index May throw runtime exception, if invalid index |
void |
setTitle(java.lang.String title)
sets the title. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Molecule()
public Molecule(java.lang.String title)
title - DOCUMENT ME!| Method Detail |
|---|
public java.lang.String getTitle()
public void addAtom(Atom atom)
atom - the instance of atom classpublic void removeAtomAt(int atomIndex)
atomIndex - the atom index to be removedpublic void removeAtom(Atom atom)
atom - the instance of atom class
public void addAtom(java.lang.String symbol,
Point3D atomCenter)
symbol - the atom symbolatomCenter - the cartesian coordinates of the atom stored as
Point3D object
public void addAtom(java.lang.String symbol,
double charge,
Point3D atomCenter)
symbol - the atom symbolcharge - is the charge on the atom (the atomic number in many
cases)atomCenter - the cartesian coordinates of the atom stored as
Point3D object
public void addAtom(java.lang.String symbol,
double x,
double y,
double z)
symbol - the atom symbolx - y, z the cartesian coordinates of the atomy - DOCUMENT ME!z - DOCUMENT ME!
public void addAtom(java.lang.String symbol,
double x,
double y,
double z,
int index)
symbol - the atom symbolx - y, z the cartesian coordinates of the atomy - DOCUMENT ME!z - DOCUMENT ME!index - the atom index of this atom
public void addAtom(java.lang.String symbol,
double charge,
double x,
double y,
double z)
symbol - the atom symbolcharge - is the charge on the atom (the atomic number in many
cases)x - y, z the cartesian coordinates of the atomy - DOCUMENT ME!z - DOCUMENT ME!public Atom getAtom(int atomIndex)
atomIndex - DOCUMENT ME!
public java.util.Iterator getAtoms()
public void setTitle(java.lang.String title)
title - identifying the title of the Molecule objectpublic int getNumberOfAtoms()
public int getNumberOfElectrons()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||