




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Instructor: John Musacchio
Class announcements
w For next Thursday
w Database tutorials: Wed. 11/12/08, 9:30-11:00am, Jack Baskin 109; Fri. 11/14/08, 2:00-3:30pm, Jack Baskin 109.
Student talks Tuesday 11/18:
Student Presentations
Implementation
Computation of key statistics
Compute Mean and Variance
Module A Implementation 1:
Module B
Should he use it?
Either A should compute “SUM” himself, or sit down with B and redesign the interface
“I need to get the sum, I’ll just take it from B”
Encapsulation
The designer of B might take measures to hide “SUM” from A so that A is not able to violate the agreed interface.
Making a modules implementation details inaccessible to other modules is called encapsulation.
Interfaces
Computation
N numbers of Float type
2 Numbers of float type that signify:
Compute Mean and Variance
PARAMETERS
Module B
Module A p of key statistics Mean, Variance INTERFACE RETURNS
This simple interface example allows for only one action of module B. Action is “Compute mean and variance.”
Other examples are possible.
Possible software interface
action- action-
i 3
action- ...
Example:
Protocol
In addition to atomic actions, an interface may define protocols
Protocol Example
HHC Server
HHC
Hello: I’m the gate 32 server
Hello: I’m the HHC of Airplane#
These were the unruly HHC Server passengers on last flight
Tell me about the passengers of my next flight
(Might be passed As an array of a compound data type “passenger,” which in turn is composed of standard types like integer, and string)
Return Passenger Data
“Passengers noted”
p g g
Another Interface Example: Automatic teller machine (ATM)
What is the interface between this machine and the customer?
Steps
Define available actions
Define, for each higher level function, a protocol
Interface building blocks
Menu of actions or returns from an action Touch selection of action
Input parameters to an actionInput parameters to an action
Authentication, input parameters
Returns money
Example 1
Bob (^) Alice
Bob sends a letter to Alice
US Postal Service UK Royal Mail
ABC Airlines
Envelope
Shipping Container
Shipping Container
Envelope
Layer above is a client of the layer below
Each layer provides services
Interaction of layers
Layer below as as a server to the layer above
….by utilizing the services of the layer below and adding capability
Each layer provides services to the layer above….
Three types of software
Application
•Components and frameworks:
•Infrastructure: Basic services (communication, storage, concurrency, presentation, etc.)
What is in common among applications
Data and information
Application Deals with information
Infrastructure Deals with data
Assumes structure and interpretation
Ignores structure and interpretation
Architecture
HHC HHC Server
Wireless Link
Airline Dataserver
HEADQUARTERS
HHC Server
Airline Intranet
System requirements Requirements
Available components
Two ways to design a system
Decomposition from system requirements
Assembly from available components Slide adapted from slides for Understanding Networked Applications By David G Messerschmitt. Copyright 2000. See copyright notice
Component : A subsystem purchased “as is” from an outside vendor
Components
(Alternative – building your own subsystem)
A component implementation is encapsulated (although often configurable)
your own subsystem)
Slide adapted from slides for Understanding Networked Applications By David G Messerschmitt. Copyright 2000. See copyright notice
HHC Architecture
HHC Application Coordination User Interface With HHC Server
Palm OS
Networking Infrastructure
Data Management
Other Examples of components
Computer
Disk drive
Network
N t k t
Network router encapsulated?
Operating system
Integrated circuit
Database management system
Slide adapted from slides for Understanding Networked Applications By David G Messerschmitt. Copyright 2000. See copyright notice
Interoperability
PC and peripherals Enterprise, inter-enterprise, consumer applications Role for standardization
Outsourcing: A subsystem design is contracted to an outside vendor
Outsourcing
Responsibility is delegated
Slide adapted from slides for Understanding Networked Applications By David G Messerschmitt. Copyright 2000. See copyright notice
HHC Architecture
HHC Application (^) With HHC ServerCoordination User Interface
Suppose we choose to pay another firm to develop the user interface. This is called Outsourcing. Why would we do this?
Palm OS
Networking Infrastructure
Data Management
Four possibilities
Application
Product Service
Microsoft Office Hotmail
Application
Infrastructure
Personal computer Internet DNS
Slide adapted from slides for Understanding Networked Applications By David G Messerschmitt. Copyright 2000. See copyright notice
Application Service Provider
Two types
An infrastructure provider bundles applications with their infrastructure EE xample: AOL, telephony service providersl l h d
A provider of an application service without providing an infrastructure service Examples?
Examples of unbundled ASP
model
Yahoo: Web-based calendar
Hotmail: Web-based email
Schwab: Web-based stock tradingSchwab: Web based stock trading
Slide adapted from slides for Understanding Networked Applications By David G Messerschmitt. Copyright 2000. See copyright notice
Unbundled ASP model
Advantageous to user
Slide adapted from slides for Understanding Networked Applications By David G Messerschmitt. Copyright 2000. See copyright notice
Unbundled ASP model (con’t)
Advantages to supplier
Slide adapted from slides for Understanding Networked Applications By David G Messerschmitt. Copyright 2000. See copyright notice
Some pricing alternatives
fixed, leasing, per-use, subscription warrantee service level agreementswarrantee, service level agreements
maintenance, support, releases, provisioning and operations
sometimes not the end user
Slide adapted from slides for Understanding Networked Applications By David G Messerschmitt. Copyright 2000. See copyright notice
Infrastructure acquisition
Build and operate
Infrastructure Build but do not operate
Do not build but operate
Neither
Outsourced operations
System Trend integrator
Service provider
Slide adapted from slides for Understanding Networked Applications By David G Messerschmitt. Copyright 2000. See copyright notice
Application acquisition
Buy as Application (^) product Develop internally
Contract development
Software supplier
Outsource Trend developer
Product w/ customization
Supplier, consultants