Class NumberSensor
  Performs a comparison operation between two operands.
The expected parameters follow.
operand1 expects the first operand.
operand2 expects the second operand.
operator expects a comparison operator such as EQUAL, NOT_EQUAL, GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL_TO or LESS_THAN_OR_EQUAL_TO.
Assembly: Xareus.Scenarios.Extra.dll
  Syntax
  
    [Renamed("NumberSensor", "SEVEN.Extra")]
[Renamed("SEVEN.Arithmetics.NumberSensor", "SEVEN.Extra")]
public class NumberSensor : ASensor
   
  Constructors
  
  NumberSensor(Event, Dictionary<string, Parameter>, ContextHolder)
  
  
  Declaration
  
    protected NumberSensor(Event @event, Dictionary<string, Parameter> parameters, ContextHolder contexts)
   
  Parameters
  
  Fields
  OPERAND_1
  
  
  Declaration
  
    public static readonly string OPERAND_1
   
  Field Value
  
  OPERAND_2
  
  
  Declaration
  
    public static readonly string OPERAND_2
   
  Field Value
  
  eventContext
  
  
  Declaration
  
    protected SimpleDictionary eventContext
   
  Field Value
  
  operand1
  
  
  Declaration
  
    [ConfigurationParameter("operand1", Necessity.Required)]
protected float operand1
   
  Field Value
  
  operand2
  
  
  Declaration
  
    [ConfigurationParameter("operand2", Necessity.Required)]
protected float operand2
   
  Field Value
  
  operator
  
  
  Declaration
  
    [ConfigurationParameter("operator", Necessity.Required)]
protected NumberSensor.ComparisonOperator @operator
   
  Field Value
  
  precision
  
  
  Declaration
  
    [ConfigurationParameter("precision", "The precision to use for the comparisons (default 0.0000001)", Necessity.Optional)]
protected float precision
   
  Field Value
  
  Methods
  
  SensorCheck()
  
  
  Declaration
  
    public override ASensor.Result SensorCheck()
   
  Returns
  
  Overrides