Presentation is loading. Please wait.

Presentation is loading. Please wait.

Team A 3PB Project Midterm Progress Report. Original System Design.

Similar presentations


Presentation on theme: "Team A 3PB Project Midterm Progress Report. Original System Design."— Presentation transcript:

1 Team A 3PB Project Midterm Progress Report

2 Original System Design

3 Current System Design Server Listener Parser Data Manager 3PB Computer User Interface Display

4 User Interface Server Listener Parser Data Manager 3PB Computer User Interface Display

5 User Interface Instantiate other classes (eg DataManager, Listener) Get user authentication -- Listener Get stock symbol and time resolution from user Send the symbol to Listener to register --> Real Data Service

6 User Interface Send time resolution to Data Manager -- DataManager Display textual data -- Display Display activity (should be done for the first iteration, but not yet) Display raw TOS data (should be done for the first iteration, and it is!)

7 Data Manager Server Listener Parser Data Manager 3PB Computer User Interface Display

8 Data Flow Data Manager 3PB Computer Parser User Interface Display TOS sampled every time resolution time resolution 3PB output (event) TOS sampled every time resolution new TOS

9 Data Manager Samples incoming TOS in 1-sec interval (using sample-and-hold) Stores samples When sample for the next Time Resolution is available, passes it to 3PB Computer Pros: Independent of local system time Doesn’t need to be in separate thread

10 Data Manager RecordTOS( newTOS ) called by Parser samples TOS, and store new samples when sample available for next Time Resolution(s), passes it to 3PBComputer

11 Data Manager ChangeTimeResolution( newResolutn ) called by UserInterface changes Time Resolution starts from first sample and passes sample at every new Time Resolution to 3PBComputer

12 3PB Computer Computes trends and break prices using 3PB method from TOS data. Passes outputs to a Display.

13 3PB Computer FirstTOS( tos ) called by DataManager initializes starting price NextTos( tos ) called by DataManager uses 3PB method to compute trend and price break if has output, generates event for Display

14 Server/Listener Server Listener Parser Data Manager 3PB Computer User Interface Display

15 Server Sends TOS data every 2 seconds Threaded One thread sends data One thread listens to the client Allows stock symbol and price to change

16 Listener Threaded in a similar fashion. Functions: Opening and closing a server connection Stores username/password Sends stock/price changes to server Sends server data to a Parser

17 Parser Packages server data into a TOS object Implementing the Adapter Design Pattern via Java Interfaces Sends data to DataManager

18 Overview of Demo Dummy data server starts UserInterface gets user ID, password, stock symbol and initial time resolution Data server sends TOS every 2 seconds Listener gets raw stream and displays it ThreePBComputer computes and displays results

19 What We’ll Do Next Allow user to change stock symbol Display trend information Indicate Fibonnaci points Connect to Real Data Service Indicator to show program running Codify Coding Conventions Organize CVS repository

20 Pros of XP Discovering design problems earlier Easier debugging Larger skill set Problems can be solved in parallel No marathons – You are forced to walk away from the code

21 Cons of XP Inter-pair Communication No detailed overall design Scheduling Can’t always work when the mood strikes


Download ppt "Team A 3PB Project Midterm Progress Report. Original System Design."

Similar presentations


Ads by Google