











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












An example of trying to be precise in
English
roadway within any marked crosswalk or within any unmarked crosswalk at an intersection,
except as otherwise provided in this chapter.
for his or her safety. No pedestrian shall suddenly leave a curb or other place of safety and walk
or run into the path of a vehicle which is so close as to constitute an immediate hazard. No
pedestrian shall unnecessarily stop or delay traffic while in a marked or unmarked crosswalk.
exercising due care for the safety of any pedestrian within any marked crosswalk or within any unmarked crosswalk at an intersection.
Introductory example: An elevator
controller
various floor requests into
single requested floor
this requested floor
buttons inside elevator
Unit Control
b
down
open
floor
Request Resolver
up/down buttons on each floor
b bN
up up dn
dnN
req
up
up dn
UnitControl process using a state machine
Idle
GoingUp
req > floor
req < floor
!(req > floor)
!(timer < 10)
req < floor
DoorOpen
GoingDn
req > floor
u,d,o, t = 1,0,0,
u,d,o,t = 0,0,1,
u,d,o,t = 0,1,0,
u,d,o,t = 0,0,1,
u is up, d is down, o is open
req == floor
!(req<floor)
timer < 10
t is timer_start
state machine
should be avoided when first
learning
req > floor
u,d,o, t = 1,0,0,0 !(req > floor)
u,d,o,t = 0,0,1,
u,d,o,t = 0,1,0,
u,d,o,t = 0,0,1,
u is up, d is down, o is open
req < floor
req > floor
req == floor
req < floor
!(req<floor)
!(timer < 10)
timer < 10
t is timer_start
Idle
GoingUp
DoorOpen
GoingDn
language