Class TimeSemantics
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
KindTimeStepKindWhat the steps are.
SelectionTimeStepSelectionWhich step is drawn between steps.
ValidityTimeSpan?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
Kind
What the steps are.
public TimeStepKind Kind { get; init; }
Property Value
Selection
Which step is drawn between steps.
public TimeStepSelection Selection { get; init; }
Property Value
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; }