CapabilityDescriptor
USI.Core
Describes a simulator-neutral capability and the operations declared by the selected provider adapter. Supported mappings do not guarantee that the currently loaded aircraft supplies a usable value; the operation result remains authoritative at runtime.
public sealed class CapabilityDescriptor : IEquatable<CapabilityDescriptor>Constructors
CapabilityDescriptor
public CapabilityDescriptor(CapabilityId Id, string Summary, CapabilityValueKind ValueKind, string Unit, double? Minimum, double? Maximum, bool IsIndexed, int? MaximumIndexExclusive, CapabilityOperations Operations, CapabilitySupportStatus SupportStatus)Describes a simulator-neutral capability and the operations declared by the selected provider adapter. Supported mappings do not guarantee that the currently loaded aircraft supplies a usable value; the operation result remains authoritative at runtime.
Properties
Id
public CapabilityId Id { get; set; }IsIndexed
public bool IsIndexed { get; set; }Maximum
public double? Maximum { get; set; }MaximumIndexExclusive
public int? MaximumIndexExclusive { get; set; }Minimum
public double? Minimum { get; set; }Operations
public CapabilityOperations Operations { get; set; }Summary
public string Summary { get; set; }SupportStatus
public CapabilitySupportStatus SupportStatus { get; set; }Unit
public string Unit { get; set; }ValueKind
public CapabilityValueKind ValueKind { get; set; }Methods
<Clone>$
public CapabilityDescriptor <Clone>$()Deconstruct
public void Deconstruct(CapabilityId Id, string Summary, CapabilityValueKind ValueKind, string Unit, double? Minimum, double? Maximum, bool IsIndexed, int? MaximumIndexExclusive, CapabilityOperations Operations, CapabilitySupportStatus SupportStatus)Equals
public bool Equals(object obj)Equals
public bool Equals(CapabilityDescriptor other)GetHashCode
public int GetHashCode()GetMaximumIndexExclusive
public int? GetMaximumIndexExclusive(CapabilityOperations operations)Gets the declared maximum-exclusive index for the requested operations. Combined operations use their most restrictive limit; null means no declared limit, or that the requested operations are not supported.
Supports
public bool Supports(CapabilityOperations operation)Checks declared support at a zero-based USI component index, not a native simulator index.
Supports
public bool Supports(CapabilityOperations operations, int index)Checks declared support at a zero-based USI component index, not a native simulator index.
Supports
public bool Supports(CapabilityOperations operations, IndexedAircraftComponentNode component)Checks declared support at a zero-based USI component index, not a native simulator index.
ToString
public string ToString()