Constructor | Description |
---|---|
SpeciesGeneralMutable(SpeciesGeneral species) |
Modifier and Type | Method | Description |
---|---|---|
int |
getAtomByTypeName(java.lang.String name) |
Get the index within the molecule of the first atom of a given AtomType name.
|
int |
getAtomByTypeName(java.lang.String name,
int number) |
Get the index within the molecule of the nth atom of given AtomType name.
|
AtomType |
getAtomType(int index) |
Returns the child type of this Species for the specified index.
|
int |
getAtomTypeCount() |
Returns the number of unique AtomTypes that make up this Species.
|
java.util.List<AtomType> |
getAtomTypes() |
Get the list of AtomTypes that make up this Species.
|
int |
getByName(java.lang.String atomName) |
Get the index within a molecule instance of a named atom for this Species.
|
IConformation |
getConformation() |
|
int |
getIndex() |
Returns the index for this ISpecies, within the context of an Simulation.
|
SpeciesGeneral |
getInnerSpecies() |
|
int |
getLeafAtomCount() |
|
AtomType |
getLeafType() |
|
double |
getMass() |
|
Vector |
getMomentOfInertia() |
|
Space |
getSpace() |
|
AtomType |
getTypeByName(java.lang.String typeName) |
Get the AtomType with a given name used in this Species.
|
void |
initializeConformation(IMolecule molecule) |
Initializes the molecule's IAtoms in their standard arrangement.
|
boolean |
isDynamic() |
Returns whether the Species is dynamic.
|
IMolecule |
makeMolecule() |
Builds and returns the IMolecule of this ISpecies.
|
void |
setIndex(int newIndex) |
Informs the ISpecies what its index should be.
|
void |
setSpecies(SpeciesGeneral species) |
|
java.lang.String |
toString() |
public SpeciesGeneralMutable(SpeciesGeneral species)
public void setSpecies(SpeciesGeneral species)
public SpeciesGeneral getInnerSpecies()
public int getIndex()
ISpecies
public void setIndex(int newIndex)
ISpecies
public IMolecule makeMolecule()
ISpecies
makeMolecule
in interface ISpecies
public int getAtomTypeCount()
ISpecies
getAtomTypeCount
in interface ISpecies
public int getLeafAtomCount()
getLeafAtomCount
in interface ISpecies
public AtomType getAtomType(int index)
ISpecies
getAtomType
in interface ISpecies
public AtomType getLeafType()
getLeafType
in interface ISpecies
public java.util.List<AtomType> getAtomTypes()
ISpecies
The returned list should not be modified.
getAtomTypes
in interface ISpecies
public void initializeConformation(IMolecule molecule)
ISpecies
initializeConformation
in interface ISpecies
public IConformation getConformation()
getConformation
in interface ISpecies
public int getByName(java.lang.String atomName)
ISpecies
getByName
in interface ISpecies
atomName
- the name for a specific Atom in this Species.IMolecule.getChildList()
public int getAtomByTypeName(java.lang.String name, int number)
ISpecies
getAtomByTypeName
in interface ISpecies
name
- String matching the name for the AtomType.number
- The nth atom with that type to get, starting at 1.public int getAtomByTypeName(java.lang.String name)
ISpecies
getAtomByTypeName
in interface ISpecies
name
- String matching the name for the AtomType.public AtomType getTypeByName(java.lang.String typeName)
ISpecies
getTypeByName
in interface ISpecies
typeName
- String matching the name for the AtomType.public Vector getMomentOfInertia()
getMomentOfInertia
in interface ISpecies
public double getMass()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isDynamic()
ISpecies