public interface Region
Modifier and Type | Interface and Description |
---|---|
static class |
Region.Name
the names of regions used during adaptive QM/MM partitioning
|
Modifier and Type | Method and Description |
---|---|
void |
addAll(java.util.Map<Molecule,java.lang.Integer> map)
add a map into the region
|
void |
addMolecule(Molecule molecule,
java.lang.Integer index)
add one molecule into molecularMap
|
void |
changeMolecularId()
set molecular name as same as region name
|
void |
changeMolecularId(Region.Name name)
change molecular name as the given name
|
boolean |
containsAll(java.util.Set<Molecule> molecules)
check if the regions contains all molecules
|
java.util.List<Atom> |
getAtoms()
Convenient method for getting atoms from a region
|
Coord |
getCenterOfMass()
get the center of mass of this region
|
java.util.Map<Molecule,java.lang.Integer> |
getMolecularMap()
get the value of molecularMap
|
java.util.Set<Molecule> |
getMolecules()
get all molecules in the region
|
Region.Name |
getName()
get the name of the region
|
java.lang.Integer |
getSize()
get the number of molecules in the region
|
void |
setCenterOfMassComputer(Computer<Coord,java.util.Set<Molecule>> centerOfMassComputer)
set the value of CenterOfMassComputer
|
void |
setMolecularMap(java.util.Map<Molecule,java.lang.Integer> molecularMap)
set the value of moleculeMap
|
void |
setName(Region.Name name)
set the name of the region
|
java.lang.Integer getSize()
java.util.Set<Molecule> getMolecules()
Molecule
void addMolecule(Molecule molecule, java.lang.Integer index)
molecule
- - the keyindex
- - the valuevoid setMolecularMap(java.util.Map<Molecule,java.lang.Integer> molecularMap)
molecularMap
- - Molecule as key, Integer as valuejava.util.Map<Molecule,java.lang.Integer> getMolecularMap()
Map
Molecule as key, Integer as
valueRegion.Name getName()
Region.Name
void setName(Region.Name name)
name
- Region.Name
void addAll(java.util.Map<Molecule,java.lang.Integer> map)
map
- - Map
Molecule as key, Integer as valueboolean containsAll(java.util.Set<Molecule> molecules)
molecules
- - a Set of Moleculesjava.util.List<Atom> getAtoms()
Coord getCenterOfMass()
Coord
void changeMolecularId()
void changeMolecularId(Region.Name name)
name
- -Region.Name