Presentation is loading. Please wait.

Presentation is loading. Please wait.

Design Patterns in Java Kinematic Simulator. Hello, I’m Steve Here’s our project.

Similar presentations


Presentation on theme: "Design Patterns in Java Kinematic Simulator. Hello, I’m Steve Here’s our project."— Presentation transcript:

1 Design Patterns in Java Kinematic Simulator

2 Hello, I’m Steve Here’s our project

3 Kinematic Simulator Hello, I’m Helena Here’s our design

4 Instance Diagram

5 Class Diagram

6 Patterns Used: Model View Controller SimulatorViewer SimulatorModel SimulatorController

7 Patterns Used: Strategy PhysicsStrategy (Abstract Strategy) NewtonianPhysicsStrategy (Concrete Strategy) SimulatorController (Context)

8 Patterns Used: Observer SimulatorViewer SimulatorControllerViewerListener observes

9 Patterns Used: Abstract Factory EntityFactory (Abstract Factory) Entity (Abstract Product) Ball Factory (Concrete Factory) Ball (Concrete Product)

10 The Old Design: Classes 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 don’t mean a thing if it ain’t got that Swing Faster!

13 Questions? You can play at http://minutillo.com/steve/ks/ Thanks!


Download ppt "Design Patterns in Java Kinematic Simulator. Hello, I’m Steve Here’s our project."

Similar presentations


Ads by Google