crystals
Class ParameterTest
java.lang.Object
crystals.ParameterTest
public class ParameterTest
- extends java.lang.Object
Testing the crystal relevant input parameters.
The already converted (to double) parameters are tested for certain
conditions. This can be done for every lattice seperately. An error message
is generated and passed back to ControlPanel, which shows it.
Method Summary |
static java.lang.String |
testparameter(java.lang.String crystalID,
double a,
double b,
double c,
double alpha,
double beta,
double gamma)
Function testing the parameters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParameterTest
public ParameterTest()
testparameter
public static java.lang.String testparameter(java.lang.String crystalID,
double a,
double b,
double c,
double alpha,
double beta,
double gamma)
- Function testing the parameters.
- Parameters:
crystalID
- Short name for the selected crystal, to enable different
testsettings for different crystals.a
- lattice constant ab
- lattice constant bc
- lattice constant calpha
- angle alphabeta
- angle betagamma
- angle gamma
- Returns:
- returns "Okay" if everything is OK, and a meaningful errormessage
otherwise