crystals
Class ParameterTest

java.lang.Object
  extended by 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.


Constructor Summary
ParameterTest()
           
 
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
 

Constructor Detail

ParameterTest

public ParameterTest()
Method Detail

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 a
b - lattice constant b
c - lattice constant c
alpha - angle alpha
beta - angle beta
gamma - angle gamma
Returns:
returns "Okay" if everything is OK, and a meaningful errormessage otherwise