Team A - PowerPoint PPT Presentation

1 / 21
About This Presentation
Title:

Team A

Description:

Threaded in a similar fashion. Functions: Opening and closing a ... Implementing the Adapter Design Pattern via Java Interfaces. Sends data to DataManager ... – PowerPoint PPT presentation

Number of Views:59
Avg rating:3.0/5.0
Slides: 22
Provided by: Ad87
Learn more at: http://www.cs.unc.edu
Category:
Tags: team

less

Transcript and Presenter's Notes

Title: Team A


1
Team A
  • 3PB Project
  • Midterm Progress Report

2
Original System Design
3
Current System Design
Server
User Interface
Data Manager
Listener
3PB Computer
Parser
Display
4
User Interface
Server
User Interface
Data Manager
Listener
3PB Computer
Parser
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 --gt 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
User Interface
Data Manager
Listener
3PB Computer
Parser
Display
8
Data Flow
User Interface
Parser
time resolution
new TOS
Data Manager
TOS sampled every time resolution
TOS sampled every time resolution
Display
3PB Computer
3PB output (event)
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
  • Doesnt 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
User Interface
Data Manager
Listener
3PB Computer
Parser
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 Well 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
  • Cant always work when the mood strikes
Write a Comment
User Comments (0)
About PowerShow.com