diff options
-rw-r--r-- | docs/DesignDocument.dot | 74 | ||||
-rw-r--r-- | docs/DesignDocument.md | 46 | ||||
-rw-r--r-- | docs/DesignDocument_Purpose.txt | 15 |
3 files changed, 110 insertions, 25 deletions
diff --git a/docs/DesignDocument.dot b/docs/DesignDocument.dot new file mode 100644 index 0000000..820ec79 --- /dev/null +++ b/docs/DesignDocument.dot @@ -0,0 +1,74 @@ +digraph systemModel { + rankdir="LR"; + node[shape="record"]; + + BaseController[label="Controller base class"]; + #subgraph clusterControllers { + # label="Controllers"; + MainController[label="<name> MainController | <index> showHomepage | <edit> editSettings"]; + TournamentController[label="<name> TournamentController | <index> listTournaments | <new> newTournament | <show> showTournament | <edit> editTournament | <delete> endTournament"]; + MessageController; + LoginController[label="<name> LoginController | <index> showForm | <login> login | <logout> logout"]; + SearchController; + UserController; + MatchController; + #} + #subgraph clusterViews { + # label="views/"; + subgraph clusterCommonViews { + label="views/common/"; + common_permission_denied; + common_invalid; + } + subgraph clusterMainViews { + label="views/main/"; + main_homepage; + main_settings; + } + subgraph clusterLoginViews { + label="views/login/"; + login_form + } + subgraph clusterTournamentViews { + label="views/tournament/"; + tournament_index; + tournament_new; + tournament_show; + tournament_edit; + } + subgraph clusterMessageViews { + label="views/message/"; + message_private; + message_new_alert; + } + #} + + BaseController -> MainController[arrowhead="onormal"]; + MainController:index -> main_homepage; + MainController:edit -> main_settings; + + BaseController -> TournamentController[arrowhead="onormal"]; + TournamentController:index -> tournament_index; + TournamentController:new -> tournament_new; + TournamentController:show -> tournament_show; + TournamentController:edit -> tournament_edit; + TournamentController:edit -> common_permission_denied; + TournamentController:delete -> common_permission_denied; + + BaseController -> MessageController[arrowhead="onormal"]; + MessageController -> message_private; + MessageController -> message_new_alert; + + + BaseController -> LoginController[arrowhead="onormal"]; + LoginController:index -> login_form; + LoginController:login -> common_permission_denied; + LoginController:logout -> common_invalid; + + BaseController -> SearchController[arrowhead="onormal"]; + + BaseController -> UserController[arrowhead="onormal"]; + + BaseController -> MatchController[arrowhead="onormal"]; + +} diff --git a/docs/DesignDocument.md b/docs/DesignDocument.md index 2fb57c0..9613657 100644 --- a/docs/DesignDocument.md +++ b/docs/DesignDocument.md @@ -6,28 +6,54 @@ Version 1.0 – 2014.02.10 Created 2014.02.09 1 Purpose -This document describes all components of the Leaguer Tournament management system. Leaguer is a software to be installed and run on a server. TODO. ANDREW COMPLETE THIS. + +The purpose of this document is to outlay the desgin, intent, and structure of +the Project Leaguer tournament organizing software. + +Released under an open license, Project Leaguer leverages powerful web +technologies to provide everything needed to organize an online tournament. +Whether it's League of Legends, Chess, Poker, or more, Project Leaguer provides +tournament organizers, participants, and spectators with an online +interface to keep up with the score. Even better Project Leaguer offers scoring +features and options which would be very difficult to implement with traditional +tournament organizing practices such as peer review and team-independent +individual scoring. + +The software itself operates as a stand-alone background server application +accessible and configurable though its web interface which reveals to users a +sleek web application which manages tournaments. 2 Non-Functional Requirements TODO Guntas. Email dunsmore and marco about this, then fill it out. 3 Design Outlines + 3.1 Design Decisions and Components -Our system will on the Model 2 design pattern/architecture. TODO: Davis – add the purpose of EACH component as a list. + +Our system will on the Model 2 design pattern/architecture. + Controllers – The controllers will control any logic necessary to obtain the correct content for display. It then places the content in the request and decides which view it will be passed to. -Models – The classes in the UML document below will reside in the model… + +Models – We will be using a Ruby on Rails model. The Ruby on Rails framework maps to a table in the database and a Ruby file. So a User will usually be difined as user.rb in the app/models directory and this will be linked to the table users in the database. + Views – Views will be the HTML pages for Leaguer, and will display the users desired content inside of the web browser. + Component Interaction Controllers will be used to run all of the background work of Leaguer. They will fetch the necessary data and will tell the view what to do. We will be implementing seven controllers into Leaguer. Those will be: - I. PM & Alerts – This controller will be used for sending and receiving private messages to and from the host. Players will be able to message the host in order to inform him/her of anything during the tournament. This will also allow the host to post any notifications he or she desires that will be displayed for all to see. - II. Homepage – Used to handle the homepage. This will be the first web page seen by any user of the application. - III. Login – This controller will be used when a user attempts to sign in to their profile on Leaguer. - IV. Search – This controller will be used to search the web-base for on going tournaments, players and past tournaments. - V. Tournament – Used for setting up a tournament. This will be restricted to the host of the tournament. + + I. PM & Alerts – This controller will be used for sending and receiving private messages to and from the host. Players will be able to message the host in order to inform him/her of anything during the tournament. This will also allow the host to post any notifications he or she desires that will be displayed for all to see. + II. Homepage – Used to handle the homepage. This will be the first web page seen by any user of the application. + III. Login – This controller will be used when a user attempts to sign in to their profile on Leaguer. + IV. Search – This controller will be used to search the web-base for on going tournaments, players and past tournaments. + V. Tournament – Used for setting up a tournament. This will be restricted to the host of the tournament. VI. User – The controller that will take each user to their own profile. - VII. Match/Peer Review – used for gather game statistics and the separate player reviews. -Each of these controllers will fetch the data specified by its separate section. The view will then be used to display all of this information, so Login will take the user to a login page, search will take the user to a search page and so on. + VII. Match/Peer Review – used for gather game statistics and the separate player reviews. + +Each of these controllers will fetch the data specified by its separate section. The view will then be used to display all of this information, so Login will take the user to a login page, search will take the user to a search page and so on. + +The Model will be the data section that will map all of the information to their proper locations in the data base. + Design Issues Scoring Algorithm diff --git a/docs/DesignDocument_Purpose.txt b/docs/DesignDocument_Purpose.txt deleted file mode 100644 index ed06d2f..0000000 --- a/docs/DesignDocument_Purpose.txt +++ /dev/null @@ -1,15 +0,0 @@ -Purpose: - -The purpose of this document is to outlay the desgin, intent, and structure of -the Project Leaguer tournament organizing software. - -Released under an open license, Project Leaguer leverages powerful web -technologies to provide everything needed to organize an online tournament. -Whether it's League of Legends, Chess, Poker or more, Project Leaguer provides -tournament organizers, participants, and spectators with an online -interface to keep up with the score. - -The software itself operates as a stand-alone background application -accessible and configurable though its web interface. - -NOT FINISHED -- JUST COMMITING |