Constructor and Description |
---|
SimpleCube()
default cube constructor
|
SimpleCube(double[] xyzStepSize)
use xyz step sizes construct a cube and convert the unit of step size
from angstrom to bohr
|
SimpleCube(int cubeSize)
Construct when size is known, or use setter to set number of size
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<Atom> |
getAtoms()
get all atoms in the cube
|
java.util.List<Coord> |
getCoordinates()
get the coordinates of grid points in the cube
|
java.util.List<DensityPoint.DensityType> |
getDensityTypes()
get the value of density types of the cube
|
Coord |
getGridOrigin()
get the value of origin coordinate of the cube
|
java.util.Set<Molecule> |
getMolecules()
get the molecules in the cube
|
java.lang.String |
getName()
get the name of the cube
|
int[] |
getNumberOfXYZSteps()
get the number of steps along xyz axes
|
int |
getSize()
get the number of grid points in the cube
|
java.util.List<java.lang.Double> |
getValues()
get the values of grid points in the cube
|
double[] |
getXyzStepSize()
get the step size along xyz axes
|
void |
setCoordinates(java.util.List<Coord> coordinates)
set the coordinates of grid points in the cube
|
void |
setDensityTypes(java.util.List<DensityPoint.DensityType> densityTypes)
set the value of density types of the cube
|
void |
setGridOrigin(Coord gridOrigin)
set the value of origin coordinate of the cube
|
void |
setMolecules(java.util.Set<Molecule> molecules)
set the value of molecules in the cube
|
void |
setName(java.lang.String name)
set the name of the cube
|
void |
setNumberOfXYZSteps(int[] numberOfXYZSteps)
set the number of steps along xyz axes
|
void |
setSize(int size)
set the number of grid points in the cube
|
void |
setValues(java.util.List<java.lang.Double> values)
set teh values of grid points in the cube
|
public SimpleCube(double[] xyzStepSize)
xyzStepSize
- -a double array with xyz step sizespublic SimpleCube(int cubeSize)
cubeSize
- , the total number of grid points in the cubepublic SimpleCube()
public Coord getGridOrigin()
Cube
getGridOrigin
in interface Cube
Coord
public void setGridOrigin(Coord gridOrigin)
Cube
setGridOrigin
in interface Cube
gridOrigin
- -Coord
public int[] getNumberOfXYZSteps()
Cube
getNumberOfXYZSteps
in interface Cube
public void setNumberOfXYZSteps(int[] numberOfXYZSteps)
Cube
setNumberOfXYZSteps
in interface Cube
numberOfXYZSteps
- , an int array with 3 elementspublic double[] getXyzStepSize()
Cube
getXyzStepSize
in interface Cube
public java.util.Set<Molecule> getMolecules()
Cube
getMolecules
in interface Cube
Molecule
public java.util.Set<Atom> getAtoms()
public void setMolecules(java.util.Set<Molecule> molecules)
Cube
setMolecules
in interface Cube
molecules
- -a Set of molecules.
Molecule
public java.lang.String getName()
Cube
public void setName(java.lang.String name)
Cube
@Value(value="#{\'${yoink.cube.densityTypes}\'.split(\',\')}") public java.util.List<DensityPoint.DensityType> getDensityTypes()
Cube
getDensityTypes
in interface Cube
DensityPoint.DensityType
Listpublic void setDensityTypes(java.util.List<DensityPoint.DensityType> densityTypes)
Cube
setDensityTypes
in interface Cube
densityTypes
- -a
DensityPoint.DensityType
Listpublic int getSize()
Cube
public void setSize(int size)
Cube
public java.util.List<Coord> getCoordinates()
Cube
getCoordinates
in interface Cube
Coord
Listpublic void setCoordinates(java.util.List<Coord> coordinates)
Cube
setCoordinates
in interface Cube
coordinates
- , a Coord
Listpublic java.util.List<java.lang.Double> getValues()
Cube