SlideShare uma empresa Scribd logo
1 de 21
Presentation-Abstraction-Control




                 Islamgozhayev Talgat
What is PAC?
 The Presentation-Abstraction-
 Control pattern (PAC) defines a
 structure for interactive software
 systems in the form of a
 hierarchy of cooperating agents.
Moreover…
 Every agent is responsible for a specific
  aspect of the application's functionality
  and consists of three components:
  presentation, abstraction, and control. This
 subdivision separates the human-computer
 interaction aspects of the agent from its
 functional core and its communication with
 other agents.
As the comparison
 The PAC abstraction component corresponds roughly
  to the model component of MVC.
 The presentation component in PAC is a combination
  of the view and control components in MVC.
 The control component of PAC mediates between
  agents and has no equivalent in MVC.
Example
 Consider a simple information system for political elections with
  proportional representation. This offers a spreadsheet for entering data
  and several kinds of tables and charts for presenting current standings.
  Users interact with the software through a graphical interface.
  Different versions, however, adapt the user interface to specific needs.
  For example, one version supports additional views of the data, such as
  the assignment of parliament seats to political parties.
 The classic example of a PAC architecture is an air traffic control
  system. One PAC Agent takes input from a radar system about the
  location of an incoming 747, and uses the Presentation component to
  paint a picture of that blip on a canvas (screen). Another Agent
  independently takes input about a DC-10 that is taking off, and paints
  that blip to the canvas as well. Still another takes in weather data and
  paints clouds, while another tracks the incoming enemy bomber and
  paints a red blip instead.
Example
PAC Agents
 In the context of the Presentation-Abstraction-
 Control pattern, an agent is an information
 processing component that includes:
– Event receivers and transmitters.
– Data structures to maintain state.
–  processor that handles incoming events,
  A
 updates its own state, and may produce new
 events.
 Agents can be a s small as a single object, but also
 as complex as a complete software system.
Context
 Interactive systems can often be viewed as a set of
  cooperating agents.
– Agents specialized in human-computer interaction accept
  user input and display data.
– Other agents maintain the data model of the system and
  offer functionality that operates on this data.
– Additional agents are responsible for diverse tasks such as
  error handling or communication with other software
  systems.
 Besides this horizontal decomposition of system
  functionality, we often encounter a vertical decomposition.
 In such an architecture of cooperating agents, each agent is
  specialized for a specific task, and all agents together
  provide the system functionality. This architecture captures
  both a horizontal and vertical decomposition.
Forces
 Agents often maintain their own state and data.
–  example, in a production planning system, the
   For
  production planning and the actual production control
  may work on different data models, one tuned for planning
  and simulation and one performance- optimized for
  efficient production.
 Interactive agents provide their own user interface, since
  their respective human-computer interactions often differ
  widely.
–  example, entering data into spreadsheets is done using
   For
  keyboard input, while the manipulation of graphical
  objects uses a pointing device.
 Systems evolve over time.
– Their presentation aspect is particularly prone to change.
Solution
 Structure the interactive application as a tree-like
  hierarchy of PAC agents.
 There should be one top-level agent, several
  intermediate- level agents, and even more bottom-
  level agents.
 Every agent is responsible for a specific aspect of the
  application's functionality, and consists of three
  components: presentation, abstraction, and control.
 The whole hierarchy reflects transitive dependencies
  between agents. Each agent depends on all higher-
  level agents up the hierarchy to the top-level agent.
How it works?
 The agent's presentation component provides the
  visible behavior of the PAC agent.
 Its abstraction component maintains the data model
  that underlies the agent, and provides functionality
  that operates on this data.
 Its control component connects the presentation and
  abstraction components, and provides functionality
  that allows the agent to communicate with other PAC
  agents.
Top-Level
 The top-level PAC agent provides the functional core
 of the system.
– The top-level PAC agent includes those parts of the
 user interface that cannot be assigned to particular
 subtasks, such as menu bars or a dialog box displaying
 information about the application.
– Most other PAC agents depend or operate on this
 core.
Bottom-level
 Bottom-level PAC agents represent self-contained
 concepts on which users of the system can act, such as
 spreadsheets and charts.
– The bottom-level agents present these concepts to the
 user and support all operations that users can perform
 on these agents, such as zooming or moving a chart.
Intermediate-level
 Intermediate-level PAC agents represent either
 combinations of, or relationships between, lower-level
 agents, e.g. a floor plan and an external view of a house
 in a CAD system for architecture.
PAC Benefits
 Separation of concerns.
–  Different semantic concepts in the application domain are
  represented by separate agents.
– Each agent maintains its own state and data, coordinated
  with, but independent of other PAC agents.
– Individual PAC agents also provide their own user interface.
– This allows the development of a dedicated data model and
  user interface for each semantic concept or task within the
  application, independently of other semantic concepts or tasks.
 Support for change and extension.
– Changes within the presentation or abstraction components of
  a PAC agent do not affect other agents in the system.
– New agents are easily integrated into an existing PAC
  architecture without major changes to existing PAC agents.
Continue….
 Support for multitasking.
– PAC agents can be distributed easily to different
 threads, processes, or machines. Extending a PAC
 agent with appropriate inter-process communication
 functionality only affects its control component.
– Multitasking also facilitates multi-user applications.
 For example, in our information system a newscaster
 can present the latest projection while data entry
 personnel update the data base with new election
 data.
Liability of PAC
 Increased system complexity.
– The implementation of every semantic concept within an application
  as its own PAC agent may result in a complex system structure.
– If the level of granularity is too fine, the system could drown in a sea
  of agents. Agents must also be coordinated and controlled, which
  requires additional coordination agents.
 Complex control component.
– The quality of the control component implementations is therefore
  crucial to an effective collaboration between agents, and therefore for
  the overall quality of the system architecture.
 Efficiency.
– The overhead in the communication between PAC agents may impact
  system efficiency especially if agents are distributed.
 Applicability.
– The smaller the atomic semantic concepts of an application are, and
  the more similar their user interfaces, the less applicable this pattern is.
Usage examples
 On the server side, Drupal follows the PAC (Presentation-
  Abstraction-Control) design pattern.
 The Drupal Core provides the controller. It responds to user
  requests and routes them to the appropriate handlers.
 The theme system provides the presentation layer. The modules
  (including the built-in modules like Node) access and
  manipulate the data which is the job of the abstraction layer.
 The menu system acts as the Controller. It accepts input via a
  single source (HTTP GET and POST), routes requests to the
  appropriate helper functions, pulls data out of the Abstraction
  (nodes and, in Drupal 5, forms), and then pushes it through a
  filter to get a Presentation of it (the theme system). It even has
  multiple, parallel PAC agents in the form of blocks that push
  data out to a common convas (page.tpl.php).
PAC

Mais conteúdo relacionado

Mais procurados

Distributed System-Multicast & Indirect communication
Distributed System-Multicast & Indirect communicationDistributed System-Multicast & Indirect communication
Distributed System-Multicast & Indirect communicationMNM Jain Engineering College
 
Introduction to Parallel Computing
Introduction to Parallel ComputingIntroduction to Parallel Computing
Introduction to Parallel ComputingAkhila Prabhakaran
 
File models and file accessing models
File models and file accessing modelsFile models and file accessing models
File models and file accessing modelsishmecse13
 
Chapter 10 Operating Systems silberschatz
Chapter 10 Operating Systems silberschatzChapter 10 Operating Systems silberschatz
Chapter 10 Operating Systems silberschatzGiulianoRanauro
 
Data management issues
Data management issuesData management issues
Data management issuesNeha Bansal
 
Cloud computing using Eucalyptus
Cloud computing using EucalyptusCloud computing using Eucalyptus
Cloud computing using EucalyptusAbhishek Dey
 
Distributed File System
Distributed File SystemDistributed File System
Distributed File SystemNtu
 
EVOLUTION OF SYSTEM
EVOLUTION OF SYSTEM EVOLUTION OF SYSTEM
EVOLUTION OF SYSTEM Sahil Garg
 
cpu scheduling
cpu schedulingcpu scheduling
cpu schedulinghashim102
 
NIST Cloud Computing Reference Architecture
NIST Cloud Computing Reference ArchitectureNIST Cloud Computing Reference Architecture
NIST Cloud Computing Reference ArchitectureThanakrit Lersmethasakul
 
Operating system concepts (notes)
Operating system concepts (notes)Operating system concepts (notes)
Operating system concepts (notes)Sohaib Danish
 
Introduction to Cloud Data Center and Network Issues
Introduction to Cloud Data Center and Network IssuesIntroduction to Cloud Data Center and Network Issues
Introduction to Cloud Data Center and Network IssuesJason TC HOU (侯宗成)
 
Object oriented and function oriented design
Object oriented and function oriented designObject oriented and function oriented design
Object oriented and function oriented designNaveen Sagayaselvaraj
 
Design Goals of Distributed System
Design Goals of Distributed SystemDesign Goals of Distributed System
Design Goals of Distributed SystemAshish KC
 

Mais procurados (20)

11. dfs
11. dfs11. dfs
11. dfs
 
Distributed System-Multicast & Indirect communication
Distributed System-Multicast & Indirect communicationDistributed System-Multicast & Indirect communication
Distributed System-Multicast & Indirect communication
 
Introduction to Parallel Computing
Introduction to Parallel ComputingIntroduction to Parallel Computing
Introduction to Parallel Computing
 
File models and file accessing models
File models and file accessing modelsFile models and file accessing models
File models and file accessing models
 
Chapter 10 Operating Systems silberschatz
Chapter 10 Operating Systems silberschatzChapter 10 Operating Systems silberschatz
Chapter 10 Operating Systems silberschatz
 
Data management issues
Data management issuesData management issues
Data management issues
 
4. system models
4. system models4. system models
4. system models
 
Cloud computing using Eucalyptus
Cloud computing using EucalyptusCloud computing using Eucalyptus
Cloud computing using Eucalyptus
 
Distributed File System
Distributed File SystemDistributed File System
Distributed File System
 
EVOLUTION OF SYSTEM
EVOLUTION OF SYSTEM EVOLUTION OF SYSTEM
EVOLUTION OF SYSTEM
 
cpu scheduling
cpu schedulingcpu scheduling
cpu scheduling
 
NIST Cloud Computing Reference Architecture
NIST Cloud Computing Reference ArchitectureNIST Cloud Computing Reference Architecture
NIST Cloud Computing Reference Architecture
 
Operating system concepts (notes)
Operating system concepts (notes)Operating system concepts (notes)
Operating system concepts (notes)
 
Underlying principles of parallel and distributed computing
Underlying principles of parallel and distributed computingUnderlying principles of parallel and distributed computing
Underlying principles of parallel and distributed computing
 
Introduction to Cloud Data Center and Network Issues
Introduction to Cloud Data Center and Network IssuesIntroduction to Cloud Data Center and Network Issues
Introduction to Cloud Data Center and Network Issues
 
Object oriented and function oriented design
Object oriented and function oriented designObject oriented and function oriented design
Object oriented and function oriented design
 
Memory management
Memory managementMemory management
Memory management
 
Design Goals of Distributed System
Design Goals of Distributed SystemDesign Goals of Distributed System
Design Goals of Distributed System
 
Component level design
Component   level designComponent   level design
Component level design
 
Distributed Operating System_1
Distributed Operating System_1Distributed Operating System_1
Distributed Operating System_1
 

Semelhante a PAC

Component based models and technology
Component based models and technologyComponent based models and technology
Component based models and technologySaransh Garg
 
Component based models and technology
Component based models and technologyComponent based models and technology
Component based models and technologyMayukh Maitra
 
Pattern oriented architecture for web based architecture
Pattern oriented architecture for web based architecturePattern oriented architecture for web based architecture
Pattern oriented architecture for web based architectureshuchi tripathi
 
Object oriented sad-5 part ii
Object oriented sad-5 part iiObject oriented sad-5 part ii
Object oriented sad-5 part iiBisrat Girma
 
A Model of Local Area Network Based Application for Inter-office Communication
A Model of Local Area Network Based Application for Inter-office CommunicationA Model of Local Area Network Based Application for Inter-office Communication
A Model of Local Area Network Based Application for Inter-office Communicationtheijes
 
Ppt slides 05
Ppt slides 05Ppt slides 05
Ppt slides 05locpx
 
Software engg. pressman_ch-8
Software engg. pressman_ch-8Software engg. pressman_ch-8
Software engg. pressman_ch-8Dhairya Joshi
 
Network Monitoring and Traffic Reduction using Multi-Agent Technology
Network Monitoring and Traffic Reduction using Multi-Agent TechnologyNetwork Monitoring and Traffic Reduction using Multi-Agent Technology
Network Monitoring and Traffic Reduction using Multi-Agent TechnologyEswar Publications
 
UML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptxUML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptxNwabueze Obioma
 
Design concepts and principles
Design concepts and principlesDesign concepts and principles
Design concepts and principlessaurabhshertukde
 
11.3.14&22.1.16
11.3.14&22.1.1611.3.14&22.1.16
11.3.14&22.1.16Rajes Wari
 
Software Design
Software Design Software Design
Software Design Anas Bilal
 
UNIT 3-DEMONSTRATING A COMPREHENSIVE UNDERSTANDING OF SOFTWARE DESIGN.pptx
UNIT 3-DEMONSTRATING A COMPREHENSIVE UNDERSTANDING OF SOFTWARE DESIGN.pptxUNIT 3-DEMONSTRATING A COMPREHENSIVE UNDERSTANDING OF SOFTWARE DESIGN.pptx
UNIT 3-DEMONSTRATING A COMPREHENSIVE UNDERSTANDING OF SOFTWARE DESIGN.pptxLeahRachael
 

Semelhante a PAC (20)

Component based models and technology
Component based models and technologyComponent based models and technology
Component based models and technology
 
Component based models and technology
Component based models and technologyComponent based models and technology
Component based models and technology
 
Design Pattern
Design PatternDesign Pattern
Design Pattern
 
Design pattern
Design patternDesign pattern
Design pattern
 
Pattern oriented architecture for web based architecture
Pattern oriented architecture for web based architecturePattern oriented architecture for web based architecture
Pattern oriented architecture for web based architecture
 
Day01 01 software requirement concepts
Day01 01 software requirement conceptsDay01 01 software requirement concepts
Day01 01 software requirement concepts
 
Object oriented sad-5 part ii
Object oriented sad-5 part iiObject oriented sad-5 part ii
Object oriented sad-5 part ii
 
A Model of Local Area Network Based Application for Inter-office Communication
A Model of Local Area Network Based Application for Inter-office CommunicationA Model of Local Area Network Based Application for Inter-office Communication
A Model of Local Area Network Based Application for Inter-office Communication
 
Ppt slides 05
Ppt slides 05Ppt slides 05
Ppt slides 05
 
Software engg. pressman_ch-8
Software engg. pressman_ch-8Software engg. pressman_ch-8
Software engg. pressman_ch-8
 
Network Monitoring and Traffic Reduction using Multi-Agent Technology
Network Monitoring and Traffic Reduction using Multi-Agent TechnologyNetwork Monitoring and Traffic Reduction using Multi-Agent Technology
Network Monitoring and Traffic Reduction using Multi-Agent Technology
 
Lec 4.ppt
Lec 4.pptLec 4.ppt
Lec 4.ppt
 
DEVELOPMENT OF A MULTIAGENT BASED METHODOLOGY FOR COMPLEX SYSTEMS
DEVELOPMENT OF A MULTIAGENT BASED METHODOLOGY FOR COMPLEX SYSTEMSDEVELOPMENT OF A MULTIAGENT BASED METHODOLOGY FOR COMPLEX SYSTEMS
DEVELOPMENT OF A MULTIAGENT BASED METHODOLOGY FOR COMPLEX SYSTEMS
 
UML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptxUML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptx
 
Unit-3.doc
Unit-3.docUnit-3.doc
Unit-3.doc
 
Design concepts and principles
Design concepts and principlesDesign concepts and principles
Design concepts and principles
 
11.3.14&22.1.16
11.3.14&22.1.1611.3.14&22.1.16
11.3.14&22.1.16
 
Software Design
Software Design Software Design
Software Design
 
System analysis and design
System analysis and designSystem analysis and design
System analysis and design
 
UNIT 3-DEMONSTRATING A COMPREHENSIVE UNDERSTANDING OF SOFTWARE DESIGN.pptx
UNIT 3-DEMONSTRATING A COMPREHENSIVE UNDERSTANDING OF SOFTWARE DESIGN.pptxUNIT 3-DEMONSTRATING A COMPREHENSIVE UNDERSTANDING OF SOFTWARE DESIGN.pptx
UNIT 3-DEMONSTRATING A COMPREHENSIVE UNDERSTANDING OF SOFTWARE DESIGN.pptx
 

Último

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusZilliz
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 

Último (20)

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 

PAC

  • 1. Presentation-Abstraction-Control Islamgozhayev Talgat
  • 2. What is PAC?  The Presentation-Abstraction- Control pattern (PAC) defines a structure for interactive software systems in the form of a hierarchy of cooperating agents.
  • 3. Moreover…  Every agent is responsible for a specific aspect of the application's functionality and consists of three components: presentation, abstraction, and control. This subdivision separates the human-computer interaction aspects of the agent from its functional core and its communication with other agents.
  • 4. As the comparison  The PAC abstraction component corresponds roughly to the model component of MVC.  The presentation component in PAC is a combination of the view and control components in MVC.  The control component of PAC mediates between agents and has no equivalent in MVC.
  • 5. Example  Consider a simple information system for political elections with proportional representation. This offers a spreadsheet for entering data and several kinds of tables and charts for presenting current standings. Users interact with the software through a graphical interface. Different versions, however, adapt the user interface to specific needs. For example, one version supports additional views of the data, such as the assignment of parliament seats to political parties.  The classic example of a PAC architecture is an air traffic control system. One PAC Agent takes input from a radar system about the location of an incoming 747, and uses the Presentation component to paint a picture of that blip on a canvas (screen). Another Agent independently takes input about a DC-10 that is taking off, and paints that blip to the canvas as well. Still another takes in weather data and paints clouds, while another tracks the incoming enemy bomber and paints a red blip instead.
  • 7. PAC Agents  In the context of the Presentation-Abstraction- Control pattern, an agent is an information processing component that includes: – Event receivers and transmitters. – Data structures to maintain state. –  processor that handles incoming events, A updates its own state, and may produce new events.  Agents can be a s small as a single object, but also as complex as a complete software system.
  • 8. Context  Interactive systems can often be viewed as a set of cooperating agents. – Agents specialized in human-computer interaction accept user input and display data. – Other agents maintain the data model of the system and offer functionality that operates on this data. – Additional agents are responsible for diverse tasks such as error handling or communication with other software systems.  Besides this horizontal decomposition of system functionality, we often encounter a vertical decomposition.  In such an architecture of cooperating agents, each agent is specialized for a specific task, and all agents together provide the system functionality. This architecture captures both a horizontal and vertical decomposition.
  • 9. Forces  Agents often maintain their own state and data. –  example, in a production planning system, the For production planning and the actual production control may work on different data models, one tuned for planning and simulation and one performance- optimized for efficient production.  Interactive agents provide their own user interface, since their respective human-computer interactions often differ widely. –  example, entering data into spreadsheets is done using For keyboard input, while the manipulation of graphical objects uses a pointing device.  Systems evolve over time. – Their presentation aspect is particularly prone to change.
  • 10. Solution  Structure the interactive application as a tree-like hierarchy of PAC agents.  There should be one top-level agent, several intermediate- level agents, and even more bottom- level agents.  Every agent is responsible for a specific aspect of the application's functionality, and consists of three components: presentation, abstraction, and control.  The whole hierarchy reflects transitive dependencies between agents. Each agent depends on all higher- level agents up the hierarchy to the top-level agent.
  • 11.
  • 12. How it works?  The agent's presentation component provides the visible behavior of the PAC agent.  Its abstraction component maintains the data model that underlies the agent, and provides functionality that operates on this data.  Its control component connects the presentation and abstraction components, and provides functionality that allows the agent to communicate with other PAC agents.
  • 13.
  • 14. Top-Level  The top-level PAC agent provides the functional core of the system. – The top-level PAC agent includes those parts of the user interface that cannot be assigned to particular subtasks, such as menu bars or a dialog box displaying information about the application. – Most other PAC agents depend or operate on this core.
  • 15. Bottom-level  Bottom-level PAC agents represent self-contained concepts on which users of the system can act, such as spreadsheets and charts. – The bottom-level agents present these concepts to the user and support all operations that users can perform on these agents, such as zooming or moving a chart.
  • 16. Intermediate-level  Intermediate-level PAC agents represent either combinations of, or relationships between, lower-level agents, e.g. a floor plan and an external view of a house in a CAD system for architecture.
  • 17. PAC Benefits  Separation of concerns. –  Different semantic concepts in the application domain are represented by separate agents. – Each agent maintains its own state and data, coordinated with, but independent of other PAC agents. – Individual PAC agents also provide their own user interface. – This allows the development of a dedicated data model and user interface for each semantic concept or task within the application, independently of other semantic concepts or tasks.  Support for change and extension. – Changes within the presentation or abstraction components of a PAC agent do not affect other agents in the system. – New agents are easily integrated into an existing PAC architecture without major changes to existing PAC agents.
  • 18. Continue….  Support for multitasking. – PAC agents can be distributed easily to different threads, processes, or machines. Extending a PAC agent with appropriate inter-process communication functionality only affects its control component. – Multitasking also facilitates multi-user applications. For example, in our information system a newscaster can present the latest projection while data entry personnel update the data base with new election data.
  • 19. Liability of PAC  Increased system complexity. – The implementation of every semantic concept within an application as its own PAC agent may result in a complex system structure. – If the level of granularity is too fine, the system could drown in a sea of agents. Agents must also be coordinated and controlled, which requires additional coordination agents.  Complex control component. – The quality of the control component implementations is therefore crucial to an effective collaboration between agents, and therefore for the overall quality of the system architecture.  Efficiency. – The overhead in the communication between PAC agents may impact system efficiency especially if agents are distributed.  Applicability. – The smaller the atomic semantic concepts of an application are, and the more similar their user interfaces, the less applicable this pattern is.
  • 20. Usage examples  On the server side, Drupal follows the PAC (Presentation- Abstraction-Control) design pattern.  The Drupal Core provides the controller. It responds to user requests and routes them to the appropriate handlers.  The theme system provides the presentation layer. The modules (including the built-in modules like Node) access and manipulate the data which is the job of the abstraction layer.  The menu system acts as the Controller. It accepts input via a single source (HTTP GET and POST), routes requests to the appropriate helper functions, pulls data out of the Abstraction (nodes and, in Drupal 5, forms), and then pushes it through a filter to get a Presentation of it (the theme system). It even has multiple, parallel PAC agents in the form of blocks that push data out to a common convas (page.tpl.php).