summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortkimia <tkimia@purdue.edu>2014-02-10 21:35:35 -0500
committertkimia <tkimia@purdue.edu>2014-02-10 21:35:35 -0500
commit4e17f0ac333530c1f33c3647ecb82e5c535b2a92 (patch)
tree7c1a341ff2b9a09365f07de0ac6963792c17c4b8
parentfa866323dedd0c9435a06a6546b4cddd60d68eb9 (diff)
Added interaction to the models
-rw-r--r--docs/DesignDocument.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/DesignDocument.md b/docs/DesignDocument.md
index 61a5767..928b839 100644
--- a/docs/DesignDocument.md
+++ b/docs/DesignDocument.md
@@ -121,20 +121,20 @@ ActiveRecord::Base (abstract)
: The abstract model that all other models inherit from.
Server
- : Server model providing access to system settings such as Language, Time_Zone, Server_name, Owner_name, and Version.
+ : Server model providing access to system settings such as Language, Time_Zone, Server_name, Owner_name, and Version. This class is edited and read by the MainController.
Tournement
- : This model represents the structure of a tournement. It will have several data sections to it including: The match settings, the matches contained inside of the tournement, a unique id for the tournement, and the registered players that are participating in the tournement.
+ : This model represents the structure of a tournement. It will have several data sections to it including: The match settings, the matches contained inside of the tournement, a unique id for the tournement, and the registered players that are participating in the tournement. This class interacts with a multitude of other model classes (see UML) and all four tournament controllers.
Match
- : A match will be a single set of data that contains all of the statistics of one game. This includes: players personal scores, team members, scores for each team, game time, the tournement that match took place in, and the date.
+ : A match will be a single set of data that contains all of the statistics of one game. This includes: players personal scores, team members, scores for each team, game time, the tournement that match took place in, and the date. This model interacts with the match controller, and is both a part of and has a many to one relationship with a tournament object.
Team
- : This model will consist of a list of players for a tournement. The team creation process is chosen by the host of the tournement and team setup will either be pre-determined teams or randomly assigned teams.
+ : This model will consist of a list of players for a tournement. The team creation process is chosen by the host of the tournement and team setup will either be pre-determined teams or randomly assigned teams. This model interacts with the tournament model class.
User
: This model represents all types of users; hosts, players, and
- spectators. These roles are identified by a “role” attribute.
+ spectators. These roles are identified by a “role” attribute. The user is an object that is often referenced by other classes, including tournament, match, and team.
### VIEWS