Table of Contents

Class TimeSemantics

Namespace
EncDotNet.S100.Datasets.Pipelines
Assembly
EncDotNet.S100.Core.dll

How a time-varying dataset behaves on the timeline (design note docs/design/weather-sources.md §8.4): what its steps are, which step it draws between steps, and how long a step stays valid. Reported by TimeSemantics, so a host needs no per-product rules.

public sealed record TimeSemantics : IEquatable<TimeSemantics>
Inheritance
TimeSemantics
Implements
Inherited Members

Constructors

TimeSemantics(TimeStepKind, TimeStepSelection, TimeSpan?)

How a time-varying dataset behaves on the timeline (design note docs/design/weather-sources.md §8.4): what its steps are, which step it draws between steps, and how long a step stays valid. Reported by TimeSemantics, so a host needs no per-product rules.

public TimeSemantics(TimeStepKind Kind, TimeStepSelection Selection, TimeSpan? Validity = null)

Parameters

Kind TimeStepKind

What the steps are.

Selection TimeStepSelection

Which step is drawn between steps.

Validity TimeSpan?

How far from the map time a step may be and still be drawn (either side for Nearest, after the step for AtOrBefore), or null for the dataset's typical step: the median interval between its steps, or one hour when it has a single step.

Properties

Default

Forecast steps, drawn from the nearest step within the typical step: the behaviour of a processor that does not say.

public static TimeSemantics Default { get; }

Property Value

TimeSemantics

Kind

What the steps are.

public TimeStepKind Kind { get; init; }

Property Value

TimeStepKind

Selection

Which step is drawn between steps.

public TimeStepSelection Selection { get; init; }

Property Value

TimeStepSelection

Validity

How far from the map time a step may be and still be drawn (either side for Nearest, after the step for AtOrBefore), or null for the dataset's typical step: the median interval between its steps, or one hour when it has a single step.

public TimeSpan? Validity { get; init; }

Property Value

TimeSpan?