1 Mass IT Course Fall 2008 Bob Wilson S-3-071.

Slides:



Advertisements
Similar presentations
Foundations of Programming and Problem Solving Introduction.
Advertisements

JAVA Programming Environment © Juhani Välimäki 2003.
CS210 Intermediate Computing with Data Structures (Java)
Welcome to Java Programming. Why do I want to take this course? I want to major in EE/CSE. ECE122 is a requirement. Java is hot in Job market. It is useful.
Introduction to Computer Programming in C
Assignment I, part 1. Groups of three students. Specify one as group leader. group names to TA and me. Create an object-oriented conceptualization.
Introduction To System Analysis and Design
Object Oriented Design and UML
1 Fall 2008ACS-1903 Chapter 1 Topics Java History Java Programs Why Program? Computer Systems: Hardware and Software Programming Languages What Is a Program.
Java Programming, 3e Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
1 Generics and Using a Collection Generics / Parameterized Classes Using a Collection Customizing a Collection using Inheritance Inner Classes Use of Exceptions.
System Analysis and Design
UFCEPM-15-M Object-oriented Design and Programming Jin Sa.
Welcome to CS-IT 114 Introduction to Java Spring 2006 Namita Singla Department of Computer Science University of Massachusetts Boston.
Java How to Program, 9/e Instructor: José M. Reyes Álamo © by Pearson Education, Inc. All Rights Reserved.
ACM/JETT Workshop - August 4-5, 2005 UML Modeling using MagicDraw UML for Java Programmers.
Getting Started with IBM Rational System Developer 01/06/2011.
Java PAL.  Contains the development kit and the runtime environment ( aka the Java Virtual Machine )  Download Link:
CMSC 202 Computer Science II for Majors Fall 2009 Introduction.
Sadegh Aliakbary Sharif University of Technology Fall 2011.
1 Object Oriented Design and UML Software Development Activities Object Oriented Design Unified Modeling Language (UML) Reading for this Lecture: L&L 6.1.
Sequence Diagram Tutorial
1 CSC 221: Computer Programming I Fall 2004 Objects and classes: a first pass  software objects, classes, object-oriented design  BlueJ IDE, compilation.
Java Programming, 2E Introductory Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Introduction to Java Tonga Institute of Higher Education.
CS110/CS119 Introduction to Computing (Java)
Advanced Java New York University School of Continuing and Professional Studies.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
(C) 2009 J. M. Garrido1 Object Oriented Simulation with Java.
CMSC 202 Computer Science II for Majors Object-Oriented Programming.
An intro to programming. The purpose of writing a program is to solve a problem or take advantage of an opportunity Consists of multiple steps:  Understanding.
Ali Shahrokni Application Components Activities Services Content providers Broadcast receivers.
Sadegh Aliakbary Sharif University of Technology Fall 2012.
Introduction to Software Design Chapter 1. Chapter Objectives  To become familiar with the software challenge and the software life cycle  To understand.
An Introduction to Java Chapter 11 Object-Oriented Application Development: Part I.
Lesson 2: First Java Programs. Objectives: –Discuss why Java is an important programming language. –Explain the Java virtual machine and byte code. –Choose.
CS 11 java track: lecture 1 Administrivia need a CS cluster account cgi-bin/sysadmin/account_request.cgi need to know UNIX
1 Generics and Using a Collection Generics / Parameterized Classes Using a Collection Customizing a Collection using Inheritance Inner Classes Use of Exceptions.
Applied Computing Technology Laboratory QuickStart C# Learning to Program in C# Amy Roberge & John Linehan November 7, 2005.
Systems Analysis & Design 7 th Edition Chapter 5.
Welcome to / Bienvenue à A Introduction to Computing II Instructor: William Renner TA: TBA Course website: Fall Session.
® IBM Software Group © 2006 IBM Corporation Writing Good Use Cases Module 1: Introduction to Use-Case Modeling.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
1 CS210 Intermediate Computing with Data Structures (Java) Saaid Baraty S-3-90.
CC111 Lec7 : Visual Basic 1 Visual Basic(1) Lecture 7.
Lecture.1: Getting Started With Java Jiang (Jen) ZHENG May 9 th, 2005.
Ist.psu.edu School of Information Sciences and Technology IST 311 – Object-Oriented Design & Software Steven Haynes IST 311 – Class 7 17 January 2006
Pre-Sessional Java Programming Lecture 1a Reyer Zwiggelaar
Lecture 1. Introduction to Programming and Java MIT- AITI 2003.
Pengantar OOP Class-Java. 2 Software Development Tools Using Sun Java SDK alone Source File(s) (.java) Programmer Compiler (javac) Class File(s) (.class)
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
UML Course Instructor: Rizwana Noor. Overview  Modeling  What is UML?  Why UML?  UML Diagrams  Use Case  Components  Relationships  Notations.
3/5/2002e-business and Information Systems1 Java Java Java Virtual Machine (JVM) Java Application Program Interface (API) HW Kernel API Application Programs.
Java How to Program, 9/e Presented by: José M. Reyes Álamo © by Pearson Education, Inc. All Rights Reserved.
Introduction to UML and Rational Rose UML - Unified Modeling Language Rational Rose 98 - a GUI tool to systematically develop software through the following.
SWE 214 (071) Introduction to UML Slide 1 Introduction to UML.
Modified from Sommerville’s originalsSoftware Engineering, 7th edition. Chapter 14 Slide 1 Object-Oriented Design.
1 An Overview of UML. 2 The Unified Modeling Language UML is a graphical language used by software engineers to model software systems during development.
 It is a pure oops language and a high level language.  It was developed at sun microsystems by James Gosling.
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
Introduction CMSC 202 Fall Instructors Mr. Ryan Bergeron – Lecture Section 01 Tues/Thu 1:00 – 2:15 am, Sondheim 111 – Lecture Section 04 Tues/Thu.
Introducing IBM Rational Software Architect
CS210 Intermediate Computing with Data Structures (Java)
Introduction to OOP and UML
Unified Modeling Language
Chapter No. : 1 Introduction to Java.
Introduction to Unified Modeling Language (UML)
UML: Unified modeling language
Unified Modeling Language
Software Engineering System Modeling Chapter 5 (Part 1) Dr.Doaa Sami
Presentation transcript:

1 Mass IT Course Fall 2008 Bob Wilson S-3-071

2 Welcome to Mass IT Course Syllabus is home page on the website: Lecture 1 reviewing: –UML –Eclipse and ANT Lecture 2 reviewing: –Java Language –Object-Oriented Programming

3 Welcome to Mass IT Course Lecture 3 for this session: –Collections –Iterable and Iterator Interfaces –“For-each” loops e.g. for (Type object : collection) Exercise for this session: –Sudoku Solution Verifier –Use of Collections, Iterable and Iterator

4 Unified Modeling Language (UML) UML is a graphical tool to visualize and analyze the requirements and do design of an object-oriented solution to a problem Three basic types of diagrams: –Use Case Diagram –Class Diagram –Interaction Diagram A good reference is UML Distilled, 3 rd Ed., Martin Fowler, Addison-Wesley/Pearson

5 Unified Modeling Language (UML) Advantage of UML – It is graphical –Allows you to visualize the problem / solution –Organizes your detailed information Disadvantage of UML – It is graphical –Can be done with pencil and paper - tedious –We have UMLPAD which is a simple design tool to aid in drawing the diagrams –Commercial UML S/W tools are expensive! Example: Rational ROSE (IBM acquired Rational)

6 Use Case Diagrams Typically the first diagram(s) drawn Helpful for visualizing the requirements Icons on the Use Case Diagram –Actors: Users or other external systems –Objects: Potential classes in the solution –Scenarios: Sequences of interactions between Actors and Objects that are typical for the solution to the problem (Both success cases and error cases should be included)

7 Example: Use Case Diagram “No Sale” Buy with Cash Buy On Credit Customer Sales Person Cry over lost commission Bartender Process Cash Sale Cash Register Credit Card Bank Process Credit Sale Cash Card Swipe Machine Stiff Drink Product >

8 Class Diagrams Classify the Objects in the Use Cases Define name of each class Define each class’s attributes –Constants –Variables Define each class’s behaviors –Methods Show relationships between classes –Depends on, Inherits, etc.

9 Example: Class Diagram Credit Card - myCardData : CardData + read( ) : CardData Bank - name : String - address : String - accounts [ ] : AcctData + processCharge ( thisCardData : CardData amt : double, storeName : String, storeBank : Bank, storeAcctNumber : int ) : boolean CardData - cardType : enum {Visa, …} - myBank : Bank - myAcctNumber : int + getCardType( ) : enum + getBank( ) : Bank + getAcctNumber( ) : int AcctData -acctLimit : double -acctBalance: double …

10 Interaction Diagrams Shows the time relationship of the events in a scenario between actors and objects –UML Sequence Diagram –Sometimes called a “ladder diagram” A vertical line represents an actor or object A horizontal line represents an interaction –E.G. a call to a method of another object Progress of time is shown down the page

11 Example: Interaction Diagram Process Credit Sale Sales Person Credit Card Card Swipe Machine Bank read( ) processCharge( … ) enterAmt(…) swipeCard( ) return boolean return CardData Time readResponse( ) return “OK”

12 Software Development Tools Using Sun Java SDK alone Source File(s) (.java) Programmer Compiler (javac) Class File(s) (.class) Virtual Machine (java) Editor Program executes Parts of Sun Java SDK Command Line Interface

13 Using Sun Java SDK Alone Example DOS Commands and Parameters C:\ > edit HelloWorld.java (Create/edit “source file” in an external window) C:\ > javac HelloWorld.java (creates.class file) C:\ > java -classpath … HelloWorld Hello World C:\ > exit

14 Software Development Tools We will use a combination of the Eclipse IDE with ANT and the Sun Java SDK Source File(s) (.java) Programmer Eclipse Compiler (javac) Class File(s) (.class) Virtual Machine (java) Edit Build Run Program executes Graphical User Interface build.xml ANT

15 Eclipse IDE

16 Software Development Tools Download/install the software development tools on your own PC if you wish to do your project assignments at home –Sun Software Development Kit (SDK) –Eclipse (IDE) Use the PCs in the web lab as they already have these tools installed