CmdMessenger  3.0
CmdMessenger is a serial port messaging library for the .Net / Mono Platform.
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
CommandMessenger.CommandQueue Class Reference
Inheritance diagram for CommandMessenger.CommandQueue:
CommandMessenger.DisposableObject CommandMessenger.ReceiveCommandQueue CommandMessenger.SendCommandQueue

List of all members.

Public Types

enum  ThreadRunStates { Start, Stop }
 Run state of thread running the queue. More...

Public Member Functions

 CommandQueue (DisposeStack disposeStack, CmdMessenger cmdMessenger)
 command queue constructor.
void Clear ()
 Clears the queue.
virtual void QueueCommand (CommandStrategy commandStrategy)
 Queue the command wrapped in a command strategy.
void AddGeneralStrategy (GeneralStrategy generalStrategy)
 Adds a general strategy. This strategy is applied to all queued and dequeued commands.

Public Attributes

ThreadRunStates ThreadRunState

Protected Member Functions

virtual void ProcessQueue ()
 Process the queue.
override void Dispose (bool disposing)
 Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Protected Attributes

readonly Thread QueueThread
readonly ListQueue
< CommandStrategy
Queue = new ListQueue<CommandStrategy>()
readonly List< GeneralStrategyGeneralStrategies = new List<GeneralStrategy>()
readonly CmdMessenger CmdMessenger

Member Enumeration Documentation

Run state of thread running the queue.


Constructor & Destructor Documentation

command queue constructor.

Parameters:
disposeStackDisposeStack.
cmdMessengerThe command messenger.

Member Function Documentation

Adds a general strategy. This strategy is applied to all queued and dequeued commands.

Parameters:
generalStrategyThe general strategy.

Clears the queue.

override void CommandMessenger.CommandQueue.Dispose ( bool  disposing) [protected, virtual]

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Parameters:
disposingtrue if resources should be disposed, false if not.

Reimplemented from CommandMessenger.DisposableObject.

virtual void CommandMessenger.CommandQueue.ProcessQueue ( ) [protected, virtual]
virtual void CommandMessenger.CommandQueue.QueueCommand ( CommandStrategy  commandStrategy) [virtual]

Queue the command wrapped in a command strategy.

Parameters:
commandStrategyThe command strategy.

Reimplemented in CommandMessenger.SendCommandQueue, and CommandMessenger.ReceiveCommandQueue.


The documentation for this class was generated from the following file: