Class MapsuiTimeSelection
The time rule shared by the session's time policy and SampleAt(DateTime): which sample a dataset draws at a clock value, or none when nothing lies within its tolerance (#706).
public static class MapsuiTimeSelection
- Inheritance
-
MapsuiTimeSelection
- Inherited Members
Methods
Next(IReadOnlyList<DateTime>, DateTime)
The earliest sample after time, or null.
public static DateTime? Next(IReadOnlyList<DateTime> sorted, DateTime time)
Parameters
sortedIReadOnlyList<DateTime>timeDateTime
Returns
Previous(IReadOnlyList<DateTime>, DateTime)
The latest sample before time, or null.
public static DateTime? Previous(IReadOnlyList<DateTime> sorted, DateTime time)
Parameters
sortedIReadOnlyList<DateTime>timeDateTime
Returns
Select(IReadOnlyList<DateTime>, MapsuiTimeSelectionKind, TimeSpan, DateTime)
The sample of sorted drawn at time,
or null when none is within tolerance.
public static DateTime? Select(IReadOnlyList<DateTime> sorted, MapsuiTimeSelectionKind kind, TimeSpan tolerance, DateTime time)
Parameters
sortedIReadOnlyList<DateTime>The dataset's samples, ascending and distinct.
kindMapsuiTimeSelectionKindHow the sample is picked.
toleranceTimeSpanHow far from the clock a sample may be.
timeDateTimeThe clock value.