Euro Disney Case
Essay by review • November 13, 2010 • Study Guide • 6,354 Words (26 Pages) • 3,205 Views
Technical Documentation
Stats & Matchups
Contents
1. Document information 3
1.1 Version management 3
2. Introduction 4
3. Program architecture 5
3.1 Architecture 5
3.2 Class explanation 6
3.1 Function explanation 8
3.2 GetDB 11
3.2 GetMajorstats 20
3.3 GetStatic() 28
4. Implementation 29
4.1 Installation on server 29
4.2 Installation in project 29
5. Testing 30
1. Document information
1.1 Version management
Version Modification Author
01 Start Technical Documentation RS,HA
02 Finish Technical Documentation HA
2. Introduction
In this document we will describe how the Stats & Matchups programs are build and explain the classes and functions. At the end of the documentation is described how to setup the files, Also included are the test reports.
3. Program architecture
3.1 Architecture
In the Stats & Matchup part of the website Royal Sports there are 9 different sport leagues displayed. Including the following:
Basketball:
- NBA
- NCAA
- WNBA
Football:
- NFL
- NCAA
- ARENA
Baseball:
- MLB
Hockey:
- NHL
Other Sports:
- Nascar
Each subleague of every sport has their own program to generate the team pages in that specific league. We have chosen for separate programs because the information in the different leagues is not always the same.
The programs are built in the following architecture:
3.2 Class explanation
Form
If the program is finished the form displays if the teampage generating was completed successfully or the generating failed. If the program failed he returns an error and shows the error on the form. The form closes automatically.
Form codebehind
In this class the program makes a connection with the database ÐŽ§DolphinesÐŽÐ. The first thing the program does is counting the amount of teams in the specific league and creates array that is big enough to contain all the team names. Then he fills the array with the names out of the database. In a FOR statement he calls the class GetDB.vb and the class GetMajorstats.vb with the team name as parameter, the FOR statement continues until the end of the array. All this happens in between try and catch to return to the form if the page generating was successfully or failed.
GetDB
In this class the Stats page is created, all the functions in this class are getting information of that specific team out of the database. Not all the functions are included in every league, the class contains the following functions:
- WriteHTML()
- GetDate()
- GetPath()
- GetTeamName()
- GetNextGame()
- GetNextGameMoneyLine()
- GetLastGame()
- GetLast5GamesDate()
- GetLast5Teams()
- GetLast5OverUnder()
- GetBettingSituations()
- GetContent()
- GetOffence()
- GetContent()
- GetDeffence()
- CarMake()
- ReplaceWhitespace()
- ReplaceTags()
- StripTags()
All these function will be described in the next chapter.
GetMajorstats
In this class the Majorstats page is created, the functions in this class are getting their information from http://www.majorstats.com. The majorstats page is not used for every league only the following:
Sport League Page
Baseball MLB Roster page
Basketball NBA Roster page
Football NFL Injuries page
Hockey NHL Roster page
Other Sports Nascar Driver page
The reason why some pages donÐŽ¦t have a Majorstats page because the information is missing on www.majorstats.com.
Not all functions are included in every league, the class contains the following functions:
- WriteHTMLRoster()
- GetContent()
- GetRosterPitcher()
...
...