Friday, May 23, 2008

Got the Calculate Runtime window to display


I got the Calculate Runtime window displayed!! It took less than half the time the Calculate Pace window took! It looks extremely similar to the Calculate Pace window and that is by design. They essentially do the same thing. Keep in mind, I need to add the functionality to make it work, but at least I got it displayed.

Sunday, May 18, 2008

Use Case2 is complete! Now need to focus on Use Case 3. As usual (and sometimes unfortunate) there were changes that were performed that deviated from the design. Those changes need incorporation into the design as part of the design update process. I created a Calculate Pace Window. Every button and Menu Item and Radio button works on it EXCEPT the save button. That is part of Use Case 5. That is the last thing that will need accomplishment and testing: since I honestly believe it will be the hardest thing to accomplish. As part of the Use Case realization, I got rid of the String formatting that is part of Java 6. I put in a "self invented rounding" process that is pretty obvious to anyone that has ever used Java. This was done to make as backwards compatible as possible with Java 1.4.

Now, it is onto Use Case 3. I will start with the GUI and publish online in the current blog.

Sunday, May 11, 2008

Pace Calculation Almost Complete

Got the RunData object set up. It even prints out the data (albeit not completely formated). That is the next step. Need to figure out how to format strings in Java.

  • Got the PaceCalculator RunData infused into the CalculatePaceWindow: I created the method: displayRunData()
  • Now need to test
    • This is what I will do next time!!!

Saturday, May 10, 2008

Run Distance and Exceptions created and working

I got the RunDistance object and the RunDistanceException object completed. The calculatePace(...) method in the PaceCalculator object is calculating the pace and storing the answer off in a RunTime object. Using a simple calculation, it appears the Pace Calculation is correct. Now it's time to set up the RunData object. This is going to be a little more complex. This is what the View Package is to interact. I need to determine how to interact with the Date. I am sure there is something online that will set me in the right direction in relation to this subject.

Friday, May 9, 2008

Major part of the Use Case 1 realized

In the first part of getting the Calculate Pace Use Case completed. The RunTime class is complete. This was the first part of the Use Case, and is needed for realization of this Use Case. There are many design issues that changed as a result of completing this class. From the original design, a some of the methodology has changed. This is indicative of starting any implementation on any project. It is best to anticipate any and all problems through adequate and thought out design-following a specific methodology. I have documented my methodology here for the purpose of example and critique: to see where improvements are needed in the development methodology and implementing that methodology. As part of the design, I will need to go back and submit the changes to the Static Class Diagram, as well as the Sequence Diagram. It would be a good idea to post the code, as well: as a contrast between the design and the implementation.

Saturday, April 26, 2008

The first image of the Calculate Pace Window


This GUI was a long time in coming and it was very painful. I had to reteach myself about different GUI outlays in Java other than the traditional ones that I am most familiar: like the Grid Layout, the Border Layout, etc. I used the GridBag Layout for this, and it was long and tedious re-familiarizing myself with it. I almost just switched to using eclipse. I even downloaded the application, but decided the amount of time learning the IDE would not be worth it at this moment. So, on my spare time (what ever that is). I intend on learning the "new fangled and free IDE"!! (ha-ha).

Well anyway, here is the latest image of the Calculate Pace GUI. Now it's time to get it working--implementing the Use Cases from the design.

Friday, April 18, 2008

The buttons and menu items are set up

I have the initial functionality of the first GUI working. All the buttons and Menu Items are registered. The only item that that is actually working is the Quit button and the Quit menu item. Nothing else is currently working. That is the next step in the development process. Once that is all done, I can then start implementing the Use Cases.