fguihen Posted April 13, 2005 Posted April 13, 2005 i have a simulation running. each time the simulation cycles, data is collected. things like, startPosition, Duration, CollisionCount,EndPosition, CycleNumber.... i was going to store theese in an arrayList, but it seems inadiquate for the job. is there any other data storage type that might be better? ive been glancing at hash tables,but as of yet, im not fully sure if they suit. Quote
Diesel Posted April 13, 2005 Posted April 13, 2005 Are you using this data for calculations? How many simulations are going to be run per session? Why not just make your own class and store the data in there. Then if you need to, you can write calculation and output functions. Quote
IngisKahn Posted April 13, 2005 Posted April 13, 2005 It all depends on how you want to use the data. Quote "Who is John Galt?"
fguihen Posted April 13, 2005 Author Posted April 13, 2005 i will be throwing the data out to an excel spreadsheet , when i find out how to do that Quote
PWNettle Posted April 13, 2005 Posted April 13, 2005 A simple approach would be to use standard file I/O to create a text file and to save your values as comma delimitted text within that file. Give the file an extension of ".csv" and it'll open up directly into Excel as is. Quote
fguihen Posted April 13, 2005 Author Posted April 13, 2005 i could do that, but i want to make a graph of the data so it would be better if i could export it to an excel speadsheet. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.