java.lang.Comparable<AtomType>
AtomTypeOriented
, AtomTypeSpheroPolyhedron
public class AtomType extends java.lang.Object implements java.lang.Comparable<AtomType>
Modifier and Type | Field | Description |
---|---|---|
protected IElement |
element |
|
protected int |
index |
|
protected ISpecies |
species |
Constructor | Description |
---|---|
AtomType(IElement element) |
|
AtomType(IElement element,
java.lang.String name) |
Modifier and Type | Method | Description |
---|---|---|
int |
compareTo(AtomType otherAtomType) |
|
static AtomType |
element(IElement element) |
|
static AtomType |
element(IElement element,
java.lang.String name) |
|
IElement |
getElement() |
|
int |
getIndex() |
|
double |
getMass() |
|
Dimension |
getMassDimension() |
|
java.lang.String |
getName() |
|
ISpecies |
getSpecies() |
|
double |
rm() |
|
void |
setIndex(int newIndex) |
Informs the IAtomType what its index should be.
|
void |
setSpecies(ISpecies newSpecies) |
Informs the atom type what species contains the atom types.
|
static AtomType |
simple(java.lang.String symbol) |
|
static AtomType |
simple(java.lang.String symbol,
double mass) |
Convenience factory method for creating an AtomType with a one-off ElementSimple.
|
static AtomType |
simpleFromSim(Simulation sim) |
|
java.lang.String |
toString() |
protected final IElement element
protected int index
protected ISpecies species
public AtomType(IElement element)
public AtomType(IElement element, java.lang.String name)
public static AtomType simple(java.lang.String symbol, double mass)
symbol
- symbol for the element of this AtomTypemass
- mass for the element of this AtomTypepublic static AtomType simple(java.lang.String symbol)
public static AtomType simpleFromSim(Simulation sim)
public int getIndex()
public java.lang.String getName()
public void setIndex(int newIndex)
newIndex
- the atom type's new indexpublic ISpecies getSpecies()
public void setSpecies(ISpecies newSpecies)
newSpecies
- the atom type's new speciespublic final double getMass()
public final double rm()
public final Dimension getMassDimension()
public final IElement getElement()
public java.lang.String toString()
toString
in class java.lang.Object