Package gaiasky.util.gaia
Enum FOV
- java.lang.Object
-
- java.lang.Enum<FOV>
-
- gaiasky.util.gaia.FOV
-
-
Field Summary
Fields Modifier and Type Field Description static FOVFstatic FOV[]FollowingFovsstatic FOV[]MotionFovsLists of FOVs grouped by the application of AC motion in theis related observationsstatic FOV[]NullMotionFovsstatic FOVPMapping/Alias of the FOVs (with AC motion applied) to the "Following/Preceding" telescope nomenclature (mainly for AGIS use)static FOV[]PrecedingFovsLists of FOVs grouped by associated telescope "Following/Preceding"static FOV[]TelescopesList of the telescope alias of the FOVs with AC motion applied
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FOVgetFov(int fovIndex)Get enumeration type for the given FoV index [0-3]static FOVgetFovByNumber(int fovNumber)Get enumeration type for the given FoV number [1-4]static intgetFovCount()Get the number of FoV identifiers (including the both motion configurations)bytegetIndex()Get FOV index [0-3]bytegetNumber()Get FOV number [1-4]doublegetNumericalFieldIndex()Get numerical field index defined as 1.0 for FOV1-3 and -1.0 for FOV2-4bytegetTelescopeIndex()Get telescope index [0-1]bytegetTelescopeNumber()Get telescope number [1-2]booleanisFollowingTelescope()Determine whether a given field of view corresponds to the following telescopebooleanisMotion()Indicates if this FoV has motion propagation in the Focal planebooleanisNullMotion()Indicates if this FoV has Null motion propagation in the Focal planebooleanisPrecedingTelescope()Indicates whether this field of view corresponds to the preceding telescopestatic booleanvalidFov(int fovIndex)Indicates if the FoV index is valid [0-3]static FOVvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static FOV[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Field Detail
-
P
public static final FOV P
Mapping/Alias of the FOVs (with AC motion applied) to the "Following/Preceding" telescope nomenclature (mainly for AGIS use)
-
F
public static final FOV F
-
Telescopes
public static final FOV[] Telescopes
List of the telescope alias of the FOVs with AC motion applied
-
PrecedingFovs
public static final FOV[] PrecedingFovs
Lists of FOVs grouped by associated telescope "Following/Preceding"
-
FollowingFovs
public static final FOV[] FollowingFovs
-
MotionFovs
public static final FOV[] MotionFovs
Lists of FOVs grouped by the application of AC motion in theis related observations
-
NullMotionFovs
public static final FOV[] NullMotionFovs
-
-
Method Detail
-
values
public static FOV[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FOV c : FOV.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FOV valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getFov
public static FOV getFov(int fovIndex)
Get enumeration type for the given FoV index [0-3]- Parameters:
fovIndex- FoV index [0-3]- Returns:
- enumeration type for the desired FoV index, null if index is not valid
-
getFovByNumber
public static FOV getFovByNumber(int fovNumber)
Get enumeration type for the given FoV number [1-4]- Parameters:
fovNumber- FoV number [1-4]- Returns:
- enumeration type for the desired FoV number, null if number is invalid
-
getFovCount
public static int getFovCount()
Get the number of FoV identifiers (including the both motion configurations)- Returns:
- Number of FoV identifiers
-
validFov
public static boolean validFov(int fovIndex)
Indicates if the FoV index is valid [0-3]- Parameters:
fovIndex- FoV [0-3]- Returns:
- true if the FoV index is valid, false otherwise
-
getIndex
public byte getIndex()
Get FOV index [0-3]- Returns:
- FOV index [FOV1:0, FOV2:1, FOV3:2, FOV4:3]
-
getNumber
public byte getNumber()
Get FOV number [1-4]- Returns:
- FOV number [FOV1:1, FOV2:2, FOV3:3, FOV4:4]
-
getNumericalFieldIndex
public double getNumericalFieldIndex()
Get numerical field index defined as 1.0 for FOV1-3 and -1.0 for FOV2-4- Returns:
- the numerical field index [-1.0:+1.0]
-
getTelescopeIndex
public byte getTelescopeIndex()
Get telescope index [0-1]- Returns:
- Telescope index [FOV1:0, FOV2:1, FOV3:0, FOV4:1]
-
getTelescopeNumber
public byte getTelescopeNumber()
Get telescope number [1-2]- Returns:
- Telescope number [FOV1:1, FOV2:2, FOV3:1, FOV4:2]
-
isFollowingTelescope
public boolean isFollowingTelescope()
Determine whether a given field of view corresponds to the following telescope- Returns:
- true if field of view corresponds to the following telescope, false otherwise
-
isMotion
public boolean isMotion()
Indicates if this FoV has motion propagation in the Focal plane- Returns:
- True if this FoV correspond to a motion propagation observation
-
isNullMotion
public boolean isNullMotion()
Indicates if this FoV has Null motion propagation in the Focal plane- Returns:
- True if this FoV correspond to a Null motion propagation observation
-
isPrecedingTelescope
public boolean isPrecedingTelescope()
Indicates whether this field of view corresponds to the preceding telescope- Returns:
- true if field of view corresponds to the preceding telescope, false otherwise
-
-