Esempio n. 1
0
 public override void Handle(IntentDataFlowData obj)
 {
     foreach (var dimmingCurveOutput in _output)
     {
         dimmingCurveOutput.ProcessInputData(obj);
     }
 }
Esempio n. 2
0
        public void ProcessInputData(IntentDataFlowData data)
        {
            var states = new List <IIntentState>(1);

            states.Add(_filter.Filter(data.Value));
            Data.Value = states;
        }
Esempio n. 3
0
 public override void Handle(IntentDataFlowData obj)
 {
     if (obj != null)
     {
         //We only have one intent, so no need to combine, just evaluate and move on
         _commandResult = EvaluateIntentState(obj.Value);
     }
     else
     {
         _commandResult = null;
     }
 }
 public override void Handle(IntentDataFlowData obj)
 {
     if (obj != null)
     {
         //We only have one intent, so no need to combine, just evaluate and move on
         _commandResult = EvaluateIntentState(obj.Value);
     }
     else
     {
         _commandResult = null;
     }
 }
Esempio n. 5
0
 public void ProcessInputData(IntentDataFlowData data)
 {
     //In this case, we might have a controller consuming the output and that is not
     //predicatble so we can't write to a list that might be accessed at
     //the same time for read. So we are stuck creating a new one. Fortunatly this
     //Should be a little used use case where the dimming curve is last.
     if (data.Value != null)
     {
         var state  = _filter.Filter(data.Value);
         var states = new List <IIntentState>(1);
         if (state != null)
         {
             states.Add(state);
         }
         _intentData.Value = states;
     }
     else
     {
         _intentData.Value = null;
     }
 }
Esempio n. 6
0
 public override void Handle(IntentDataFlowData obj)
 {
     _output.ProcessInputData(obj);
 }
Esempio n. 7
0
 public virtual void Handle(IntentDataFlowData obj)
 {
 }
 public virtual void Handle(IntentDataFlowData obj)
 {
 }