Skip to content

Commit 5d8bedd

Browse files
authored
Add stubbed UnsupportedOperationException Methods for Solar Elevation and Azimuth
Prep for adding it to the interface
1 parent 04dc839 commit 5d8bedd

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/main/java/com/kosherjava/zmanim/util/SunTimesCalculator.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,4 +305,18 @@ public double getUTCNoon(Calendar calendar, GeoLocation geoLocation) {
305305
public double getUTCMidnight(Calendar calendar, GeoLocation geoLocation) {
306306
return (getUTCNoon(calendar, geoLocation) + 12);
307307
}
308+
309+
/**
310+
* @see com.kosherjava.zmanim.util.AstronomicalCalculator#getSolarAzimuth(Calendar, GeoLocation)
311+
*/
312+
public double getSolarAzimuth(Calendar calendar, GeoLocation geoLocation) {
313+
throw new UnsupportedOperationException("The SunTimesCalculator class does not implement the getSolarAzimuth method. Use the NOAACalculator instead.");
314+
}
315+
316+
/**
317+
* @see com.kosherjava.zmanim.util.AstronomicalCalculator#getSolarElevation(Calendar, GeoLocation)
318+
*/
319+
public double getSolarElevation(Calendar calendar, GeoLocation geoLocation) {
320+
throw new UnsupportedOperationException("The SunTimesCalculator class does not implement the getSolarElevation method. Use the NOAACalculator instead.");
321+
}
308322
}

0 commit comments

Comments
 (0)