scis.regis.edu ● [email protected] cs-432: modern software engineering week 2 dr. jesús borrego lead...

28
scis.regis.edu [email protected] CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Upload: ernest-glenn

Post on 01-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

scis.regis.edu ● [email protected]

CS-432: Modern Software Engineering

Week 2

Dr. Jesús BorregoLead Faculty, COSRegis University

1

Page 2: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Class Outline•Review of Homework•Key Terms•Instantiation•Methods•Classes•Communication Diagrams•Program Management•Questions?

2

Page 3: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Review of Homework

•All homework submitted has been graded• If you did not submit homework 1, please do so•Homework 2 was a group project and two

were submitted – for group project, submit only 1 with a title page indicating members

•Grade comments were either posted (if submitted) or emailed

•Make sure you read the material assigned before class and before attempting the homework

3

Page 4: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Key Terms

• Anthropomorphism – antropomorfismo• Axiom – axioma• Boundary class – clase en la periferia• Instance – instancia• Interface - interfaz

4

Page 5: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Class Overview•Analysis Model

▫Different activities in the model▫The model provides a structure for the

functionality to be provided by the application

▫Guides the development of the software•Anthropomorphism

▫Giving inanimate entities characteristics attributed to humans

5

Page 6: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Application Analysis Phase

•When analyzing a problem, we consider the entities interacting with the system and the interaction with other objects

•We define a list of objects and describe the properties for each, plus the interaction among the other objects

•Anthropomorphism helps us define what objects can do

6

Page 7: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Defining operations for an object•Having a ‘Contact’ object, we can:

▫Create the contact▫Delete a contact▫Find a contact▫Update a contact

7

Page 8: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Definitions•Classifiers (classes): prototypes of entities

▫A generic definition of a set of objects▫A template to create objects of that class▫Can be derived from more generic classes

•Object (Instance) - actual object from a class:▫An entity with a unique identity▫With local behavior and state▫An instance of a class and is a type of that

class

8

Page 9: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Class/Object Representation

•Class: A rectangle with the name centered

•Class names begin with capital letter

•Object:▫Instance of a class – instance object▫Similar to a class, but with the name

underlined

9

Page 10: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Instantiation

•An object is an instance of a class•In UML, the instantiation is shown

graphically

10

Page 11: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Attributes•A class has attributes (- means private)

•An object is an instance of a class, inherits attributes of class and has values

•These define the state of the object

11

Page 12: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Methods•The behavior of an object is represented

by its operations•The operations of an object are called

methods•Methods are like functions and are

declared in the class definition (but methods are more than functions)

12

Page 13: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Communication Diagrams

•Objects communicate with other objects by passing messages to each other

•The calling object invokes an operation on the called object▫Numbers indicate the sequence of the

messages

13

Page 14: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Boundary Classes

•Boundary classes interact with external entities

•We use boundary classes to represent graphical components, such as windows, dialogs, views and dialog boxes

14

Page 15: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Find Contact Use Case Realization

15

Page 16: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Create Contact Use Case Realization

16

Page 17: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Non-Verb Analysis of Use Cases

17

Page 18: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

CRC Analysis of Use Cases

18

•Class-Responsibility-Collaborator •CRC Card

Page 19: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Finding Responsibilities

19

Page 20: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Defining Collaborators

20

Page 21: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Package Examples

21

Page 22: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

List Interface•Could be implemented with arrays or

linked lists

22

Page 23: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Project Management

23

Page 24: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Overview of Project Management•Project Management•A successful project must be completed

on time, within budget, and deliver a quality product that satisfies users and meets requirements

•Project manager or project leader•Project coordinator

24

Page 25: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Overview of Project Management•What Does a Project Manager Do?

▫Project manager, project leader▫Project planning▫Project scheduling▫Project monitoring and controlling▫Project reporting

25

Page 26: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Overview of Project Management•Project Activities and Planning Steps

26

Page 27: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Homework 3

•Communication Diagrams for the case study (at least 3)

•Create in Visio•See slides 14-15 for examples•Submit to WorldClass before Week 3

27

Page 28: Scis.regis.edu ● scis@regis.edu CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Next Class

•Wednesday, January 22, 2014•Make sure you turn in any assignments

due by next class•We will have a review for the midterm

exam•Send any questions on any items covered•Read and review on line material before

class

28