John W. Campbell
This class stores the unique parameters for a real unit cell and has methods
to regenerate the full set when needed.
Class, constructors and methods:
Class Details
Accessible Fields
Constructor
Get Cell Parameters
List Contents
- Package:
- Jdl.JdlPX;
- Class name:
- JdlUniqueCell
- Class definition:
- public class JdlUniqueCell
- Extends:
- Object
- Implements:
- Cloneable
- Actions:
- none
No fields with public, package or protected access defined.
A single constructor is available to construct a JdlUniqueCell object from
a JdlCell object and the crstal system.
Constructor:
Constructor
Create a JdlUniqueCell object from a JdlCell object and the crystal system
number.
- Constructor Definition:
- public JdlUniqueCell (JdlCell cell, int isys)
- Parameters List:
- cell
- The real cell parameters.
- isys
- The crystal system:
= 1, Triclinic
= 2, Monoclinic
= 3, Orthorhombic
= 4, Tetragonal
= 5, Hexagonal
= 6, Rhombohedral
= 7, Cubic
Note: Will be reset to 1 if outside valid range.
This section has methods to retrieve the unique or full set of
cell parameters into an array or a full set into a JdlCell object.
Method:
Unique cell into array - getUniqueCellArray
Get crystal system - getCrystalSystem
Get number of unique parameters - getNumberOfUnique
Full cell into array - getFullCellArray
Get full cell - getFullCell
Returns the unique cell parameters in a 6 element double array.
- Method Definition:
- public void getUniqueCellArray(double[] cell)
- Parameters List:
- cell
- 6 element double array in which the data are to be returned
(from 1-6 parameters depending on the crystal system).
Returns the stored crystal system number.
- Method Definition:
- public int getCrystalSystem()
- Parameters List:
- none
- Method Return:
-
The crystal system number from 1-7.
Returns the number of unique cell parameters stored
- Method Definition:
- public int getNumberOfUnique()
- Parameters List:
- none
- Method Return:
-
The number of unique cell parameters.
Returns the full set of cell parameters in a 6 element double array.
- Method Definition:
- public void getFullCellArray(double[] cell)
- Parameters List:
- cell
- 6 element double array in which the data are to be returned.
Returns the full cell in a JdlCell object.
- Method Definition:
- public JdlCell getFullCell()
- Parameters List:
- none
- Method Return:
-
The cell.
This section has a single method to list the object contents primarily
for diagnostic purposes.
Method:
List contents - listContents
List the JdlUniqueCell object contents.
- Method Definition:
- public void listContents()
- Parameters List:
- none
⇑ Up 2
⇑ Up 1
⇑ Top of this