Design Patterns in Java - PowerPoint PPT Presentation

1 / 13
About This Presentation
Title:

Design Patterns in Java

Description:

Everything has reference to everything else. Only simulates Balls. Few, big classes ... MVC cleans up data flow. Can add new Entities! I want to add squares. ... – PowerPoint PPT presentation

Number of Views:111
Avg rating:3.0/5.0
Slides: 14
Provided by: minu4
Category:

less

Transcript and Presenter's Notes

Title: Design Patterns in Java


1
Design Patterns in Java
  • Kinematic Simulator

2
Kinematic Simulator
  • Hello, Im Steve
  • Heres our project

3
Kinematic Simulator
  • Hello, Im Helena
  • Heres our design

4
Instance Diagram
5
Class Diagram
6
Patterns UsedModel View Controller
SimulatorModel
SimulatorViewer
SimulatorController
7
Patterns UsedStrategy
PhysicsStrategy (Abstract Strategy)
SimulatorController (Context)
NewtonianPhysicsStrategy (Concrete Strategy)
8
Patterns UsedObserver
observes
SimulatorController
ViewerListener
SimulatorViewer
9
Patterns UsedAbstract Factory
EntityFactory (Abstract Factory)
Entity (Abstract Product)
Ball Factory (Concrete Factory)
Ball (Concrete Product)
10
The Old DesignClasses and Instances
11
Comparison of Old vs. New
  • Old
  • Works
  • Everything has reference to everything else
  • Only simulates Balls
  • Few, big classes
  • Physics hard to find
  • AWT

12
Comparison of Old vs. New
  • New
  • Works
  • MVC cleans up data flow
  • Can add new Entities! I want to add squares.
  • Can add new Physics!
  • Can add new Views!
  • Great!
  • It dont mean a thing if it aint got that Swing
  • Faster!

13
Questions?
  • You can play at
  • http//minutillo.com/steve/ks/
  • Thanks!
Write a Comment
User Comments (0)
About PowerShow.com