Table of Contents

Class MapsuiTimeSelection

Namespace
EncDotNet.S100.Renderers.Mapsui
Assembly
EncDotNet.S100.Renderers.Mapsui.dll

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

sorted IReadOnlyList<DateTime>
time DateTime

Returns

DateTime?

Previous(IReadOnlyList<DateTime>, DateTime)

The latest sample before time, or null.

public static DateTime? Previous(IReadOnlyList<DateTime> sorted, DateTime time)

Parameters

sorted IReadOnlyList<DateTime>
time DateTime

Returns

DateTime?

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

sorted IReadOnlyList<DateTime>

The dataset's samples, ascending and distinct.

kind MapsuiTimeSelectionKind

How the sample is picked.

tolerance TimeSpan

How far from the clock a sample may be.

time DateTime

The clock value.

Returns

DateTime?