Index: SDDs/StopState.puml =================================================================== diff -u -r53dc75a9f735b04e1674a35ffc200812a7acfbe7 -r0be94b830ddf3052f2ba0d4b5352b3dfcd7bc3e7 --- SDDs/StopState.puml (.../StopState.puml) (revision 53dc75a9f735b04e1674a35ffc200812a7acfbe7) +++ SDDs/StopState.puml (.../StopState.puml) (revision 0be94b830ddf3052f2ba0d4b5352b3dfcd7bc3e7) @@ -20,31 +20,69 @@ '[x \n ,# certain amount of parameters according to the content] '[x \n ,X The rest of the parameters do not matter.] - == Main Treatment Screen TImer == - TD -> SW: MSG: [x3B: #3] \nTD Treatment Time Data: \ - \n\t(U32) txDurSecs \ - \n\t(U32) txElapsedSec \ - \n\t(U32) txRemainingSecs - SW -> UI: CMD: Update Treatment Time (VTreatmentTime): \ - \n\ttime_Total \ - \n\ttime_Elapsed \ - \n\ttime_Remaining - US -> UI: TCH: Edit Button - UI -> UI: ACT: Treatment Adjustment Duration Popup - TD -> SW: MSG: [x3C: #10] \nTD Treatment States: \ - \n\t(U32) mSubMode \ - \n\t(U32) mBloodPrimeState \ - \n\t(U32) mDialysateState \ - \n\t(U32) mIsolatedUFState \ - \n\t(U32) mTreatmentStopState \ - \n\t(U32) mRinsebackState \ - \n\t(U32) mRecirculateState \ - \n\t(U32) mTreatmentEndState \ - \n\t(U32) mSalineState \ - \n\t(U32) mHeparinState - SW -> UI: CMD: Paued State (VTDTreatmentStates):\nTREATMENT_PAUSED_STATE (txStop) - UI -> UI: ACT: Visual Indication Treatment is Paused: \ - \n\tNotification on Timer \ - \n\tFade in/out effect of timer progress + ''''' Confirm Dialog properties for the End Treatment + ' [6] + ' Title = Treatment End + ' Message = Are you sure you want to end the treatment? + ' Confirm = CONFIRM + ' Cancel = CANCEL + + ''''' Confirm Dialog commands + ' enum Generic_Confirm_Command + ' { + ' GENERIC_CONFIRM_CMD_REQUEST_OPEN = 0, ///< Generic Confirm command to display the confirmation + ' GENERIC_CONFIRM_CMD_TIMEOUT_CLOSE = 1, ///< Generic Confirm command to hide the confirmation, due to timeout user confirmation + ' GENERIC_CONFIRM_CMD_REJECT = 2, ///< Generic Confirm command to display the confirmation rejection in case the request in not valid/accepted anymore. + ' GENERIC_CONFIRM_CMD_ACCEPT_CLOSE = 3, ///< Generic Confirm command to hide the confirmation, due to accept user confirmation. + ' NUM_OF_GENERIC_CONFIRM_COMMAND ///< Total number of generic confirm commands + ' }; + + ''''' Alarm User Action actions + ' enum Alarm_User_Actions + ' { + ' ALARM_USER_ACTION_RESUME = 0, ///< User selected resume from alarm recovery options + ' ALARM_USER_ACTION_RINSEBACK = 1, ///< User selected rinseback from alarm recovery options + ' ALARM_USER_ACTION_END_TREATMENT = 2, ///< User selected end treatment from alarm recovery options + ' ALARM_USER_ACTION_ACK = 3, ///< User selected acknowledge (ok) from alarm recovery options + ' NUMBER_OF_ALARM_USER_ACTIONS ///< Number of alarm user actions + ' }; + + == User presses Hardware Stop Button == + US -> TD: PRS: Hardware Stop Button + + TD -> SW: MSG: [x01: #4] \nTD AlarmStatus : \ + \n\t(U32) mState \ + \n\t(U32) mTop \ + \n\t(U32) mMuteTimeout \ + \n\t(U16) mFlags |= END_TREATMENT_BUTTON + + SW -> UI: ACT: Display Alarm Dialog \ + \n\t - End Treatment Button visible + + UI -> US: ACT: Display Alarm Dialog \ + \n\t - End Treatment Button visible + US -> UI: TCH: End Treatment Button + UI -> SW: ACT: doUserActionEnd ( \ + \n\tALARM_USER_ACTION_END_TREATMENT \ + \n) + SW -> TD: MSG: [x06: #1] AlarmUserAction \ + \n\t(U32) action + + TD -> SW: MSG: [xBA: #3] \nTD Confirmation : \ + \n\t(U32) mId = END_TREATMENT(6) \ + \n\t(U32) mCommand = GENERIC_CONFIRM_CMD_REQUEST_OPEN \ + \n\t(U32) mReason + + alt CONFIRM + US -> SW: MSG: [xBB: #] \nEnd Treatment - CONFIRM + SW -> TD: MSG: [xBB: #] \nEnd Treatment - CONFIRM + else CANCEL + US -> SW: MSG: [xBB: #] \nEnd Treatment - CANCEL + SW -> TD: MSG: [xBB: #] \nEnd Treatment - CANCEL + TD -> SW: MSG: [x01: #4] \nTD AlarmStatus : \ + \n\t(U32) 0 + SW -> UI: ACT: Hide Alarm Dialog + UI -> US: ACT: Hide Alarm Dialog + end @enduml \ No newline at end of file