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 WaitingLineSecondary class for the WaitingLine component family you worked on in the previous homework and lab. Starting from the class QueueSecondary, implement WaitingLineSecondary. WaitingLineSecondary should include implementation of the common methods: equals, hashCode, and toString, plus any enhanced methods you chose to include in your WaitingLine interface 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 the Queue methods, unless you want to include any of them as part of WaitingLine. For this homework, turn in PDF print-outs of the WaitingLineSecondary.java file.
Additional Questions
- Design a JUnit test fixture for the methods defined in your WaitingLineKernel and WaitingLine interfaces. As the starting point, you should use the JUnit test fixture you were given for Queue implemented on Sequence in the Queue Implementation on Sequence lab.