SolarEventSequence

constructor(start: Instant, location: Pair<Double, Double>, limit: Duration = 365.days, requestedSolarEvents: List<SolarEventType> = SolarEventType.simple, reverse: Boolean = false)

Alternative constructor with location as a Pair. Provided as a convenience. See primary constructor for more information

Parameters

start

Time representing the beginning of the sequence

location

Pair where the first Double represents the latitude in degrees and the second represents longitude in degrees.

limit

The limit or outer bound of the Sequence see primary constructor for more information.

requestedSolarEvents

A List of SolarEventTypes to calculate event times for. Requesting only events you are interested in will save computation resources. By default, only includes SolarEventType.simple events.

reverse

Whether the sequence should advance in reverse chronological order. By default, this is false resulting in a Sequence that advances chronologically in time.

See also


constructor(start: Instant, latitude: Double, longitude: Double, limit: Duration = 365.days, requestedSolarEvents: List<SolarEventType> = SolarEventType.simple, reverse: Boolean = false)

Parameters

start

Time representing the beginning of the sequence

latitude

Latitude of the observer in degrees

longitude

Longitude of the observer in degrees

limit

Point at which the sequence will end. If you wish for an infinite sequence simply put Duration.INFINITE for limit. Calculations are done lazily so requesting an infinite sequence is not harmful. Limit only exists to allow certain logical checks such as if you wanted to know if there will be any event in the next hour you could use limit and then check if the resulting sequence is empty. Defaults to 365 days.

requestedSolarEvents

A List of SolarEventTypes to calculate event times for. Requesting only events you are interested in will save computation resources. By default, only includes SolarEventType.simple events.

reverse

Whether the sequence should advance in reverse chronological order. By default, this is false resulting in a Sequence that advances chronologically in time.