See the assignment turn-in page (last modified on 22 September 2009) for instructions on turning in your assignment.
The absolute deadline for turning-in Assignment 1 is Friday, 26 February at 11:30 p.m.. It is not possible to turn-in Assignment 1 after the absolute deadline.
/export/home/class/cs-305-503/pa1/LinkedSequence.javaThe linked-sequence class should include calls to the animation methods described in
/export/home/class/cs-305-503/pa1/LinkedSequenceAnimator.javaYour classes should not implement the
LinkedSequenceAnimator
interface;
they just have to maintain a private instance variable of type
LinkedSequenceAnimator
to store the instance passed in via the
setAnimator()
method, and use that variable to call the link()
and
unlink()
methods.
The class should dynamic, capable of storing arbitrarily many values. The class should also be implemented from scratch, without using classes from the Java Collection library.
/export/home/class/cs-305-503/pa1/pa1.jarby typing
$ java -classpath jar-path/pa1.jar:. main [options] class-name
where jar-path
is the path to pa1.jar
, [options]
are
optional command-line options, and class-name
is the name of the ADT
you've implemented. For example, if you implemented a queue and called the
class Queue
, and you're using pa1.jar
in the public class directory,
you would type
$ java -classpath /export/home/class/cs-305-503/pa1/pa1.jar:. main Queue
You can simplify your typing a bit by copying pa1.jar
to your working
directory ( .
):
$ cp /export/home/class/cs-305-503/pa1/pa1.jar . $ java -classpath ./pa1.jar:. main Queue
If you do copy pa1.jar
, make sure you keep it up to date with version in
the class directory.
The recognized optional command-line options are:
-na
: run without showing animations; the default is to show
animations.
-v
: print informative message to std-err while running tests.
main
and before the ADT
class; for example
$ java -classpath pa1.jar:. main -v LinkedList LinkedList.insertAfter(null, 1) failed. Can't determine the ADT implemented by LinkedList $
This page last modified on 17 February 2010. |