Class NumberBetweenSensor
Performs a comparison between one operands and two other operands
Inheritance
NumberBetweenSensor
Assembly: Xareus.Scenarios.Extra.dll
Syntax
[Renamed("SEVEN.Arithmetics.NumberBetweenSensor", "SEVEN.Extra")]
public class NumberBetweenSensor : ASensor
Constructors
NumberBetweenSensor(Event, Dictionary<string, Parameter>, ContextHolder)
Declaration
protected NumberBetweenSensor(Event @event, Dictionary<string, Parameter> parameters, ContextHolder contexts)
Parameters
Fields
HIGHER_BOUND
Declaration
public static readonly string HIGHER_BOUND
Field Value
LOWER_BOUND
Declaration
public static readonly string LOWER_BOUND
Field Value
OPERAND
Declaration
public static readonly string OPERAND
Field Value
eventContext
Declaration
protected SimpleDictionary eventContext
Field Value
higherBound
Declaration
[ConfigurationParameter("Higher Bound", Necessity.Required)]
protected float higherBound
Field Value
includeHigher
Can the value be equal to the higher value
Declaration
[ConfigurationParameter("Include Higher", "Can the value be equal to the higher bound?", Necessity.Required)]
protected bool includeHigher
Field Value
includeLower
Can the value be equal to the lower value
Declaration
[ConfigurationParameter("Include Lower", "Can the value be equal to the lower bound?", Necessity.Required)]
protected bool includeLower
Field Value
lowerBound
Declaration
[ConfigurationParameter("Lower Bound", Necessity.Required)]
protected float lowerBound
Field Value
operand1
The operand that must be between the others
Declaration
[ConfigurationParameter("Operand", "The value that must be between the lower and higher bound", Necessity.Required)]
protected float operand1
Field Value
precision
Declaration
[ConfigurationParameter("precision", "The precision to use for the comparisons (default 0)", Necessity.Optional)]
protected float precision
Field Value
Methods
IsBetween(float, float, float, bool, bool, float)
Declaration
public static bool IsBetween(float value, float lower, float higher, bool includeLower, bool includeHigher, float precision)
Parameters
Returns
SensorCheck()
Declaration
public override ASensor.Result SensorCheck()
Returns
Overrides