Package ffx.xray.refine
Enum Class RefinementMode
- All Implemented Interfaces:
Serializable,Comparable<RefinementMode>,Constable
Different refinement mode selection types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionrefine B factors only (if anisotropic, refined as such)refine B factors and occupanciesrefine coordinates onlyrefine coordinates and B factors (if anisotropic, refined as such)refine allrefine coordinates and occupanciesrefine occupancies only (alternate conformers are constrained) -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the default epsilon value for the current refinement mode.doublegetDefaultEps(boolean hasAnisou) Returns the default epsilon value for the current refinement mode.booleanDetermines whether the refinement mode includes B-factors.booleanDetermines whether the refinement mode includes coordinates.booleanDetermines whether the refinement mode includes occupancies.static RefinementModeParse a string into a refinement mode.toString()static RefinementModeReturns the enum constant of this class with the specified name.static RefinementMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BFACTORS
refine B factors only (if anisotropic, refined as such) -
BFACTORS_AND_OCCUPANCIES
refine B factors and occupancies -
COORDINATES
refine coordinates only -
COORDINATES_AND_BFACTORS
refine coordinates and B factors (if anisotropic, refined as such) -
COORDINATES_AND_BFACTORS_AND_OCCUPANCIES
refine all -
COORDINATES_AND_OCCUPANCIES
refine coordinates and occupancies -
OCCUPANCIES
refine occupancies only (alternate conformers are constrained)
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
includesCoordinates
public boolean includesCoordinates()Determines whether the refinement mode includes coordinates.- Returns:
- true if the refinement mode involves coordinates, false otherwise.
-
includesBFactors
public boolean includesBFactors()Determines whether the refinement mode includes B-factors.- Returns:
- true if the refinement mode involves B-factors, false otherwise.
-
includesOccupancies
public boolean includesOccupancies()Determines whether the refinement mode includes occupancies.- Returns:
- true if the refinement mode involves occupancies, false otherwise.
-
toString
- Overrides:
toStringin classEnum<RefinementMode>
-
getDefaultEps
public double getDefaultEps()Returns the default epsilon value for the current refinement mode.- Returns:
- The default epsilon value for the current refinement mode.
-
getDefaultEps
public double getDefaultEps(boolean hasAnisou) Returns the default epsilon value for the current refinement mode. The returned value depends on whether the refinement mode includes anisotropic displacement parameters (ANISOU) and the specific refinement mode.- Parameters:
hasAnisou- Indicates whether the refinement mode includes anisotropic displacement parameters.- Returns:
- The default epsilon value for the current refinement mode.
-
parseMode
Parse a string into a refinement mode.- Parameters:
mode- Refinement mode string.- Returns:
- An instance of RefinementMode.
-