tailieunhanh - REAL-TIME SYSTEMS DESIGN AND ANALYSIS phần 7

Các mệnh lệnh được đưa ra trong Bảng . Continuances theo một mệnh lệnh và giới thiệu các đặc điểm kỹ thuật yêu cầu ở mức thấp hơn. Continuances bao gồm Bắt buộc Sẽ Phải Phải không là cần thiết để áp dụng trách nhiệm cho Will nênBảng mệnh lệnh được tìm thấy trong các yêu cầu chi tiết kỹ thuật và mục đích của họ | 294 5 SOFTWARE SYSTEM DESIGN VehicleDetector This class represents the proximity detection loop located near the stop line associated with an approach. The class is based on the OnOff-Sensor class. The Vehicle Presence Detector object is responsible for managing the following functions 1. Filtering of vehicle service requests ACTUATED mode . 2. Generation of vehicle service request event ACTUATED mode . 3. Maintenance of the vehicle count statistic FIXED ACTUATED and ADAPTIVE modes . Figure 21 illustrates the attributes methods and events of the VehicleDetector class. VehicleDetector Relationships Association link from class Approach Generalization link to class OnOffSensor VehicleDetector Attributes Inherited from superclass. APPENDIX CASE STUDY IN SOFTWARE REQUIREMENTS SPECIFICATION 295 VehicleDetector Methods Inherited from superclass. Overridden methods are described in Table 18. Table 18 VehicleDetector class-attributes Method Type Notes VehicleDetector public Constructor. VehicleDetector private abstract Destructor. setState public void Set the m_State attribute and trigger the onVehicleEntry event. resetState public void Clear the m_State attribute and trigger the onVehicleExit event. VehicleDetector Behavioral Details m_Approach i .m_VehicleDetector VehicleDetector m_Approach i Approach Singleton mJntersectionController Intersectioncontroller 296 5 SOFTWARE SYSTEM DESIGN Name Intersectioncontroller- Vehicle Detector Author Team 2 Version Created 07-Dec-2002 21 54 19 Updated 09-Dec-2002 13 58 06 Figure 22 VehicleDetector class sequence .