-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbehavior.puml
36 lines (27 loc) · 856 Bytes
/
behavior.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@startuml
skinparam state {
BackgroundColor White
BorderColor Black
}
title "Vehicle Behavior - SysML v1 State Machine"
state "Vehicle States" as VehicleStates {
state "Off" as Off
state "Running" as Running {
state "Idle" as Idle
state "Moving" as Moving {
state "Accelerating" as Accelerating
state "Cruising" as Cruising
state "Braking" as Braking
Accelerating --> Cruising : targetSpeedReached
Cruising --> Braking : brakePedalPressed
Braking --> Accelerating : acceleratorPressed
}
Idle --> Moving : acceleratorPressed
Moving --> Idle : vehicleStopped
}
Off --> Running : ignitionOn [fuelAvailable]
Running --> Off : ignitionOff
}
' Initial state
[*] --> Off
@enduml