9
Assignment 1, 2, 3 In the name of God Leila Samimi-Dehkordi PhD. Student Department of Software Engineering Faculty of Computer Engineering University of Isfahan Email: [email protected] These slides are prepared for Master student of Islamic Azad University of Shahrekord Advanced topics in Software Engineering

Assignment 1, 2, 3 In the name of God Leila Samimi-Dehkordi PhD. Student Department of Software Engineering Faculty of Computer Engineering University

Embed Size (px)

DESCRIPTION

Individual assignments (2) What is shiny toy anti-pattern?  Write one page about it in persian. Submit the answers on 13 Azar.  Your answer must be typed in a word document.  Send it to my . (I don’t accept hard copy) Advanced topics in Software Engineeringby Samimi 3 Fall 2014

Citation preview

Page 1: Assignment 1, 2, 3 In the name of God Leila Samimi-Dehkordi PhD. Student Department of Software Engineering Faculty of Computer Engineering University

Assignment 1, 2, 3In the name of God

Leila Samimi-DehkordiPhD. StudentDepartment of Software Engineering Faculty of Computer Engineering University of IsfahanEmail: [email protected]

These slides are prepared for Master student of Islamic Azad University of Shahrekord

Advanced topics in Software Engineering

Page 2: Assignment 1, 2, 3 In the name of God Leila Samimi-Dehkordi PhD. Student Department of Software Engineering Faculty of Computer Engineering University

Individual assignments

1. Compare your design pattern with at least two other patterns:

1. Write similarities.2. Write differences.

Submit the answers on 6 Azar. Your answer must be typed in a word document. Send it to my email. (I don’t accept hard copy) Do not copy from other document.

Advanced topics in Software Engineering by Samimi

2

Fall 2014

Page 3: Assignment 1, 2, 3 In the name of God Leila Samimi-Dehkordi PhD. Student Department of Software Engineering Faculty of Computer Engineering University

Individual assignments (2)

What is shiny toy anti-pattern? Write one page about it in persian.

Submit the answers on 13 Azar. Your answer must be typed in a word document. Send it to my email. (I don’t accept hard copy)

Advanced topics in Software Engineering by Samimi

3

Fall 2014

Page 4: Assignment 1, 2, 3 In the name of God Leila Samimi-Dehkordi PhD. Student Department of Software Engineering Faculty of Computer Engineering University

Team Assignment

Design a soccer (football) engine game.The end user play the in the following sequence:

Select two teams Add or remove player to/from the team Select a play ground Start the game

Design a class diagram includes: Player Team Ball Playground Referee Game Engine Game Team strategy

Advanced topics in Software Engineering by Samimi

4

Fall 2014

Page 5: Assignment 1, 2, 3 In the name of God Leila Samimi-Dehkordi PhD. Student Department of Software Engineering Faculty of Computer Engineering University

1. Game Engine

We want to have only one Game Engine at the time.

Which pattern has to be used and how?

Advanced topics in Software Engineering by Samimi

5

Fall 2014

Page 6: Assignment 1, 2, 3 In the name of God Leila Samimi-Dehkordi PhD. Student Department of Software Engineering Faculty of Computer Engineering University

2. Ball

When the position of a ball changes, all the players and the referee should be notified straight away.

How to use observer design pattern to solve this problem?

Advanced topics in Software Engineering by Samimi

6

Fall 2014

Page 7: Assignment 1, 2, 3 In the name of God Leila Samimi-Dehkordi PhD. Student Department of Software Engineering Faculty of Computer Engineering University

3. Team Strategy

The end user can Team Strategy from attack to Defend or inverse.

How to use Strategy Design Pattern to solve this problem?

Advanced topics in Software Engineering by Samimi

7

Fall 2014

Page 8: Assignment 1, 2, 3 In the name of God Leila Samimi-Dehkordi PhD. Student Department of Software Engineering Faculty of Computer Engineering University

4.Player

A player in a team should have additional responsibilities, like Forward, Defender etc, that can be assigned during the runtime.

How to use Decorator Design Pattern to solve this problem?

Hint: we have to kind of players: field-player and goal-keeper.

Each player may have three roles: Forward, MidFielder, Defender.

Advanced topics in Software Engineering by Samimi

8

Fall 2014

Page 9: Assignment 1, 2, 3 In the name of God Leila Samimi-Dehkordi PhD. Student Department of Software Engineering Faculty of Computer Engineering University

Design and Code

After designing each section, code the design in java.

You need to present your work on 20 Azar.

Advanced topics in Software Engineering by Samimi

9

Fall 2014