Java clock design

timer Asked: Sep 7th, 2013
account_balance_wallet $40

Question Description

(Additional file, clock design specification, is required to complete. Can send PDF file via email)

For this assignment you implement a system in Java that
faithfully realizes a set of UML class and sequence diagrams. You will be
provided a set of Java files that reflect the static structure contained in the
class diagrams. Some of the classes will be fully implemented and require only
commenting. Some classes will be partially implemented and will require you to
complete the implementation and provide comments. Others will require you
implement the entire class.

The system design is contained in the Clock Design Specification document. Each class is
described by a class diagram (using the methodology discussed in previous
lessons) and written descriptions of each attribute and operation. For many of
the operations there is an associated sequence diagram that illustrates the
interactions that result from an invocation. Some of the simple operations,
like gets and sets, do not have a corresponding sequence diagram as their
implementations should be obvious.

The Java source code is zip file with the necessary set
of .java files. The files will be one of the following types:

  • Fully

         These files require no editing and will indicate so at the top of the

  • Partially

         These classes will have defined methods for one or more of the operations.
         Each is labeled as implemented and require no comments. Operations which
         require implementation contain a comment with a "TODO". These
         you are required to implement and provide a description of the operation
         as well as comment the method code. You will also need to comment each of
         the attributes as well as complete the header for the file.

  • Not

         These classes will contain no implemented operations and you will need to
         supply all code. You need to provide a description of the operation as
         well as comment the method code. You will also need to comment each of the
         attributes as well as complete the header for the file.

For each class you may add attributes as this may well be
necessary. You are permitted to add operations but it shouldn't be necessary.
You may not create any other classes.

Submission Requirements

Important: Do not use packages. All Java files should be in the default package. Packages
lead to a complex nesting of folders and files that make managing the
submissions difficult. Each each class must
be contained in its own file and begin with a header of the form.

Typo in the Clock DocumentOn the sequence diagram for Clock.start() there are two start() calls on the SixtySecondTimer participant. There should only be one. If you implement it as is what happens is that two timers are created and both tell TimeManager to
advance the time. This results in time moving forward two minutes each timeout.

Tutor Answer

School: New York University

flag Report DMCA

awesome work thanks

Similar Questions
Hot Questions
Related Tags
Study Guides

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors