Java Coding 8 David Davenport Computer Eng. Dept., Bilkent University Ankara - Turkey. Object-Oriented Design Examples.

Slides:



Advertisements
Similar presentations
Ovid Training Dept 2012 Setting up eTOC Subscriptions.
Advertisements

Java Coding 8 David Davenport Computer Eng. Dept., Bilkent University Ankara - Turkey. Object-Oriented Design Example - The.
STATE TRANSITION NETWORK Bibin Varghese. State Transition Network Provides a description of what actions/events are available at what point and the state.
Java Coding OOP David Davenport Computer Eng. Dept., Bilkent University Ankara - Turkey. Towards Event-driven programming &
Everyday Algorithms David Davenport Computer Eng. Dept., Bilkent University Ankara - Turkey. lightning introduction to.
TLA. Replacing The Battery On the Back of the pager press in this button while moving the door away from the pager, then lift up. On the Back of the pager.
Introduction to UML David Davenport Computer Eng. Dept., Bilkent University Ankara - Turkey. …Unified Modeling Language.
Here we will discuss more advanced options you have with the YourNameBadges.com website This presentation of 35 slides will advance automatically. You.
5:47 1: Default Clock State PM Alarm off, time set to 5:47PM. Hour
Java Coding 6 David Davenport Computer Eng. Dept., Bilkent University Ankara - Turkey. Collections.
Java Coding 2 David Davenport Computer Eng. Dept., Bilkent University Ankara - Turkey. Decisions, decisions…!
Java Coding 3 David Davenport Computer Eng. Dept.,
Java Coding 8 David Davenport Computer Eng. Dept., Bilkent University Ankara - Turkey. Object-Oriented Design Examples.
Software Engineering I Object-Oriented Design
Review: OOP & Arrays David Davenport Computer Eng. Dept., Bilkent University Ankara - Turkey. …from CS101.
Robo David Davenport Computer Eng. Dept., Bilkent University Ankara - Turkey. lightning introduction to the engineering.
Object-Oriented Analysis and Design
Java Coding David Davenport Computer Eng. Dept., Bilkent University Ankara - Turkey.
Java Coding 4 David Davenport Computer Eng. Dept., Bilkent University Ankara - Turkey. Method madness.
Alarm Clock Robert Stuart. 1.Keep track of time. 2.When the time matches a stored value an alarm should go off. 3.Functionality that allows for the user.
Invoices On – Line Registration Instructions for Vendors.
Java Coding 5 David Davenport Computer Eng. Dept., Bilkent University Ankara - Turkey. To object or not…
Starting Chapter 4 Starting. 1 Course Outline* Covered in first half until Dr. Li takes over. JAVA and OO: Review what is Object Oriented Programming.
Java Coding 3 David Davenport Computer Eng. Dept., Bilkent University Ankara - Turkey. Over & over again!
Java Coding 5 David Davenport Computer Eng. Dept., Bilkent University Ankara - Turkey. To object or not…
Self Guided Tour of TagMate™QC Display Tag DATA Tag Data: PRINT TagMate™QC SETUP Display STATS Tags: START and READ SEND All Data to PC Additional Capabilities.
Silent Classroom Timer
Classroom Timer Select a time to count down from the clock above 60 min 45 min 30 min 20 min 15 min 10 min 5 min or less.
From Algorithms to Architecture David Davenport Computer Eng. Dept., Bilkent University Ankara - Turkey. lightning introduction.
REVIEW On Friday we explored Client-Server Applications with Sockets. Servers must create a ServerSocket object on a specific Port #. They then can wait.
Pattern Hatching - John Vlissides Pages 85 – 101 Todd Anderson
Computational Algorithms David Davenport Computer Eng. Dept., Bilkent University Ankara - Turkey. lightning introduction.
Java Coding David Davenport Computer Eng. Dept., Bilkent University Ankara - Turkey. Syntax for Variables & Constants Input,
Java Coding 6 David Davenport Computer Eng. Dept., Bilkent University Ankara - Turkey. Collections.
CS102 – GUI AWT & Swing Components & Containers, Layout Managers, Events & Listeners MVC design pattern. David Davenport.
Java Coding OOP_3 David Davenport Computer Eng. Dept., Bilkent University Ankara - Turkey. Some important Java interfaces +
CS 151: Object-Oriented Design October 15 Class Meeting Department of Computer Science San Jose State University Fall 2013 Instructor: Ron Mak
From Algorithms to Architecture David Davenport Computer Eng. Dept., Bilkent University Ankara - Turkey. lightning introduction.
From Mind to Brain Machine The Architecture of Cognition David Davenport Computer Eng. Dept., Bilkent University, Ankara – Turkey.
SE1011 Week 6, Class 1 Today Return Half Exam 2 (cont.) Object Oriented Programming (cont.) Muddiest Point Next Half Exam: Week 7, Monday SE-1011 Slide.
Why aren’t we doing it already? Programming the Future.
Java Coding 5 – Part 2 David Davenport Computer Eng. Dept., Bilkent University Ankara - Turkey. To object or not…
Minshrs V+ V- On/off Snooze Cancel alarm sleep Set alarm 1.
Top Five Alarm Apps for Android Install Uc Browser On Pc.
1 Visual Basic: An Object Oriented Approach 7 – The User interface.
Java SWING and Model View Controller (MVC)
Instructor: Dr. Hany H. Ammar
Java Coding – part 2 David Davenport Computer Eng. Dept.,
Choose a Count down Time by Clicking a Button Below.
Java Coding Extra David Davenport Computer Eng. Dept.,
GCSE COMPUTER SCIENCE Practical Programming using Python
Java Coding 3 – part2 David Davenport Computer Eng. Dept.,
Java Coding 3 David Davenport Computer Eng. Dept.,
Java Coding 8 David Davenport Computer Eng. Dept.,
Digital Time Pieces by youpresent.co.uk
User Guide Portman Concur
CS102 – Bilkent University
Online Testing System Assessment Viewing Application (AVA)
Java Coding 6-extra David Davenport Computer Eng. Dept.,
Java Coding 6 – part2 David Davenport Computer Eng. Dept.,
Java Coding 8 David Davenport Computer Eng. Dept.,
Java Coding 4 (part2) David Davenport Computer Eng. Dept.,
Java Coding 6_part3 David Davenport Computer Eng. Dept.,
New Student Orientation
New Student Orientation
New Student Orientation
User Guide Portman Concur
Java Coding 6 David Davenport Computer Eng. Dept.,
Java Coding 6 David Davenport Computer Eng. Dept.,
Java Coding 5 – Part 2 David Davenport Computer Eng. Dept.,
Presentation transcript:

Java Coding 8 David Davenport Computer Eng. Dept., Bilkent University Ankara - Turkey. Object-Oriented Design Examples

IMPORTANT… Students… This presentation is designed to be used in class as part of a guided discovery sequence. It is not self- explanatory! Please use it only for revision purposes after having taken the class. Simply flicking through the slides will teach you nothing. You must be actively thinking, doing and questioning to learn! Instructors… You are free to use this presentation in your classes and to make any modifications to it that you wish. All I ask is an saying where and when it is/was used. I would also appreciate any suggestions you may have for improving it. thank you, David. David

Alarm Clock As an example of Object Oriented Design

Product Idea… An alarm clock! Brainstorm requirements… Design User Interface… Detailed Design… Implement & Test…

Brainstorm requirements… Show time – hours/mins/secs 12 hour (am/pm) and/or 24 hour format Set alarm time – hours/mins/secs Disable alarm Stop alarm ringing Snooze option Multiple alarms, with different sounds Text description for each alarm International offsets for travelers Show alarm time – hours/mins/secs Set time – hours/mins/secs

Design User Interface…  12 : 03 : 10         

A Simple UI

MVC - Design Pattern View model controller View Multiple Views 14:30 Half past two hours: 14 mins: 30 secs: 25 1 sec. timer Reset

MVC – Alarm Clock 14:30 Alarm: 14:30:00 1 sec. timer Menu setTime setAlarm turn on/off hours: 14 mins: 30 secs: 25 Msg: Wake up! Status: On hours: 14 mins: 35 secs: 00 Wake up! Alarm Ringing Alarm: 14:30:00 Wake up! Alarm Settings 14:30:00 Clock Settings

Alarm Class Constructors Alarm( Time, Msg) Alarm( Time) Methods isAlarmTime( theTime) getAlarmTime() setAlarmTime( time) getAlarmMsg() setAlarmMsg( msg) snooze() isOn() setStatus( status) Alarm alarmTime alarmMsg status

AlarmClock Class AlarmClock time alarm Constructors AlarmClock() Methods turnAlarmOn() turnAlarmOff() isAlarmOn() setAlarm( time) setAlarmMsg( msg) setTime( time) ?getDisplayPanel() ?update() time.tick() & if isOn notify alarm listeners