TimedRoute

interface TimedRoute<P : Position<out Any>?> : Route<P>

Route with total trip time to cross it.

Parameters

<P>

type of position in the route

Inheritors

Functions

Link copied to clipboard
open fun forEach(p: Consumer<in T>)
Link copied to clipboard
abstract fun getPoint(p: Int): P
Link copied to clipboard
abstract fun getPoints(): List<P>
Link copied to clipboard
abstract fun getTripTime(): Double
Link copied to clipboard
abstract fun iterator(): Iterator<T>
Link copied to clipboard
abstract fun length(): Double
Link copied to clipboard
fun <R> Iterable<R>.randomElement(randomGenerator: RandomGenerator): R

Returns a random element of the Iterable using the provided randomGenerator.

Link copied to clipboard
fun <R> Iterable<R>.shuffled(randomGenerator: RandomGenerator): Iterable<R>

Fisher–Yates shuffle algorithm using a RandomGenerator. More information on Wikipedia.

Link copied to clipboard
abstract fun size(): Int
Link copied to clipboard
Link copied to clipboard
abstract fun stream(): Stream<P>