Homework: WaitingLine Family Class Implementation
This homework is necessary preparation for the lab. Make sure you type your answers and you bring the files to the lab so that you will not have to waste time entering them during the lab. You should also bring to the lab the interface files you developed in the previous homework/lab: you will need them!
- For this homework, you will implement the
WaitingLineSecondaryclass for theWaitingLinecomponent family you worked on in the previous homework and lab. Starting from the classQueueSecondary, implementWaitingLineSecondary.WaitingLineSecondaryshould include implementation of the common methods:equals,hashCode, andtoString, plus any enhanced methods you chose to include in yourWaitingLineinterface design. Note that there is no need to provide any methods beyond those needed to satisfy the requirements of the previous homework. In particular, you do not need to implement theQueuemethods, unless you want to include any of them as part ofWaitingLine. For this homework, turn in PDF print-outs of theWaitingLineSecondary.javafile.
Additional Questions
- Design a JUnit test fixture for the methods defined in your
WaitingLineKernelandWaitingLineinterfaces. As the starting point, you should use the JUnit test fixture you were given forQueueimplemented onSequencein the Queue Implementation on Sequence lab.