TAILIEUCHUNG - OBJECT-ORIENTED ANALYSIS AND DESIGNWith application 2nd phần 8

Phát triển một thông cáo chức năng tối thiểu, màn hình chỉ là một cảm biến. Hoàn thành hệ thống phân cấp bộ cảm biến. Hoàn thành các lớp chịu trách nhiệm về quản lý màn hình hiển thị. Hoàn thành các lớp chịu trách nhiệm về quản lý giao diện người dùng. | Chapter 9 Frameworks 371 int unbind const Item Container bucket unsigned int bucket unsigned int extent const int isBound const Item const const Value valueOf const Item const const Container const bucket unsigned int bucket const protected Container rep Buckets Notice the use of Container as a template argument which allows us to define our abstraction of an open hash table independently of the particular concrete sequence we use. For example consider the highly elided declaration of the unbounded map which builds upon the classes Table and Unbounded Figure 9-12 Support Classes template class Item class Value unsigned int Buckets class StorageManage class UnboundedMap public Map Item Value Chapter 9 Frameworks 372 public UnboundedMap virtual int bind const Item const Value virtual int rebind const Item const Value virtual int unbind const Item protected Table Item Value Buckets Unbounded Pair Item Value StorageManager rep Here we instantiate the class Table with an Unbounded container. Figure 9-12 illustrates the collaboration of these classes. As a measure of the general applicability of this abstraction we may apply the class Table to our implementation of the Set and Bag classes as well. Tools In this library the primary use of templates is to parameterize each structure with the kind of item it contains this is why such structures are often called container classes. As the declaration of the class Table illustrates templates may also be used to provide certain implementation information to a class. An even more sophisticated situation involves tools that operate upon other structures. As we explained earlier we can objectify algorithms by inventing classes whose instances act as agents responsible for carrying out the algorithm. This approach follows Jacobson s idea of a control object whose behavior provides the glue whereby other objects collaborate within a use-case 16 . The advantage of this approach is that it lets us take advantage of patterns within .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.