Right most of the code for the File Parser is finished now, if it isn't, just polish it off this weekend(And add the code into the FileProcessor class that will return the correct Vector) As you implement these pieces of code un-comment them in the MapModule file (They will just throw null pointer exceptions at the minute). We need to turn our attention to getting the MapModule class finished for Monday morning now if at all possible so we've got something to show Jon in the meeting.
The Work
If you look in the MapModule class and in the Map.* package you'll find that all objects that need to be drawn on the MapModule implements an interface called draw(Graphics2D g2). Now what the MapModule class does is each time we call for a repaint of the Map it cycles through everything that is draw-able (Roads, Traffic Signs (There all grouped under one Vector but the polymorphic element allows each one to be drawn differently), Buildings and calls the draw() method on them passing them the correct context making everything very easy for us =)
What I propose is that each person takes the objects they parsed and write the drawing code for it. It's dead easy to test it to because you can just add the code to the relevant draw() method in each Map object that you implemented and then hit run on the Test.java class which will show you the results of the effort. I'll work on getting the zoom/pan/alignment sorted then we should have a nice snazzy MapModule we can stick into the MonitoringCentre & ICS Modules.
I've been toying with the Roads this last week so there's already some code in the draw() method for that object it needs to be switched to support closed roads also.
To recap the work will be...
Will: (Drawing the buildings) - I was looking at how to do the cut outs, http://java.sun.com/docs/books/tutorial/2d/advanced/complexshapes.html << I think has everything you need
Si: Code for the CarParks (Perhaps and a colour scheme based on the current level in the Car Park?)
Jim: Entrance & Finish off remainder of the road code =)
Stu: The Traffic Signs object.
Si: Code for the CarParks (Perhaps and a colour scheme based on the current level in the Car Park?)
Jim: Entrance & Finish off remainder of the road code =)
Stu: The Traffic Signs object.
Dan: The zoom/pan/shit
The Future
After this week is over and we've got these common elements sorted we'll break down into smaller Dev teams to work on the individual modules so we can get a bit of head way!
Any Questions wazz me an e-mail
Dan
No comments:
Post a Comment