|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.chemistry.quantum.Atom
public class Atom
This class define the structure of an Atom
| Constructor Summary | |
|---|---|
Atom(java.lang.String symbol,
double charge,
Point3D atomCenter)
Creates a new instance of Atom |
|
Atom(java.lang.String symbol,
double charge,
Point3D atomCenter,
int atomIndex)
Creates a new instance of Atom |
|
| Method Summary | |
|---|---|
java.lang.String |
capitalise(java.lang.String theString)
Method to capitalise a string .. not the correct palce! |
java.lang.Object |
clone()
i do some cloning business ;) |
double |
distanceFrom(Atom atom)
Simple method to find the distance between two atom centers. |
double |
distanceFrom(Point3D point)
Simple method to find the distance between atom center and an point. |
boolean |
equals(java.lang.Object obj)
overloaded equals() method |
Point3D |
getAtomCenter()
Getter for property atomCenter. |
double |
getCharge()
Getter for property charge. |
int |
getIndex()
Getter for property index. |
java.lang.String |
getSymbol()
Getter for property symbol. |
double |
getX()
Getter for property x. |
double |
getY()
Getter for property y. |
double |
getZ()
Getter for property z. |
int |
hashCode()
overriden hashCode() method |
void |
setAtomCenter(Point3D atomCenter)
Setter for property atomCenter. |
void |
setCharge(double charge)
Setter for property charge. |
void |
setIndex(int index)
Setter for property index. |
void |
setSymbol(java.lang.String symbol)
Setter for property symbol. |
java.lang.String |
toString()
overloaded toString() method. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Atom(java.lang.String symbol,
double charge,
Point3D atomCenter)
symbol - The atom symbolcharge - The charge on the atomatomCenter - The nuclear center of the atom in cartesian
coordinates
public Atom(java.lang.String symbol,
double charge,
Point3D atomCenter,
int atomIndex)
symbol - The atom symbolcharge - The charge on the atomatomCenter - The nuclear center of the atom in cartesian
coordinatesatomIndex - DOCUMENT ME!| Method Detail |
|---|
public java.lang.String getSymbol()
public java.lang.String capitalise(java.lang.String theString)
theString - string to be capitalised
public void setSymbol(java.lang.String symbol)
symbol - New value of property symbol.public double getCharge()
public void setCharge(double charge)
charge - New value of property charge.public Point3D getAtomCenter()
public void setAtomCenter(Point3D atomCenter)
atomCenter - New value of property atomCenter.public double getX()
public double getY()
public double getZ()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The object to be compared with
public double distanceFrom(Atom atom)
atom - - the atom from which the distance is to be found
public double distanceFrom(Point3D point)
point - - the point to which the distance is to be found
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException - If that isn't possiblepublic int getIndex()
public void setIndex(int index)
index - New value of property index.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||