Design Patterns : Elements of Reusable Object-Oriented Software


Design Patterns: Elements of Reusable Object-Oriented Software



Download 4,06 Mb.
Pdf ko'rish
bet150/288
Sana07.04.2022
Hajmi4,06 Mb.
#535140
1   ...   146   147   148   149   150   151   152   153   ...   288
Bog'liq
GOF Design Patterns

Design Patterns: Elements of Reusable Object-Oriented Software 
216 
An ET++ application can also forgo built-in browsing support. In that case, 
ProgrammingEnvironment implements these requests as null operations; that is, 
they do nothing. Only the ETProgrammingEnvironment subclass implements these 
requests with operations that display the corresponding browsers. The application 
has no knowledge of whether a browsing environment is available or not; there's 
abstract coupling between the application and the browsing subsystem. 
The Choices operating system [CIRM93] uses facades to compose many frameworks 
into one. The key abstractions in Choices are processes, storage, and address 
spaces. For each of these abstractions there is a corresponding subsystem, 
implemented as a framework, that supports porting Choices to a variety of different 
hardware platforms. Two of these subsystems have a "representative" (i.e., facade). 
These representatives are FileSystemInterface (storage) and Domain (address 
spaces). 
For example, the virtual memory framework has Domain as its facade. A Domain 
represents an address space. It provides a mapping between virtual addresses and 
offsets into memory objects, files, or backing store. The main operations on Domain 
support adding a memory object at a particular address, removing a memory object, 
and handling a page fault. 
As the preceding diagram shows, the virtual memory subsystem uses the following 
components internally: 

MemoryObject represents a data store. 


Design Patterns: Elements of Reusable Object-Oriented Software 
217 

MemoryObjectCache caches the data of MemoryObjects in physical memory. 
MemoryObjectCache is actually a Strategy (349) that localizes the caching 
policy. 

AddressTranslation encapsulates the address translation hardware. 
The RepairFault operation is called whenever a page fault interrupt occurs. The 
Domain finds the memory object at the address causing the fault and delegates 
the RepairFault operation to the cache associated with that memory object. Domains 
can be customized by changing their components. 

Download 4,06 Mb.

Do'stlaringiz bilan baham:
1   ...   146   147   148   149   150   151   152   153   ...   288




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish