9. Програм хангамжийн дахин ашиглагдах чадварПрограм хангамжийн дахин ашиглагдах чадвар
9
Тээврийн хэрэгсэл
Эзэмшигч
Төрөл
Өнгө
Хурдлах
Асаах
Зогсоох
Эх класс
Хүү класс
Такси
Үйлчлүүлэгч
Хүн тээвэрлэх
Ачааны тэрэг
Даац
Ачаа тээвэрлэх
Өгөгдөл болон гишүүн
функцууд нь хүү классд
Удамшина
Онцлог функц
Онцлог өгөгдөл
Удамшил харьцаа /Inheritance/
Taxi is a Transportation
Truck is a Transportation
10. Програм хангамжийн дахин ашиглагдах чадварПрограм хангамжийн дахин ашиглагдах чадвар
10
Бүрдмэл харьцаа
Computer
CPU Mouse Disk
Computer has a CPU
Computer has a mouse
Computer has a Disk
Классын өргөтгөх боломж нь (Удамшил ба бүрдмэл хэмээх
ойлголтууд нь) програм хангамжийг
Дахин ашиглагдах чадвартай
Засвар үйлчилгээ авахадаа сайн болгодог
21. 21
Холбоосын зэргүүд
минийМашин
: Машин
БаруунУрдДугуй: Дугуй
ЗүүнУрдДугуй: Дугуй
БаруунХойдДугуй: Дугуй
ЗүүнХойдДугуй: Дугуй
Машин Дугуй
1 4
Миний машин 4 дугуйтай.
Класс
1
1зөвхөн
Класс
0..1
0 1эсвэл
Класс* 0 буюу олон
Класс
1..*
1 буюу олон
Класс
2..6
2- 6оос
Класс
1,5,10
1 5эсвэл
10эсвэл
22. 22
Холбогч класс
Class A Class B
Холбогч класс:
Классууд хоорондын холбоос мэдээллийг агуулах класс
Class C
Олон олонтой холбоосыг өргөтгөж холбогч классыг
үүсгэдэг.
abc
Notes:
Entity objects
Entity objects model real-world objects. All of the objects you have studied thus far have been examples of entity objects. The analysis process begins by identifying business information entities, such as different types of reports, customer information, or inventory information. Most of these information entities can be translated directly into entity objects.
The business information entities of a library system include books, a book collection, patrons, librarians, addresses, and fees. Each of these can be translated into an entity object.
Interface objects
Interface objects bridge the gap between a system and its users. The objects that form a graphical user interface are examples of interface objects. Interface objects often take the form of window, terminal, or printer objects.
The Unified Process refers to interface objects as boundary classes because they act as the boundary between a software system and its users.
Control objects
Control objects implement complex business logic that cannot be easily implemented in either entity or interface objects. Control objects typically represent schedulers, sequencers, and other concepts that can be used to tie a system together.
For example, fines are issued when a book is overdue. In the preceding figure, the Fine Scheduler object uses information it collects from the Book Collection Database to determine when to issue a fine.