Struct DetectionResult
- Namespace
- Kuestenlogik.Bowire.Semantics.Detectors
- Assembly
- Kuestenlogik.Bowire.dll
One proposed annotation produced by a detector — the addressing half (Key) plus the semantic claim (Semantic). Always lands in the Auto layer; the LayeredAnnotationStore resolver does the priority arithmetic at lookup time.
public readonly struct DetectionResult : IEquatable<DetectionResult>
- Implements
- Inherited Members
Constructors
DetectionResult(AnnotationKey, SemanticTag)
One proposed annotation produced by a detector — the addressing half (Key) plus the semantic claim (Semantic). Always lands in the Auto layer; the LayeredAnnotationStore resolver does the priority arithmetic at lookup time.
public DetectionResult(AnnotationKey Key, SemanticTag Semantic)
Parameters
KeyAnnotationKeyFour-dimensional address of the field this annotation applies to — composed by the detector from the DetectionContext service/method/message-type plus the JSON path it walked to find the field.
SemanticSemanticTagThe semantic kind the detector claims for the field. Conventionally one of the BuiltInSemanticTags catalogue entries.
Properties
Key
Four-dimensional address of the field this annotation applies to — composed by the detector from the DetectionContext service/method/message-type plus the JSON path it walked to find the field.
public AnnotationKey Key { get; init; }
Property Value
Semantic
The semantic kind the detector claims for the field. Conventionally one of the BuiltInSemanticTags catalogue entries.
public SemanticTag Semantic { get; init; }
Property Value
Methods
Deconstruct(out AnnotationKey, out SemanticTag)
public void Deconstruct(out AnnotationKey Key, out SemanticTag Semantic)
Parameters
KeyAnnotationKeySemanticSemanticTag
Equals(DetectionResult)
public bool Equals(DetectionResult other)
Parameters
otherDetectionResult
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(DetectionResult, DetectionResult)
public static bool operator ==(DetectionResult left, DetectionResult right)
Parameters
leftDetectionResultrightDetectionResult
Returns
operator !=(DetectionResult, DetectionResult)
public static bool operator !=(DetectionResult left, DetectionResult right)
Parameters
leftDetectionResultrightDetectionResult