| Home Page |
| Course Page |
4003-541-70/4005-741-70
Prof. Alan Kaminsky -- Spring Quarter 2006
|
Src Dst Path Rate Src Dst Path Rate Src Dst Path Rate --- --- ---- ---- --- --- ---- ---- --- --- ---- ---- A B AB 10 B I BFHI 6 H D HFGD 14 A C ABC 14 C E CDE 10 H E HIE 3 A D ABCD 20 D H DGFH 6 I A IHA 10 B G BFG 6 C I CDEI 10 I C IEDC 15 B E BCDE 8 G B GFB 8 |
Write a discrete event simulation program like the Tanenbaum program studied in class, except:
Requirement 1.
The program is called Tanenbaum2.
The program is run by typing this command:
java Tanenbaum2 <generator> <packetsize> <queuefactory> <queuesize> <n> <t> <seed> <path> <rate> ...
Requirement 2. For each simulation run, the program must print the following line on the standard output: the simulation run number (1 through <n>), a tab character, the mean of the end-to-end packet delay times, a tab character, the standard error of the end-to-end packet delay times, a tab character, and the fraction of the packets that were dropped. There is no additional white space before, after, or within the line.
Requirement 3. If the program encounters any error condition, the program must print a meaningful error message and must terminate. The wording of the error message is up to you. The error message may include an exception stack trace.
Requirement 4. The program must have a separate class named MMGenerator, and this class must not be in a package. This class must generate packets from a given source to a given destination, with exponentially distributed interarrival times at a given mean arrival rate, and with exponentially distributed packet sizes at a given mean packet size.
Requirement 5. The program must have a separate class named MCGenerator, and this class must not be in a package. This class must generate packets from a given source to a given destination, with exponentially distributed interarrival times at a given mean arrival rate, and with a given constant packet size.
Answer the following questions. Record your answers in a plain text file named "questions.txt" and include this file in your project submission.
Your project submission will consist of a Java archive (JAR) file containing all the Java source files for your project as well as the file "questions.txt".
See my Java source files which we studied in class for the style of Javadoc comments I'm looking for.
Put all the source files and the questions file into a JAR file named "<username>.jar", replacing <username> with the user name from your Computer Science Department account. The command is:
jar cvf <username>.jar *.java questions.txt
If your project used classes from the Computer Science Course Library without modifications, you do not need to include the source files for these classes in your submission. If your project used classes from the Computer Science Course Library with modifications, you do need to include the source files for these classes in your submission.
Send your JAR file to me by email at ark@cs.rit.edu. Include your full name and your computer account name in the email message, and include the JAR file as an attachment.
When I get your email message, I will extract the contents of your JAR file into a directory. I will set my Java class path to include the following directories: the directory where I extracted your files, and the Computer Science Course Library directory. I will compile all the Java source files in your submission using the JDK 1.5.0 compiler. I will then send you a reply message acknowledging I received your project and stating whether I was able to compile all the source files. If you have not received a reply within one business day (i.e., not counting weekends), please contact me. Your project is not successfully submitted until I have sent you an acknowledgment stating I was able to compile all the source files.
The submission deadline is Tuesday, May 16, 2006 at 11:59pm. The date/time at which your email message arrives in my inbox (not the time when I actually read the message, which will be some time later than when it arrives in my inbox) will determine whether your project meets the deadline.
If you submit your project before the deadline, but I do not accept it (e.g. I can't compile all the source files), and you cannot or do not submit your project again before the deadline, the project will be late (see below). I strongly advise you to submit the project several days before the deadline, so there will be time to deal with any problems that may arise in the submission process.
30% of your project grade will be based on the design of your project as documented in the Javadoc and as implemented in the source code. Your project should:
35% of your project grade will be based on test runs of your project. The grade for this portion will be based on whether your project produces the correct data on the standard output as specified in the Software Requirements. Every incorrect output will result in a loss of points. There is one exception: If your application does not run using the command line stated in Requirement 1 or the class names stated in Requirements 4 and 5, you will receive 0 points for this portion of your grade.
Any deviation from the requirements will result in loss of points. This includes errors in the output formatting (such as incorrect number of spaces, incorrect capitalization, or incorrect punctuation), misspelled output, and extraneous output not called for in the requirements. The requirements state exactly what the output is supposed to be, and there is no excuse for outputting anything different. If any requirement is unclear, please ask for clarification.
35% of your project grade will be based on your answers to the Questions.
See the Course Policies for my policy on extensions.
I will not accept a late programming project unless you arrange with me for an extension. A late programming project will receive a grade of 0.
See the Course Policies for my policy on plagiarism.
You may use any resources you wish to do the programming project, including resources discussed in class and resources you find on your own. You may discuss the programming project at a general level with others in the class. However, the programming project you turn in must be entirely your own work. You are not allowed to collaborate with anyone else on the programming project. You are not allowed to use any current or past student's work in any way when working on your programming project.
I will not tolerate plagiarism. If in my judgment the programming project is not entirely your own work, you will get a grade of 0 for the programming project. I will also place a report of the plagiarism incident in your permanent file in the Computer Science Department office. Repeated plagiarism incidents will result in disciplinary action in accordance with Computer Science Department policy and RIT policy.
There are only two exceptions to the prohibition on plagiarism:
| Course Page |
| Home Page |