Your simulator should have the interface described in Phase #1.
To make it easier to mark, your default implementation should use the Java random number generator, with seed 12345. If you have already implemeted the specified random number generator, keep it in your code base and implement a switch -origrandom which will use that one instead. That way you can compare outputs from both the contest web site and our special purpose files.
When you run your simulator in -debug mode, it should produce a trace on stderr for the first 1000 iterations.
You can redirect stderr to a file using the appropriate shell command. In csh you can use >& to redirect both stdout and stderr to a file. In bash you can use 2> to redirect only stderr to a file.
For example, to capture your own copy of the dumpfile you could do:
java ant.Main -debug sample.ant sample.ant tiny.world myoutput.txt >& mydumpfile
Then you can compare against the expected output on the lab machines using:
diff mydumpfile ~hendren/public_html/303/AntTraceFiles/dumpfileProfessor de Moor developed another style of trace file that traces each ant's actions. You might find it useful to make an option on your simulator to produce an equivalent output in order to more easily debug your simulator. If you implement this, it should be enabled by a -trace flag and should sent its output to stderr. You should not allow both -debug and -trace to be enabled at the same time.
You can find a copy of this trace file at:
~hendren/public_html/303/AntTraceFiles/tracefilePlease note that this tracefile is very large, so don't make other copies on the lab machines, just diff directly against this copy.
You may find links to these files at: http://www.cs.mcgill.ca/~hendren/303/AntTraceFiles/
YourLastName/ README build.xml build file for ant bin/ any scripts you have developed classes/ where your generated classes go design/ any online design documentation doc/ where your generated javadoc html goes lib/ where generated .jar files go src/ java/aspectj/junit source files for your project (organized into a good package structure)You can create a clean directory (that does not have the hidden svn files) using:
svn export YourSVNWorkingDirectory YourLastNameto export a clean copy of your project to a directory called YourLastName.
You can create the jar file by using:
jar -cvf YourLastName.jar YourLastNameto create the jar file to send to the TA.