*
* CAD Protocol Command
|
* Action Taken
|
*
*
* | CYCLE |
* Set the currentCADScreenNum to the next screen number, set the screen update
* value to false, update the current model, and notify observers to refresh the view.
* |
*
*
* | REFRESH |
* Set the screen update value to false, update the current model,
* and notify observers to refresh the view. |
*
*
* | NEXT_QUEUE |
* If this terminal has not received any messages, do nothing. If
* messages have been received, and the current CADScreen is
* showing the TO_ROUTED_MESSAGE screen, then call the model's
* nextQueue() method and notify observers to refresh their view.
* If messages have been received, but the current screen is not
* showing a routed message, then set the current cad screen model
* to the RoutedMessageModel with the received list of messages and
* notify observers. Update the message map to show that the
* message has been viewd. Update the unreadMessages flag to
* designate whether unread messages still exist for this CAD
* position. Notify observers with the updated routed message info. |
*
*
* DELETE_QUEUE
|
* If this terminal has not received any messages, do nothing.
* If the current CADScreen is showing a routed message, get the
* current message. Remove this message from the current message map.
* Also remove the message from all RoutedMessageModels that are
* being shown in a CAD Screen by calling the deleteQueue() method.
* Notify observers to refresh their view.
* |
*
*
* PREV_QUEUE
|
* If this terminal has not received any messages, do nothing.
* If messages have been received, and the current CADScreen is
* showing the TO_ROUTED_MESSAGE screen, then call the model's
* prevQueue() method and notify observers to refresh their view.
* If messages have been received, but the current screen is not
* showing a routed message, then set the current cad screen model
* to the RoutedMessageModel with the received list of messages and
* notify observers. Update the message map to show that the
* message has been viewd. Update the unreadMessages flag to
* designate whether unread messages still exist for this CAD
* position. Notify observers with the updated routed message info.
* |
*
*
* SCREEN_CLEAR
|
* Set the current model to the BlankScreenModel and notify observers
* to refresh the view. |
*
*
*