I finally solved the user-created Schema problem last night. The issue was that the MainBody field in LearnerUI was created, but not initialised until the actual simulation was started (as opposed to the main GUI). This explains why Schemas with no States worked, and why it was possible to edit Schemas while the simulation was running.
I changed the LearnerUI class to initialise the MainBody immediately, and also changed MainBody so that the initial Schemas are not added until the start of the simulation.
It's a little annoying that the problem was so simple, but it's working now anyway.
The code is (mostly) commented and a few tweaks to the "One Step" feature should be all that needs to be done.
Tuesday, 29 April 2008
Monday, 28 April 2008
Meeting 14
Had a meeting this morning to discuss the final report. I'm aiming to have it completed by this time next week so that it could be handed in as is, or tweaked based on Frank's advice.
This is the last meeting before the software submission deadline on Friday. It's a soft deadline, so I don't have to hand anything in, but I want to get the code finished and concentrate on the report.
Also, I've tracked the user-created Schema problem back to a null-pointer exception, most likely involving the MainBody. My early testing looks promising. There's a chance I'll get this issue fixed after all!
This is the last meeting before the software submission deadline on Friday. It's a soft deadline, so I don't have to hand anything in, but I want to get the code finished and concentrate on the report.
Also, I've tracked the user-created Schema problem back to a null-pointer exception, most likely involving the MainBody. My early testing looks promising. There's a chance I'll get this issue fixed after all!
Tuesday, 22 April 2008
Meeting 13
Daniel is giving his presentation in the same session as mine on Thursday. We felt it best to collude slightly so that we weren't giving presentations so similar that we were repeating each other, but also so we weren't contradicting each other and confusing the audience.
Myself and Frank solved the "stepping" issue by placing the switch in the MainBody class, rather than Processor. The code needs cleaning-up, but the feature is working now.
Myself and Frank solved the "stepping" issue by placing the switch in the MainBody class, rather than Processor. The code needs cleaning-up, but the feature is working now.
Parsing the Exported Schema Library
I've just implemented the XML schema importing. I used the in-built java SAX parser and wrote an XML event handler myself to pull the appropriate variable data and create the Schema objects.
The problem executing the imported Schemas is still there though.
The problem executing the imported Schemas is still there though.
Monday, 21 April 2008
Meeting 12
Had a meeting this afternoon to catch up on progress made over the holidays and to discuss what more can be done before the deadline.
Other than the importing of Schemas, which should be implemented by tomorrow, there isn't much. Frank would like me to add a feature to allow "stepping through" the simulation one movement at a time like a debugger. I can see how to implement this using a simple boolean switch, but I'm not sure where it needs to go. At the moment, the simulation continues a step at a time, but the graphics aren't updated to match.
I have another meeting scheduled tomorrow with Daniel to discuss our presentations later this week. He might have a better understanding of the graphics code.
Other than the importing of Schemas, which should be implemented by tomorrow, there isn't much. Frank would like me to add a feature to allow "stepping through" the simulation one movement at a time like a debugger. I can see how to implement this using a simple boolean switch, but I'm not sure where it needs to go. At the moment, the simulation continues a step at a time, but the graphics aren't updated to match.
I have another meeting scheduled tomorrow with Daniel to discuss our presentations later this week. He might have a better understanding of the graphics code.
Subscribe to:
Posts (Atom)