コード例 #1
0
 /// <summary> Adds a general strategy. This strategy is applied to all queued and dequeued commands.  </summary>
 /// <param name="generalStrategy"> The general strategy. </param>
 public void AddGeneralStrategy(GeneralStrategy generalStrategy)
 {
     // Give strategy access to queue
     generalStrategy.CommandQueue = Queue;
     // Add to general strategy list
     GeneralStrategies.Add(generalStrategy);
 }
コード例 #2
0
ファイル: CommandQueue.cs プロジェクト: vikramt/Arduino
 /// <summary> Adds a general strategy. This strategy is applied to all queued and dequeued commands.  </summary>
 /// <param name="generalStrategy"> The general strategy. </param>
 public void AddGeneralStrategy(GeneralStrategy generalStrategy)
 {
     // Give strategy access to queue
     generalStrategy.CommandQueue = Queue;
     // Add to general strategy list
     GeneralStrategies.Add(generalStrategy);
 }
コード例 #3
0
ファイル: CmdMessenger.cs プロジェクト: mwmichalek/BF
 /// <summary> Adds a general command strategy to the send queue. This will be executed on every enqueued and dequeued command.  </summary>
 /// <param name="generalStrategy"> The general strategy for the send queue. </param>
 public void AddSendCommandStrategy(GeneralStrategy generalStrategy)
 {
     _sendCommandQueue.AddGeneralStrategy(generalStrategy);
 }
コード例 #4
0
ファイル: CmdMessenger.cs プロジェクト: mwmichalek/BF
 /// <summary> Adds a general command strategy to the receive queue. This will be executed on every enqueued and dequeued command.  </summary>
 /// <param name="generalStrategy"> The general strategy for the receive queue. </param>
 public void AddReceiveCommandStrategy(GeneralStrategy generalStrategy)
 {
     _receiveCommandQueue.AddGeneralStrategy(generalStrategy);
 }
コード例 #5
0
ファイル: CmdMessenger.cs プロジェクト: vikramt/Arduino
 /// <summary> Adds a general command strategy to the send queue. This will be executed on every enqueued and dequeued command.  </summary>
 /// <param name="generalStrategy"> The general strategy for the send queue. </param>
 public void AddSendCommandStrategy(GeneralStrategy generalStrategy)
 {
     _sendCommandQueue.AddGeneralStrategy(generalStrategy);
 }
コード例 #6
0
ファイル: CmdMessenger.cs プロジェクト: vikramt/Arduino
 /// <summary> Adds a general command strategy to the receive queue. This will be executed on every enqueued and dequeued command.  </summary>
 /// <param name="generalStrategy"> The general strategy for the receive queue. </param>
 public void AddReceiveCommandStrategy(GeneralStrategy generalStrategy)
 {
     _receiveCommandQueue.AddGeneralStrategy(generalStrategy);
 }