TimestampStrategy

class TimestampStrategy(locations: List<GeoLocation>) : SimulationStrategy

Strategy that calculates location delay based on difference in GeoLocation.time in consecutive locations.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

locations

List of locations to be emitted.

Constructors

Link copied to clipboard
fun TimestampStrategy(locations: List<GeoLocation>)

Functions

Link copied to clipboard
open override fun calculateLocation(): SimulationLocation

Calculates a SimulationLocation to broadcast as a location update.

Link copied to clipboard
open override fun hasNext(): Boolean

Returns true if the geometry has more elements.