CIS 644 Thurs. Sept. 30, 1999 W6B … assignment: 2ed object model … patterns … Java … assignment: Java … patterns.

Slides:



Advertisements
Similar presentations
11 Copyright © 2005, Oracle. All rights reserved. Using Arrays and Collections.
Advertisements

Transparency No. 1 Java Collection API : Built-in Data Structures for Java.
Stacks.
MWD1001 Website Production Using JavaScript with Forms.
Generic programming in Java
Bag implementation Add(T item) – Enlarge bag if necessary; allocate larger array Remove(T item) – Reduce bag if necessary; allocate smaller array Iterator.
Contacts. Stored in the Contact folder Stores information about businesses or people –Address, phone number, address etc.
Iterators T.J. Niglio Computer & Systems Engineering Fall 2003 Software Design & Documentation Object Behavioral.
Software Design and Documentation Individual Presentation: Composite Pattern 9/11/03.
The Composite Pattern.. Composite Pattern Intent –Compose objects into tree structures to represent part-whole hierarchies. –Composite lets clients treat.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Iterator COMP 401, Spring 2013 Lecture 07 1/31/2013.
CST JavaScript Validating Form Data with JavaScript.
Maps A map is an object that maps keys to values Each key can map to at most one value, and a map cannot contain duplicate keys KeyValue Map Examples Dictionaries:
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
Problem Of The Day  Decipher the following phrase: STANDS 0 _
Chapter 5 Java Script And Forms JavaScript, Third Edition.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
Agoracast: Design and Tools Review David Wallace Croft Senior Java Architect CroftSoft Inc Talk-Java/Drink-Java Las Colinas, Texas.
COMP 321 Week 7. Overview HTML and HTTP Basics Dynamic Web Content ServletsMVC Tomcat in Eclipse Demonstration Lab 7-1 Introduction.
Information and Computer Sciences University of Hawaii, Manoa
The Java Collections Framework (Part 2) By the end of this lecture you should be able to: Use the HashMap class to store objects in a map; Create objects.
Lecture 8 – Cookies & Sessions SFDV3011 – Advanced Web Development 1.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
© 2004 Goodrich, Tamassia Stacks. © 2004 Goodrich, Tamassia Stacks2 Abstract Data Types (ADTs) An abstract data type (ADT) is an abstraction of a data.
In the name of Allah The Proxy Pattern Elham moazzen.
Enterprise JavaBeans Understanding EJB Components Version 0.1 Kamal Wickramanayake
30 May Stacks (5.1) CSE 2011 Winter Stacks2 Abstract Data Types (ADTs) An abstract data type (ADT) is an abstraction of a data structure An.
1 Chapter 28 Networking. 2 Objectives F To comprehend socket-based communication in Java (§28.2). F To understand client/server computing (§28.2). F To.
ICOM 4035 – Data Structures Lecture 3 – Bag ADT Manuel Rodriguez Martinez Electrical and Computer Engineering University of Puerto Rico, Mayagüez ©Manuel.
PHP. $_GET / $_POST / $_SESSION PHP uses predefined variables to provide access to important information about the server and requests from a browser.
Java server pages. A JSP file basically contains HTML, but with embedded JSP tags with snippets of Java code inside them. A JSP file basically contains.
Topic 1 Object Oriented Programming. 1-2 Objectives To review the concepts and terminology of object-oriented programming To discuss some features of.
(c) University of Washington15-1 CSC 143 Java List Implementation via Arrays Reading: 13.
18-1 Queues Data Structures and Design with Java and JUnit © Rick Mercer.
Server-side Programming The combination of –HTML –JavaScript –DOM is sometimes referred to as Dynamic HTML (DHTML) Web pages that include scripting are.
Chapter 36 More Object Design with GoF Patterns 1CS6359 Fall 2011 John Cole.
 Registry itself is easy and straightforward in implementation  The objects of registry are actually complicated to store and manage  Objects of Registry.
CIS 644 Thus. Oct. 28, 1999 W10B … misc. questions … thread, Runable … communication patterns.
Sets and Maps Computer Science 4 Mr. Gerb Reference: Objective: Understand the two basic applications of searching.
ICOM 4035 – Data Structures Lecture 4 – Set ADT Manuel Rodriguez Martinez Electrical and Computer Engineering University of Puerto Rico, Mayagüez ©Manuel.
WebObjects Matt Aguirre Lally Singh. What Is It? A Java based development platform specifically designed for database-backed web applications.
Chapter 4 Grouping Objects. Flexible Sized Collections  When writing a program, we often need to be able to group objects into collections  It is typical.
CSC 212 – Data Structures Lecture 23: Iterators. Question of the Day Thieves guild states it will sell to members: lock picking kits  $0.67 each 40’
1 CMPSCI 187 Computer Science 187 Introduction to Introduction to Programming with Data Structures Lecture 16: Trees Announcements 1.Programming project.
Generic Programming and Inner classes ge·ner·ic 1a : relating or applied to or descriptive of all members of a genus, species, class, or group : common.
CIS 644 Thurs. Oct. 7, 1999 W7B … call for Video Class model … discuss previous pattersn.
M180: Data Structures & Algorithms in Java Stacks Arab Open University 1.
// Increment i i += 1; // Restart timer this->start(Cycles::rdtsc() + clock->updateIntervalCycles); updater->start(0); // Start immediately. CS 190 Lecture.
Stack. ADS2 Lecture 1010 The Stack ADT (GoTa §5.1) The Stack ADT stores arbitrary objects Insertions and deletions follow the last-in.
Securing Web Applications Lesson 4B / Slide 1 of 34 J2EE Web Components Pre-assessment Questions 1. Identify the correct return type returned by the doStartTag()
COMPOSITE PATTERN NOTES. The Composite pattern l Intent Compose objects into tree structures to represent whole-part hierarchies. Composite lets clients.
Comp1004: Environments The Java Library. Coming up Recap – Encapsulation – Constructors – Loops – Arrays – ArrayList – Iterators The Java Library – Implementation.
Coming up Implementation vs. Interface The Truth about variables Comparing strings HashMaps.
Data Base Design Steps 1.Define Entity Classes (Relations/Tables) and Keys. 2.Define Relationships between Entity Classes. Normalization Steps Eliminate.
Chapter 5 Validating Form Data with JavaScript
Sections 3.4 Formal Specification
Web Development Web Servers.
Programming Assignment #1
Remote Method Invocation
Stacks.
Extending Java RMI for Dynamic Reconfiguration
COMPUTER 2430 Object Oriented Programming and Data Structures I
Lecture 4: RPC Remote Procedure Call Coulouris et al: Chapter 5
COMPUTER 2430 Object Oriented Programming and Data Structures I
Web Design & Development Lecture 6
Software Design Lecture : 39.
CIS 644 Tues. Nov. 30, 1999 W15A … patterns.
CIS 644 Thurs. Sept. 23, W5B … scenarios … signatures …. review
Presentation transcript:

CIS 644 Thurs. Sept. 30, 1999 W6B … assignment: 2ed object model … patterns … Java … assignment: Java … patterns

viewing lecture files: detached view can be resized detached browser can be resized works OK for me

oops.. correction.. getAutos method in Agency Agency.getAutos(…) -> myAutos.getAutos(…) easier to find primary UI ops

status, directions: chap 1 design.. more examples chap 2 composition chap 3 interfaces patterns … chap 4 threads

Assignment:

Video Store … rents videos video.. key = index, name rent for fixed price for N days. late fee is $1 customer … key = name address, phone cannot check if owes $$ max 10 out

interfaces for: addVideo addCustomer rent … a video return.. a video payFee … towards late fee getCustomerInfo getVideo Info (by name)

scenarios for: add video rent video return video

missing:..will do later log of transactions load & store data backup recover from log

work in pairs …

BadarpuraHubka BhaktaCarlson BodapatlaGardner Boina FengBohra ForgieSun JakherPallack LaneRubio LiuHorn ParanjpeTyree Terrazas WuSpriegel Zhang Ali

composite pattern: transparency vs safety

public interface IComponent { void operation( ) ; boolean isLeaf(); void add( Component C) throws IComponentException; void remove( IComponent C); IComponent[ ] getComponents(); }

public class Leaf implements IComponent { // class definition here boolean isLeaf () { return true;} IComponent [ ] getComponents() { return null } ; }

public class Composite implements IComponent { // class definition here IComponent [ ] children; boolean isLeaf () { return false;} }

assignment: build Java code “snippet” for one pattern … with some comments and for typical operation build single web page ( or provide url) open assignment: select specific pattern.

Iterator: also called a cursor external iterator: client requests next, get Item internal iterator: client passes passes on operation, iterator applies op to all items p. 258

Proxie … Coad, p. 101 Gamma, p. 207 an object with a single association with “actual” object provides interface of “actual” why: p. 109 … reuse UI remote proxie virtual proxie protection proxie

Visitor: an operation to be performed on elements of a structure... allows new operations to be defined without changing elements of the structure.. p. 331

END