Class StepColorTerm
- Namespace
- Hi.MachiningProcs
- Assembly
- HiNc.dll
One term of a StepColorCondition: a step property, named by its key in the
step-property registry, compared against a threshold by Op. The threshold is
NaN — none — for HasValue and NoValue,
and must be a number for every other operation.
Saved as <Term Key Op Threshold/> under a <When> element.
public sealed record StepColorTerm : IEquatable<StepColorTerm>
- Inheritance
-
StepColorTerm
- Implements
- Inherited Members
- Extension Methods
Constructors
StepColorTerm(string, StepColorOp, double)
One term of a StepColorCondition: a step property, named by its key in the
step-property registry, compared against a threshold by Op. The threshold is
NaN — none — for HasValue and NoValue,
and must be a number for every other operation.
Saved as <Term Key Op Threshold/> under a <When> element.
public StepColorTerm(string Key, StepColorOp Op, double Threshold = NaN)
Parameters
KeystringThe key of the step property compared.
OpStepColorOpThe comparison.
ThresholddoubleThe number compared against; NaN for an operation without one.
Fields
XName
Name for XML IO.
public const string XName = "Term"
Field Value
Properties
Key
The key of the step property compared.
public string Key { get; init; }
Property Value
Op
The comparison.
public StepColorOp Op { get; init; }
Property Value
Threshold
The number compared against; NaN for an operation without one.
public double Threshold { get; init; }
Property Value
Methods
HasValue(string)
A term that holds when the step has a value under key.
public static StepColorTerm HasValue(string key)
Parameters
keystring
Returns
NeedsThreshold()
public bool NeedsThreshold()
Returns
NeedsThreshold(StepColorOp)
public static bool NeedsThreshold(StepColorOp op)
Parameters
opStepColorOp
Returns
NoValue(string)
A term that holds when the step has no value under key.
public static StepColorTerm NoValue(string key)
Parameters
keystring