Docsity

Notes for Final Exam Guide - Objects and Design | CS 2340, Exams of Computer Science

Partial preview of the text

Download Notes for Final Exam Guide - Objects and Design | CS 2340 and more Exams Computer Science in PDF only on Docsity!

airGraffiti

Team ________

Milestone 3 and on..

Nebo Abraham

Justin Kuo

Gary Mann

Shreyas Srinivas

Contents

Scenarios 3

UML Diagrams 5

CRC Cards 11

Test Plan 16

PDA Design Sketches 18

Timeline 19

Responsibilities 20

Milestones 5 & 6 20

Location-Based Service Page 2 Abraham, Kuo, Mann, Srinivas

  1. While Joe is using his PDA, Joe runs into a problem of having his PDA freeze up on him, and he can't do anything with the PDA or any of the desired actions that he needs to do. (i.e move place, edit details etc.)
  2. Joe turns off his PDA while still the LocationBasedProgram is in its running state (i.e Joe has logged on to the server). The state of the program will be lost.
  3. Joe presses the reset button on his PDA, forcing the program to shut down and restart. This will cause him to lose information like his name and the his details about him when he logged in to the server. Joe will have to start over again.

UML Diagrams

CRC Cards Class Name: Place SuperClasses: Object SubClasses: None Responsibilities: Collaborators: Stores the data for the place objects within the world class. Allows devices to be stored in different locations. Being able to add remove persons from place. Being able to add, remove notes from different places. Universe. Device. Person. Notes. Class Name: Person SuperClasses: Object SubClasses: None Responsibilities: Collaborators: To store the data involving the individual people represented by the location based services diagrams. Being able to remove itself from a place and move to a different place. Being able to know who the author of a particular note is. Device to get/set Personal Data Place Notes. Class Name: Device SuperClasses: Object SubClasses: None Responsibilities: Collaborators: To store the information about the device that connects to the LBS. Adding a device to a certain location or removing it, depending on if the owner of the device moves. Being able to know who the owner is in order to keep track of information Device to get/set Personal Data Person Place

Class Name: Connection SuperClasses: Object SubClasses: None Responsibilities: Collaborators: Dispatches CommandGrammar across the network. Responsible for maintaining the protocol by which commands are encoded and decoded across the wire. Proxies the underlying mechanism of transport. CommandGrammar UserCurrency Class Name: Client SuperClasses: Object SubClasses: None Responsibilities: Collaborators: Represents the application model for the client. Contains or references the user interface and network interfaces (via GUI and Connection ).

GUI

Connection Class Name: Server SuperClasses: Object SubClasses: None Responsibilities: Collaborators: Delivers content (in the form of a Universe ) to clients. Delegates the connection mechanism to the CurrencyManager class. CurrencyManager ServerConsole Class Name: ServerConsole SuperClasses: SystemWindow SubClasses: None Responsibilities: Collaborators: Displays the user interface for the server. Maintains the step mechanism which (in lieu of spawning a separate thread) services background network processes. Server

Class Name: Currency SuperClasses: Object SubClasses: None Responsibilities: Collaborators: Maintains stateful information about a particular client connection on a server. Provides the communication proxy mechanism for the server to the client connection. CurrencyManager Connection Class Name: MoveDeviceCommand SuperClasses: CommandGrammar SubClasses: None Responsibilities: Collaborators: Encapsulates a bit of command logic that moves a device from one place to another. (Same as CommandGrammar ) Class Name: UpdateUniverseCommand SuperClasses: CommandGrammar SubClasses: None Responsibilities: Collaborators: Encapsulates a bit of command logic that wraps a Universe to deliver across the network (Same as CommandGrammar ) Class Name: TransferUserProfileCommand SuperClasses: CommandGrammar SubClasses: None Responsibilities: Collaborators: Encapsulates command logic that updates a user’s profile on the server. (Same as CommandGrammar ) Class Name: TransferImageCommand SuperClasses: CommandGrammar SubClasses: None Responsibilities: Collaborators: Encapsulates a bit of command logic that delivers an image across the wire. (Same as CommandGrammar )

Test Plan Context Test Expected Result Actual Result 1 A map exists with all the places shown on it, and the John logged into server. Event of the mouse click by John upon clicking a on the Library in the map. Should give a menu bar letting user choose location within place. 2 John has completed the process of selecting a place. John’s selecting a location within the currently chosen place, like Multimedia Center. Should display the map of the location chosen with icons displaying people. 3 John has correctly logged into the server and the server is running without faults. Event of the mouse click by John on the button displaying “Edit Info” on the GUI. Should let John be able to edit his name and his description within a text field. 4 View of the Multimedia Center exists with the icons representing people around the location. Event of the mouse click by John on the icon representing another person, Joe on the map. Should show John the details about Joe like his name and description on the screen. 5 Main GUI is loaded with John to specify server IP and name. John being able to log in to the server with the given server IP. Should display the main map containing all the places on it respectively. 6 John is already inside Multimedia center within Library, and can see other people’s position and also the notes. Event of John clicking on the red square, essentially the notes that are existent for the Multimedia center. Should display a menu where John can view notes, or move to different location like the Periodicals etc. 7 John is inside Multimedia cluster and wants to add notes. Event of John pressing the “Add Note” button on the GUI. Should bring up a text field for John to type up something for the note.

Context Test Expected Result Actual Result 8 Server is running and John is logged into the system with one of his devices. Event of John logging into the system with a different device than the first one. System should check for multiple devices and disconnect one from server. 9 Server is running and John is logged in with one of his devices. Event of John turning on another device and turning off the old one. System should be able to associate the new device turned on automatically to the settings of John’s attributes.

Timeline

Responsibilities Nebo Abraham  Data model o Updates for M3-M o UML Diagrams o Design and Implementation  User Interface o M2 UI Design and Implementation Justin Kuo  User Interface o M4: View Port to PDA o Model/View Integration o Data Model Initial Design and Implementation o Unit Testing  Logistics o Documentation o Project Scheduling Gary Mann  Networking o Client/Server Architecture o Networking protocol o UML Design o Implementation Shreyas Srinivas  M2 UI Design and Implementation  Scenarios  Test Plan  CRC Cards Milestones 5 & 6 For Milestone 5 , we add the functionality that will make it possible for users to store annotations to places. This functionality includes detecting these notes and reporting them to the user when he enters an area. For Milestone 6 , we add several bits of functionality. Firstly, the system will be extended to allow users to be registered and authenticated on a server. So, now instead of the server maintaining information about a user during the session, it also persists this information about users across session boundaries. Users will also have the option of making notes public or private. Finally in M6, we give the user the ability to draw “rubber band lines” that may be saved in a location. This is authentic graffiti, allowing the user to create simple sketches he may store for others to view.