driver-assist.nv
· 1.5 KiB · Text
原始文件
Playground
|# Model based off of https://beza1e1.tuxen.de/tla-plus.html #|
|# Driving Assist #|
:author: "June Gardner"
|:state: off :seatbelt: unknown| :state: fault
|:state: off :sensors: broken | :state: fault
|:state: off :brakes: broken | :state: fault
|:state: off :seatbelt: off | :state: temporary fault
|:state: off :sensors: blind| :state: temporary fault
|:state: off | :state: active
|:state: active :seatbelt: off | :state: temporary fault
|:state: active :sensors: blind | :state: temporary fault
|:state: active :seatbelt: unknown| :state: fault
|:state: active :seatbelt: broken | :state: fault
|:state: temporary fault :seatbelt: on :sensors: ok :brakes: ok|
:state: active
|:state: temporary fault :seatbelt: unknown| :state: fault
|:state: temporary fault :sensors: broken | :state: fault
|:state: temporary fault :brakes: broken | :state: fault
|:state: fault| :state: off
|:: activate driver assist|
:state: active
|:: gather data from sensors|
:sensors: blind
:brakes: broken
|:: the system should be in the $x state :state: $x|
:passed:
|:: the system should be in the $x $y state :state: $x $y|
:passed:
|:: the system should be in the $x state|
:failed:
:expected: $x
|:: the system should be in the $x $y state|
:failed:
:expected: $x $y
|:: the system should be $x|
:: the system should be in the $x state
||:: activate driver assist
:: gather data from sensors
:: the system should be off
| 1 | |# Model based off of https://beza1e1.tuxen.de/tla-plus.html #| |
| 2 | |# Driving Assist #| |
| 3 | :author: "June Gardner" |
| 4 | |
| 5 | |:state: off :seatbelt: unknown| :state: fault |
| 6 | |:state: off :sensors: broken | :state: fault |
| 7 | |:state: off :brakes: broken | :state: fault |
| 8 | |
| 9 | |:state: off :seatbelt: off | :state: temporary fault |
| 10 | |:state: off :sensors: blind| :state: temporary fault |
| 11 | |:state: off | :state: active |
| 12 | |
| 13 | |:state: active :seatbelt: off | :state: temporary fault |
| 14 | |:state: active :sensors: blind | :state: temporary fault |
| 15 | |:state: active :seatbelt: unknown| :state: fault |
| 16 | |:state: active :seatbelt: broken | :state: fault |
| 17 | |
| 18 | |:state: temporary fault :seatbelt: on :sensors: ok :brakes: ok| |
| 19 | :state: active |
| 20 | |:state: temporary fault :seatbelt: unknown| :state: fault |
| 21 | |:state: temporary fault :sensors: broken | :state: fault |
| 22 | |:state: temporary fault :brakes: broken | :state: fault |
| 23 | |
| 24 | |:state: fault| :state: off |
| 25 | |
| 26 | |:: activate driver assist| |
| 27 | :state: active |
| 28 | |
| 29 | |:: gather data from sensors| |
| 30 | :sensors: blind |
| 31 | :brakes: broken |
| 32 | |
| 33 | |:: the system should be in the $x state :state: $x| |
| 34 | :passed: |
| 35 | |:: the system should be in the $x $y state :state: $x $y| |
| 36 | :passed: |
| 37 | |:: the system should be in the $x state| |
| 38 | :failed: |
| 39 | :expected: $x |
| 40 | |:: the system should be in the $x $y state| |
| 41 | :failed: |
| 42 | :expected: $x $y |
| 43 | |:: the system should be $x| |
| 44 | :: the system should be in the $x state |
| 45 | |
| 46 | ||:: activate driver assist |
| 47 | :: gather data from sensors |
| 48 | :: the system should be off |