Chapter 2 (Horstmann’s Book) – Part 2 The Object-Oriented Design Process Hwajung Lee.

Slides:



Advertisements
Similar presentations
Unified Communications (UC) Quick Reference Guide USING YOUR UC CLIENT This guide is designed to provide you with a quick overview of the Unified Communications.
Advertisements

Introducing The IP550 IP Telephone. Things you should know about an IP Telephone system The IPitomy system has many of the same features of traditional.
Enhanced Messaging Training Enhanced Messaging Reference Guide.
Smart Personal Console (SPC). Smart Personal Console Overview SPC allows users more control over their personal communications settings. Users can view/set:
Welcome to VOIC USER TRAINING V8+ PowerPoint.
Hosted Voice Quick Start Guide
Cisco IP Phone 7911, 7941, 7961 Series Full-feature telephone that provides voice communication over the same data network that your computer uses, allowing.
Acceptance Tests For Asterisk on the MCF54451
1 © 2005 Cisco Systems, Inc. All rights reserved _04_2005 Cisco Confidential Cisco Unified Communications Solutions End User Training Facilitated.
Ready to begin. Buttons Phone basics Handling calls Making Pages Additional features.
TELUS Restricted and Confidential 1 Call Pilot 5.0 Voic Training AHS - ECS.
Not to be distributed or reproduced by anyone other than Qwest entities. Copyright © 2006 Qwest All Rights Reserved. BUSINESS SOLUTIONS 1 UMD ON-LINE VOICE.
ESI Phone System Training Adcom/Valentine Systems
INSIGHT TOTAL TECHNOLOGY SOLUTIONS Cisco 7900 Series Phone and Voic Training Dole Fresh Vegetables.
Eric Kelsey Class Outline: 1)Phone Features 2)Call Communicator 3)Call Handling Modes and Call Forwarding.
Lawrence Technological University Office of University Housing Voice Mail System Guide.
OOdesignProcess1 The Object-Oriented Design Process Part 1: objects & classes.
CPSC 2100 Software Design and Development
Call Manager - Quick Reference Guide Initiate a Call 1.Select a Phone List. Click Tab to expose list. 2.Select a phone number. Click phone number to populate.
Voice Mail Instruction for University of Arkansas Campus
StreamWIDE Voic Migration Training Please Dial In, , Access Code 0138#
Object-oriented design Part 4: More UML. Interfaces An interface is a language construct specific to Java Java does not support multiple inheritance Interfaces.
Welcome u How to use your Phone Effectively u Telephone Features u Voice Messaging Features.
Responding to an Everbridge Notification. Internet based notification system available 24/7/365 Multijurisdictional emergency and non-emergency notifications.
Welcome u How to use your Phone Effectively u Telephone Features u Voice Messaging Features.
Telephone Training M3904 Telephone Set IT Support Center
Welcome u How to use the new NCAR telephone system u Telephone Features u Voice Messaging Features.
» Your Voice Mail User ID is your 5-digit phone number. » Use the temporary PIN 2010 for this procedure.
Business Enabled Communications V1.6 Basic Features iPECS-MG.
Press any key to continue WELCOME TO THE MESSAGEMATE VOICE MAIL.
University of Miami Telecommunications Voice Messaging System – Option 2 Communité - MIC website Department of Telecommunications 1Communité.
9/8/20151 Voice Mail Training for State Employees Presented by: Stacy Knickerbocker Telecommunications Specialist DOA/ITSD/NTSB
Object-Oriented Design & Patterns Cay S
CALLAgent DIALABS CallAGENT is a PSTN based Softphone which acts as a Single Line Auto Dialer Answering Machine Virtual Receptionist.
Maysville Community and Technical College IP Phone and Voice Mail Training.
Welcome u How to use the new NCAR telephone system u Telephone Features u Voice Messaging Features.
NMU Voic Welcome to. This presentation will walk you through the setup and use of the NMU Voic system. Follow the step by step instructions.
Panasonic Communications Co., Ltd. Communication Network Company
Welcome u How to use NCAR’s telephone system u Telephone Features u Voice Messaging Features.
Introducing The IP550 IP Telephone. What to expect from your new IPitomy IP telephone system The IPitomy system has many of the same features of traditional.
Microsoft Outlook 2010 Chapter 3 Managing Contacts and Personal Contact Information with Outlook.
CS 151: Object-Oriented Design September 5 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron Mak
Welcome u How to use the new NCAR telephone system u Telephone Features u Voice Messaging Features.
Welcome u How to use the new NCAR telephone system u Telephone Features u Voice Messaging Features.
ITEC324 Principle of CS III Chapter 2 (Horstmann’s Book) – Part 1 The Object-Oriented Design Process Hwajung Lee.
1 Introduction to Your Norstar Telephone System IT Support Center or
ShoreTel IP 480 Phone Training
How to Use the Mitel Your Phone SoftKeys: Keys that allow you to choose between different options on the screen HardKeys: Keys that need to be pushed.
Open Stage 35G Telephone. Open Stage 40G Telephone Display Function Keys Mute Speaker Call Forwarding Redial List Disconnect Messages Programming Buttons.
How to Use the Mitel Your Phone SoftKeys: Keys that allow you to choose between different options on the screen HardKeys: Keys that need to be pushed.
Introduction to Avaya Unified Messaging Introduction to American University’s New Messaging System: Avaya Unified Messaging.
IT Education and Training Avaya Modular Messaging System December 2008 Prepared by Angela Mars IT Education and Training.
Chapter 2 (Horstmann’s Book) – Part 1 The Object-Oriented Design Process Hwajung Lee.
Using your ENA Connect Phone Polycom IP 321/331/335.
EVOIP 7 Cisco IP 8841 Training Created for:.
Using your ENA Connect Phone Polycom IP 650/ Getting to know your IP 650/670 Soft Keys Shortcut to call logs Menu navigation arrows = select X =
Introduction to Avaya Unified Messaging Introduction to American University’s New Messaging System: Avaya Unified Messaging.
1Communité MIC 3.0 IT Support Center or Communité - MIC website
Chapter 2 Object-Oriented Design Process Object-Oriented Design & Patterns Cay S. Horstmann.
1.Display 2.Ring / Message Indicator 3.Volume, Speaker, Mute Controls 4.Fixed Function Keys 5.Dial Pad 6.Navigation Page Keys 7.Programmable Feature Keys.
The Object-Oriented Design Process Chapter 2. Chapter Topics From Problem to Code The Object and Class Concepts Identifying Classes Identifying Responsibilities.
Polycom VVX 400.
Main Menu New Messages - 1 Leave Message - 2 Other Messages - 3
Cisco 7841 End User Training
Call Manager - Quick Reference Guide
INI MAIL A GUIDE TO VOICE MAIL!.
ITEC324 Principle of CS III
ITEC324 Principle of CS III
Precision Spine Inc. Voic Guide.
Presentation transcript:

Chapter 2 (Horstmann’s Book) – Part 2 The Object-Oriented Design Process Hwajung Lee

 From Problem to Code  Use Cases  Identifying Classes  Identifying Responsibilities  Relationships Between Classes

 CRC Cards  UML Class Diagrams  Sequence Diagrams  State Diagrams  Using javadoc for Design Documentation  Case Study: A Voice Mail System

 Use text for voice, phone keys, hangup  # on a single line means key  H on a single line means "hang up"  All other inputs mean voice  In GUI program, will use buttons for keys (see ch. 4)

 Reach an Extension  Leave a Message  Log in  Retrieve Messages  Change the Greeting  Change the Passcode

1. User dials main number of system 2. System speaks Enter mailbox number followed by # 3. User types extension number 4. System speaks You have reached mailbox xxxx. Please leave a message now

1. Caller carries out Reach an Extension 2. Caller speaks message 3. Caller hangs up 4. System places message in mailbox

1. Mailbox owner carries out Reach an Extension 2. Mailbox owner types password and # (Default password = mailbox number. To change, see Change the Passcode) 3. System plays mailbox menu: Enter 1 to retrieve your messages. Enter 2 to change your passcode. Enter 3 to change your greeting.

1. Mailbox owner carries out Log in 2. Mailbox owner selects "retrieve messages" menu option 3. System plays message menu: Press 1 to listen to the current message Press 2 to delete the current message Press 3 to save the current message Press 4 to return to the mailbox menu

4. Mailbox owner selects "listen to current message" 5. System plays current new message, or, if no more new messages, current old message. Note: Message is played, not removed from queue 6. System plays message menu 7. User selects "delete current message". Message is removed. 8. Continue with step 3.

 Variation # Start at Step User selects "save current message". Message is removed from new queue and appended to old queue 1.3. Continue with step 3.

1. Mailbox owner carries out Log in 2. Mailbox owner selects "change greeting" menu option 3. Mailbox owner speaks new greeting 4. Mailbox owner presses # 5. System sets new greeting

 Variation #1: Hang up before confirmation 1.1. Start at step Mailbox owner hangs up System keeps old greeting.

1. Mailbox owner carries out Log in 2. Mailbox owner selects "change passcode" menu option 3. Mailbox owner dials new passcode 4. Mailbox owner presses # 5. System sets new passcode

 Variation #1: Hang up before confirmation 1.1. Start at step Mailbox owner hangs up System keeps old passcode.

 Some obvious classes  Mailbox  MessageQueue  MailSystem

(Voice) Mail System Mailbox #1Mailbox #2Mailbox #3…Mailbox #n Message Queue

 Who interacts with user?  Telephone takes button presses, voice input  Telephone speaks output to user Telephone

 Issues:  With whom does Telephone communicate with MailSystem?  What if there are multiple telephones?  Each connection can be in different state ▪ dialing, recording, retrieving messages,...  Should mail system keep track of all connection states?  Better to give this responsibility to a new class Voice Mail System Telephone #1 Telephone #2 Telephone #3

1. User dials extension. Telephone sends number to Connection (Add collaborator Connection to Telephone) 2. Connection asks MailSystem to find matching Mailbox 3. Connection asks Mailbox for greeting (Add responsibility "manage greeting" to Mailbox, add collaborator Mailbox to Connection) 4. Connection asks Telephone to play greeting

5. User speaks a message. Telephone asks Connection to record it. (Add responsibility "record voice input" to Connection) 6. User hangs up. Telephone notifies Connection. 7. Connection constructs Message (Add card for Message class, add collaborator Message to Connection) 8. Connection adds Message to Mailbox

1. User types in passcode. Telephone notifies Connection 2. Connection asks Mailbox to check passcode. (Add responsibility "manage passcode" to Mailbox) 3. Connection sets current mailbox and asks Telephone to speak menu 4. User selects "retrieve messages". Telephone passes key to Connection 5. Connection asks Telephone to speak menu 6. User selects "listen to current message". Telephone passes key to Connection

7. Connection gets first message from current mailbox. (Add "retrieve messages" to responsibility of Mailbox). 8. Connection asks Telephone to speak message 9. Connection asks Telephone to speak menu 10. User selects "save current message“. 11. Telephone passes key to Connection 12. Connection tells Mailbox to save message (Modify responsibility of Mailbox to "retrieve, save, delete messages") 13. Connection asks Telephone to speak menu

 One card per class  Responsibilities at high level  Use scenario walkthroughs to fill in cards  Usually, the first design isn't perfect. (You just saw the author's third design of the mail system)

 CRC collaborators yield dependencies  Mailbox depends on MessageQueue  MailSystem depends on Mailbox  Connection depends on Telephone, MailSystem, Message, Mailbox  Telephone depends on Connection

 A mail system has mailboxes  A mailbox has two message queues  A message queue has some number of messages  A connection has a current mailbox.  A connection has references to a mailSystem and a telephone Dependency Relationship Aggregation Relationship

A command on an arrow; No arrow about the return data A command on an arrow; No arrow about the return data

 Each key press results in separate call to dial, but only one is shown  Connection wants to get greeting to play  Each mailbox knows its greeting  Connection must find mailbox object: Call findMailbox on MailSystem object  Parameters are not displayed (e.g. mailbox number)  Return values are not displayed (e.g. found mailbox)  Note that connection holds on to that mailbox over multiple calls

 Ch2/mail/Message.java Ch2/mail/Message.java  Ch2/mail/MessageQueue.java Ch2/mail/MessageQueue.java  Ch2/mail/Mailbox.java Ch2/mail/Mailbox.java  Ch2/mail/Connection.java Ch2/mail/Connection.java  Click here to see the summary of the Connection class implementation.here  Ch2/mail/MailSystem.java Ch2/mail/MailSystem.java  Ch2/mail/Telephone.java Ch2/mail/Telephone.java  Ch2/mail/MailSystemTester.java Ch2/mail/MailSystemTester.java