Solved

About setting up some code.

Posted on 2004-04-29
7
135 Views
Last Modified: 2010-03-31
objects, I am now wondering if only the workout audio files should go into the list and after the list is complete and the user submits it, then ahe list is gone through and all timing files are added at that time.  That way it won't matter when the user presses the timing cycle button. At the time the user submits it, code can check to make sure a timing cycle button was pressed and if not get on pressed before going on.

Let me know if you think this is a better way of doing it?  I think it is now after all the stuff I have put you guys through.
0
Comment
Question by:Drop_of_Rain
  • 4
  • 3
7 Comments
 
LVL 92

Expert Comment

by:objects
ID: 10956094
> I am now wondering if only the workout audio files should go into the list

I suggested that possibility in your previous q :)

0
 

Author Comment

by:Drop_of_Rain
ID: 10956126
You have said that long ago, but I had to understand why it didn't have to happen the way I thought it had to. I had seen it being used in one way, and got stuck seeing it that way. I'm sorry for not following your wisdom, but needed to go through this.

Do you have any suggestions?

0
 
LVL 92

Expert Comment

by:objects
ID: 10956157
i mentioned a couple of q's ago that it sounded like you could get rid of the AudioDetails class altogether, and just store the audio name string in the list. But I'm still not 100% clear on your requirements cannot be totally sure this approach would achieve your goals.

It would be so much easier to help u implement this if you wrote a functional spec *before* trying to implement it :)
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:Drop_of_Rain
ID: 10956249
<<<It would be so much easier to help u implement this if you wrote a functional spec *before* trying to implement it :)>>>

I have never written one of these before I hope this is what you are asking for

User opens make a custom workout section.

1. All sections of workout buttons are in the frame.
2.The user can choose any order they want to. (Press any button order)
3. Every button pressed needs to be recorded.
3.A list needs as the buttons are pressed.
4,The user needs to be able to unchoose a selection and it is removed from the list
5.That unchoose  selection is removed from the list but not effecting anything else.
6.The user has to submit the workout for processing.
7.A timing cycle must have to been pressed before the submitting can happen.
8.If not a dislog tells them they have to choose one.
9.After one is choosen the list can be submitted.
9a. The user names the workout.
10.All componants are set to clear or back to default.
11.The list is gone through one item at a time and checked againist some conditionals.
12.The choosen timing cycle audiofiles is placed in the list after each item.
13.If the item fits a conditional the timing audiofile is replaced with the proper one.
14.After all timing files are entered into the list the list will be passed to another class.
15.The new class will turn all the audiofiles into streams into a new list.
16.Those streams will be passed to another class.
17.That class will make a single audiofile from the streams.
17.A temp file will be made for backup.
0
 

Author Comment

by:Drop_of_Rain
ID: 10956282
Correction

3a.A list needs to be made as the buttons are pressed.
0
 
LVL 92

Accepted Solution

by:
objects earned 250 total points
ID: 10956294
sounds like AudioDetails is not needed, and you just need a list of strings.
0
 

Author Comment

by:Drop_of_Rain
ID: 10956325
The strings will be the file names? All the audiofiles will all be stored in a directory name Audio in the root directory. You said to put all the audiofiles in the same directory then a directory would not have to be in the ActionCommand.

 Is that correct?

How does it know where the audiofiles are?

Is a directory setup somehow?

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now