public override void Handle(IntentDataFlowData obj) { foreach (var dimmingCurveOutput in _output) { dimmingCurveOutput.ProcessInputData(obj); } }
public void ProcessInputData(IntentDataFlowData data) { var states = new List <IIntentState>(1); states.Add(_filter.Filter(data.Value)); Data.Value = states; }
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 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; } }
public override void Handle(IntentDataFlowData obj) { _output.ProcessInputData(obj); }
public virtual void Handle(IntentDataFlowData obj) { }