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.

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.

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.

Sunday, 20 April 2008

Exporting the Schema Library

The last planned feature is almost fully implemented. The library is successfully written to an XML Schema validated file. I'm still reading up on SAX and DOM parsers so Importing hasn't been implemented yet, but I don't foresee any problems with the parsing.

While writing the output methods, I removed a few unnecessary methods from the Schema class and discovered that the schemasValue, and activeSchemas hashtables haven't been included in the output. These have never shown up in exception stack-traces before, but they could be related to the Schema execution problem somehow. Either way, I need to edit the code to account for them.