Modifier and Type | Field and Description |
---|---|
protected Region.Name |
name |
Constructor and Description |
---|
SimpleMolecule(int index,
java.util.List<Atom> atoms) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Atom> |
getAtoms()
get atoms in molecule
|
Coord |
getCenterOfMass()
get the center of mass of this molecule.
|
int |
getIndex()
get molecular index in molecular system
|
Region.Name |
getName()
get the molecular name
|
void |
setCenterOfMass(Coord centerOfMass)
set the center of mass of this molecule.
|
void |
setName(Region.Name value)
set the molecular name
|
protected Region.Name name
public SimpleMolecule(int index, java.util.List<Atom> atoms)
public Region.Name getName()
getName
in interface Molecule
Region.Name
public void setName(Region.Name value)
setName
in interface Molecule
value
- -indicates which the molecule is in,
Region.Name
public java.util.List<Atom> getAtoms()
public int getIndex()
public Coord getCenterOfMass()
Molecule
getCenterOfMass
in interface Molecule
Coord
public void setCenterOfMass(Coord centerOfMass)
Molecule
setCenterOfMass
in interface Molecule
centerOfMass
- - Coord