Skip to Content
Computers as Components, 2nd Edition
book

Computers as Components, 2nd Edition

by Marilyn Wolf
July 2008
Intermediate to advanced
544 pages
16h 52m
English
Morgan Kaufmann
Content preview from Computers as Components, 2nd Edition
8.7 Design Example: Elevator Controller 431
Sensor*
hit : boolean
Coarse-sensor* Fine-sensor*
Motor*
speed : {off, slow, fast}
Master-control-panel*
Floor-control-panel*
up, down : boolean
Car-control-panel*
floors[1..F] : boolean
emergency-stop : boolean
open-door, close-door :
boolean
master-stop( )
elevator-positions[1..H][1..F] : boolean
master-stop-indicator : boolean
FIGURE 8.28
Physical interface classes for the elevator system.
objects.The only difference among the sensors to the elevator controller is whether
they indicate coarse or fine positions;other physical distinctions among the sensors
do not matter.
The Car and Floor classes, which describe the
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Computers as Components, 3rd Edition

Computers as Components, 3rd Edition

Marilyn Wolf
Computer System Designs: System-on-Chip

Computer System Designs: System-on-Chip

Michael J. Flynn, Wayne Luk
PC Hardware in a Nutshell, 3rd Edition

PC Hardware in a Nutshell, 3rd Edition

Robert Bruce Thompson, Barbara Fritchman Thompson

Publisher Resources

ISBN: 9780123743978