电梯升降的状态机图
Moving up
do/moving to floor
Moving down
do/moving to floor
Idle
timer=0
do/increase timer
arrived
arrived
go down (floor)
Moving to
First floor
go up(floor)
[timer=time-out]
arrived
go up(floor)
On
first floor
2021-11-17 10:15:53
2.02MB
面向对象
1