Class S111SpeedBandReader.SpeedBand
A single speed band parsed from the XSLT lookup table.
public sealed record S111SpeedBandReader.SpeedBand : IEquatable<S111SpeedBandReader.SpeedBand>
- Inheritance
-
S111SpeedBandReader.SpeedBand
- Implements
- Inherited Members
Constructors
SpeedBand(float, float, string, string, bool, float, string)
A single speed band parsed from the XSLT lookup table.
public SpeedBand(float Min, float Max, string ColorToken, string SymbolRef, bool ScaleByValue, float ScaleFactor, string Label)
Parameters
MinfloatInclusive lower bound (knots).
0.0for an open-low band.MaxfloatExclusive upper bound (knots). MaxValue for an open-high band.
ColorTokenstringS-100 colour token (e.g.
SCBN1).SymbolRefstringSVG symbol reference (e.g.
SCAROW01).ScaleByValueboolWhether the symbol scales with the speed value.
ScaleFactorfloatScale factor; meaning depends on
ScaleByValue.LabelstringHuman-readable label, e.g.
"0–0.5 kn"(em-dash).
Properties
ColorToken
S-100 colour token (e.g. SCBN1).
public string ColorToken { get; init; }
Property Value
Label
Human-readable label, e.g. "0–0.5 kn" (em-dash).
public string Label { get; init; }
Property Value
Max
Exclusive upper bound (knots). MaxValue for an open-high band.
public float Max { get; init; }
Property Value
Min
Inclusive lower bound (knots). 0.0 for an open-low band.
public float Min { get; init; }
Property Value
ScaleByValue
Whether the symbol scales with the speed value.
public bool ScaleByValue { get; init; }
Property Value
ScaleFactor
Scale factor; meaning depends on ScaleByValue.
public float ScaleFactor { get; init; }
Property Value
SymbolRef
SVG symbol reference (e.g. SCAROW01).
public string SymbolRef { get; init; }