public static enum OrientationParameters.DipParameter extends java.lang.Enum<OrientationParameters.DipParameter>
Enum Constant and Description |
---|
D0
An orientation value associated with an angle of 0 degrees.
|
D90
An orientation value associated with an angle of 90 degrees.
|
Modifier and Type | Field and Description |
---|---|
int |
index
An index for a possible orientation parameter value
(valid values are 0 and 90).
|
Modifier and Type | Method and Description |
---|---|
double |
correctFormationDipDirectionForP4(double original)
Taking this parameter as P4, converts a formation dip direction to
the "P4=0" convention.
|
double |
correctSampleDipForP2(double original)
Taking this parameter as P2, converts a dip to the "P2=90"
convention.
|
static OrientationParameters.DipParameter |
read(int index)
Returns a dip parameter for a specified index.
|
static OrientationParameters.DipParameter |
read(java.lang.String index)
Parses a string as an integer and return a dip parameter
with the corresponding index.
|
static OrientationParameters.DipParameter |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OrientationParameters.DipParameter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OrientationParameters.DipParameter D0
public static final OrientationParameters.DipParameter D90
public final int index
public static OrientationParameters.DipParameter[] values()
for (OrientationParameters.DipParameter c : OrientationParameters.DipParameter.values()) System.out.println(c);
public static OrientationParameters.DipParameter valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static OrientationParameters.DipParameter read(java.lang.String index)
index
- a string consisting of "0" or "90",
with optional surrounding whitespacepublic static OrientationParameters.DipParameter read(int index)
index
- 0 or 90public double correctSampleDipForP2(double original)
original
- the dip according to "P2 = this object" conventionpublic double correctFormationDipDirectionForP4(double original)
original
- the formation dip direction according to "P4 = this
object" convention