Package ffx.crystal

Enum Class LaueSystem

java.lang.Object
java.lang.Enum<LaueSystem>
ffx.crystal.LaueSystem
All Implemented Interfaces:
Serializable, Comparable<LaueSystem>, Constable

public enum LaueSystem extends Enum<LaueSystem>
Enumeration of the different Laue systems. Some are only used for nonstandard cells.
Since:
1.0
Author:
Michael J. Schnieders
  • Enum Constant Details

  • Method Details

    • values

      public static LaueSystem[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LaueSystem valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • checkRestrictions

      public boolean checkRestrictions(int h, int k, int l)
      Check the given HKL is valid given the Laue system.
      Parameters:
      h - an int.
      k - an int.
      l - an int.
      Returns:
      True if the reflection is valid, false otherwise.