public static class LunarTime.Builder
extends java.lang.Object
Helper class to construct a new instance of LunarTime.
| Modifier and Type | Method and Description |
|---|---|
LunarTime.Builder |
atAltitude(int altitude)
Sets the altitude in meters.
|
LunarTime |
build()
Finishes the build-process.
|
LunarTime.Builder |
easternLongitude(int degrees,
int minutes,
double seconds)
Sets the eastern longitude in degrees, arc minutes and arc seconds.
|
LunarTime.Builder |
northernLatitude(int degrees,
int minutes,
double seconds)
Sets the northern latitude in degrees, arc minutes and arc seconds.
|
LunarTime.Builder |
southernLatitude(int degrees,
int minutes,
double seconds)
Sets the southern latitude in degrees, arc minutes and arc seconds.
|
LunarTime.Builder |
westernLongitude(int degrees,
int minutes,
double seconds)
Sets the western longitude in degrees, arc minutes and arc seconds.
|
public LunarTime.Builder northernLatitude(int degrees, int minutes, double seconds)
Sets the northern latitude in degrees, arc minutes and arc seconds.
degrees - degrees in range 0 <= x <= 90minutes - arc minutes in range 0 <= x < 60seconds - arc seconds in range 0.0 <= x < 60.0java.lang.IllegalArgumentException - if any parameter is out of rangejava.lang.IllegalStateException - if the latitude has already been setsouthernLatitude(int, int, double)public LunarTime.Builder southernLatitude(int degrees, int minutes, double seconds)
Sets the southern latitude in degrees, arc minutes and arc seconds.
degrees - degrees in range 0 <= x <= 90minutes - arc minutes in range 0 <= x < 60seconds - arc seconds in range 0.0 <= x < 60.0java.lang.IllegalArgumentException - if any parameter is out of rangejava.lang.IllegalStateException - if the latitude has already been setnorthernLatitude(int, int, double)public LunarTime.Builder easternLongitude(int degrees, int minutes, double seconds)
Sets the eastern longitude in degrees, arc minutes and arc seconds.
degrees - degrees in range 0 <= x < 180minutes - arc minutes in range 0 <= x < 60seconds - arc seconds in range 0.0 <= x < 60.0java.lang.IllegalArgumentException - if any parameter is out of rangejava.lang.IllegalStateException - if the longitude has already been setwesternLongitude(int, int, double)public LunarTime.Builder westernLongitude(int degrees, int minutes, double seconds)
Sets the western longitude in degrees, arc minutes and arc seconds.
degrees - degrees in range 0 <= x <= 180minutes - arc minutes in range 0 <= x < 60seconds - arc seconds in range 0.0 <= x < 60.0java.lang.IllegalArgumentException - if any parameter is out of rangejava.lang.IllegalStateException - if the longitude has already been seteasternLongitude(int, int, double)public LunarTime.Builder atAltitude(int altitude)
Sets the altitude in meters.
The altitude is used to model a geodetic correction as well as a refraction correction based on the simple assumption of a standard atmosphere. Users should keep in mind that the local topology with mountains breaking the horizon line and special weather conditions cannot be taken into account.
Attention: Users should also apply an algorithm which is capable of altitude corrections.
altitude - geographical altitude relative to sea level in meters (0 <= x < 11,0000)public LunarTime build()
Finishes the build-process.
LunarTimejava.lang.IllegalStateException - if either latitude or longitude have not yet been set