|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.atom.Atom
public class Atom
Atom that represents a physical atom with a position.
| Field Summary | |
|---|---|
protected int |
index
|
protected int |
leafIndex
|
protected IMolecule |
parent
|
protected IVectorMutable |
position
|
protected IAtomType |
type
|
| Constructor Summary | |
|---|---|
Atom(ISpace space)
Makes a simple atom for the given space. |
|
Atom(ISpace space,
IAtomType type)
|
|
| Method Summary | |
|---|---|
int |
getIndex()
Returns this IAtom's index, which is its place in the parent AtomGroup's list of child IAtoms. |
int |
getLeafIndex()
Returns the global index (within the Box) of this Atom. |
IMolecule |
getParentGroup()
Returns the parent AtomGruop of this IAtom. |
IVectorMutable |
getPosition()
Returns the position of the IAtom. |
IAtomType |
getType()
|
void |
setIndex(int newIndex)
Informs the IAtom of its index, which is used to construct the address. |
void |
setLeafIndex(int newLeafIndex)
Sets the atom's global index to the give value. |
void |
setParent(IMolecule newParent)
Informs the Atom that the given AtomGroup is its parent. |
String |
signature()
Returns a string of digits that uniquely identifies this atom. |
String |
toString()
Returns a string formed by concatenating the signature of this atom to a string that identifies it as a species master, species agent, molecule, group, or (leaf) atom. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final IAtomType type
protected int index
protected final IVectorMutable position
protected IMolecule parent
protected int leafIndex
| Constructor Detail |
|---|
public Atom(ISpace space,
IAtomType type)
public Atom(ISpace space)
| Method Detail |
|---|
public String signature()
public final String toString()
toString in class Objectpublic final void setIndex(int newIndex)
IAtom
setIndex in interface IAtompublic final int getIndex()
IAtom
getIndex in interface IAtompublic void setParent(IMolecule newParent)
setParent in interface IAtompublic IMolecule getParentGroup()
IAtom
getParentGroup in interface IAtompublic IVectorMutable getPosition()
IAtom
getPosition in interface IAtompublic int getLeafIndex()
IAtom
getLeafIndex in interface IAtompublic void setLeafIndex(int newLeafIndex)
IAtom
setLeafIndex in interface IAtompublic final IAtomType getType()
getType in interface IAtom
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||