| Modifier and Type | Method and Description |
|---|---|
SolarTime.Builder |
atAltitude(int altitude)
Sets the altitude in meters.
|
SolarTime |
build()
Finishes the build-process.
|
SolarTime.Builder |
easternLongitude(int degrees,
int minutes,
double seconds)
Sets the eastern longitude in degrees, arc minutes and arc seconds.
|
SolarTime.Builder |
inTimezone(TZID observerZoneID)
Helps to associate any calendar date input with given timezone.
|
SolarTime.Builder |
northernLatitude(int degrees,
int minutes,
double seconds)
Sets the northern latitude in degrees, arc minutes and arc seconds.
|
SolarTime.Builder |
southernLatitude(int degrees,
int minutes,
double seconds)
Sets the southern latitude in degrees, arc minutes and arc seconds.
|
SolarTime.Builder |
usingCalculator(SolarTime.Calculator calculator)
Sets the solar time calculator to be used.
|
SolarTime.Builder |
usingCalculator(String calculator)
Sets the reference to the solar time calculator to be used.
|
SolarTime.Builder |
westernLongitude(int degrees,
int minutes,
double seconds)
Sets the western longitude in degrees, arc minutes and arc seconds.
|
public SolarTime.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.0IllegalArgumentException - if any parameter is out of rangeIllegalStateException - if the latitude has already been setsouthernLatitude(int, int, double)public SolarTime.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.0IllegalArgumentException - if any parameter is out of rangeIllegalStateException - if the latitude has already been setnorthernLatitude(int, int, double)public SolarTime.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.0IllegalArgumentException - if any parameter is out of rangeIllegalStateException - if the longitude has already been setwesternLongitude(int, int, double)public SolarTime.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.0IllegalArgumentException - if any parameter is out of rangeIllegalStateException - if the longitude has already been seteasternLongitude(int, int, double)public SolarTime.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. If this method is not called then a default altitude of zero is assumed.
Attention: Users should also apply a calculator which is capable of altitude corrections.
altitude - geographical altitude relative to sea level in meters (0 <= x < 11,0000)IllegalArgumentException - if the argument is not finite or out of rangeusingCalculator(SolarTime.Calculator),
StdSolarCalculator.CC,
StdSolarCalculator.TIME4Jpublic SolarTime.Builder usingCalculator(String calculator)
Sets the reference to the solar time calculator to be used.
calculator - name of solar time calculatorIllegalArgumentException - if the argument is not validpublic SolarTime.Builder usingCalculator(SolarTime.Calculator calculator)
Sets the solar time calculator to be used.
calculator - instance of solar time calculatorpublic SolarTime.Builder inTimezone(TZID observerZoneID)
Helps to associate any calendar date input with given timezone.
If this method is not called then every calendar date input will be interpreted
as LMT (=Local Mean Time). The subtile difference between an LMT-date and
a zoned date is usually invisible but can be relevant for a few areas near the
international date border (for example Kiribati or Samoa). Note that calendar dates
need to exist in given timezone otherwise a ChronoException will be thrown.
observerZoneID - zone identifier associated with chosen geographical positionpublic SolarTime build()
Finishes the build-process.
SolarTimeIllegalStateException - if either latitude or longitude have not yet been setCopyright © 2014–2021. All rights reserved.