question archive Suggest a design pattern that you encounter in a category of everyday things (e
Subject:Computer SciencePrice:2.88 Bought3
Suggest a design pattern that you encounter in a category of everyday things (e.g., consumer electronics, automobiles, appliances). Briefly describe the pattern.
Consider a pattern named, IntermittentWindshieldWiper capability in an automobile industry.
Pattern name:
Intermittent Wind Shield Wiper
Intent: It allows the driver to cause the windshield wipers to operate intermittently, with intermittent timing defined using a time-setting device such as a ring-dial on the wiper control arm.
Motivation: There are many situations in which precipitation is significant enough to warrant removal from the windshield, but not heavy enough to warrant continuous wiper operation.
Applicability: Integrated into all luxury automobiles and other automobiles that provide the feature as an option
Structure: wiper control arm, timer, and wiper actuator.
Participant's - wiper control arm: turn on; turn off, set wiper speed, set timing level
Collaborations: wiper control arm defines the attributes of the control that are used by the driver; timer implements a clocking function that collaborates with timing control set using wipercontrolarm;
Wiper actuator sends control signals to the servomechanism the controls the wiper motor.
Consequences: The primary design force is the number of wiper timing levels and for whether the timing level can be set on a continuous scale.