To Properly Submit Your Project for Demonstration You Must Do All of the Following
Total Page:16
File Type:pdf, Size:1020Kb
CS 602 Project Requirements Spring 2016
Due: at the start of the final exam period (Your final exam will be held on the last day of class.)
To properly submit your project for demonstration you must do all of the following:
1) Turn in a hard copy of your source code, including a cover sheet and screenshots. 2) Start (and test) your server and two clients. 3) Demonstrate your application to me.
You are to implement an online Chat/Shared Whiteboard System which will allow users to chat with each other and draw so others can see in real time. Minimally, your system should be implemented to comply with the two following rules:
1) You MUST use the provided ChatMessage class for all communication between your client and your server. You are NOT ALLOWED to change the ChatMessage class in any way. If you change ChatMessage in any way you will earn a zero for your project score and a grade of “F” for the course. If ChatMessage is insufficient for your needs, extend the class by creating a child class that adds functionality.
2) I gave you the skeleton for a basic client-server chat system. You must convert it and add whatever is necessary to allow your online system to work with your server running in your AFS account. The client will run on a local machine.
You will earn points based on the functionality you add, as follows:
Basic Chat (at least two clients can send messages to each other): 40 points Connect/Disconnect Button: 10 points Prepend user names to messages (e.g., John: hello): 5 points Announce Entrances and Exits: 5 points User List (who is currently in the chat room): 10 points Private Messages: 10 points Message History (Stored on server. Loaded by button into GUI): 10 points Shared Whiteboard with 5 Drawing Colors: 10 points
I will look through your source code and ask questions while you perform your demonstration. If you can’t answer simple questions such as “what does that line do?” I will assume you did not write it and you will receive no credit for that feature. If I believe you are attempting to turn in work that you did not write I will turn it over to the Dean of Graduate Studies. import java.io.*; public class ChatMessage implements Serializable{ public String name; public String message;
public ChatMessage(){} public ChatMessage(String name, String message){ setName(name); setMessage(message); } public void setName(String name){ this.name = name; } public String getName(){ return name; } public void setMessage(String message){ this.message = message; } public String getMessage(){ return message; } }