Esempio n. 1
0
 private IntentChangeCollection _GenerateChangeCollection(IntentOutput output)
 {
     _dataPolicy.OutputCurrentState = _outputCurrentStates.GetOutputCurrentState(output);
     output.State.Dispatch(_dataPolicy);
     _outputCurrentStates.SetOutputCurrentState(output, _dataPolicy.OutputCurrentState);
     return(_dataPolicy.Result);
 }
 public IDataFlowComponent GetAdapter(IntentOutput output)
 {
     IntentOutputDataFlowAdapter adapter;
     if (!_instances.TryGetValue(output.Id, out adapter)) {
         adapter = new IntentOutputDataFlowAdapter(output);
         _instances[output.Id] = adapter;
     }
     return adapter;
 }
Esempio n. 3
0
 private IntentChangeCollection _GenerateChangeCollection(IntentOutput output)
 {
     _dataPolicy.OutputCurrentState = _outputCurrentStates.GetOutputCurrentState(output);
     output.State.Dispatch(_dataPolicy);
     _outputCurrentStates.SetOutputCurrentState(output, _dataPolicy.OutputCurrentState);
     return _dataPolicy.Result;
 }
Esempio n. 4
0
 public void RemoveOutput(IntentOutput output)
 {
     _outputMediator.RemoveOutput(output);
     VixenSystem.DataFlow.RemoveComponent(_adapterFactory.GetAdapter(output));
 }
Esempio n. 5
0
 public IDataFlowComponent GetDataFlowComponentForOutput(IntentOutput output)
 {
     return _adapterFactory.GetAdapter(output);
 }
Esempio n. 6
0
 public void SetOutputCurrentState(IntentOutput output, IIntent[] state)
 {
     _outputStates[output] = state;
 }
Esempio n. 7
0
 public IIntent[] GetOutputCurrentState(IntentOutput output)
 {
     IIntent[] outputCurrentState;
     _outputStates.TryGetValue(output, out outputCurrentState);
     return(outputCurrentState);
 }
Esempio n. 8
0
 public IDataFlowComponent GetDataFlowComponentForOutput(IntentOutput output)
 {
     return(_adapterFactory.GetAdapter(output));
 }
Esempio n. 9
0
 public void RemoveOutput(IntentOutput output)
 {
     _outputMediator.RemoveOutput(output);
     VixenSystem.DataFlow.RemoveComponent(_adapterFactory.GetAdapter(output));
 }
Esempio n. 10
0
 public IntentOutputDataFlowAdapter(IntentOutput output)
 {
     _output = output;
     Name = (_output.Index + 1).ToString();
 }
Esempio n. 11
0
 public void SetOutputCurrentState(IntentOutput output, IIntent[] state)
 {
     _outputStates[output] = state;
 }
Esempio n. 12
0
 public IIntent[] GetOutputCurrentState(IntentOutput output)
 {
     IIntent[] outputCurrentState;
     _outputStates.TryGetValue(output, out outputCurrentState);
     return outputCurrentState;
 }