Download presentation
Presentation is loading. Please wait.
Published byElyssa Dimmer Modified over 9 years ago
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!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.