Monday, December 3, 2012

Final Stretch

With a little over a day left to work on the Trip Planner I've kicked things into high gear.

Yesterday and this morning I worked with Nikita to rearrange the layout. Nikita made a new, improved map and we both got linear interpolation working to show trains interpolating between stops.

I fixed up the main table to show the color of the train/stop's line as the background color of the table row. I also hooked up the DFS to the stops table, which is now positioned underneath the main table. You can add stops to the table by selecting a stop in the drop down list and clicking Add. You can also select any number of stops that are already in the table and remove them with the Remove button. When you press Calculate Route the route is drawn on the map.

It is not currently reasoning about the live train data at all, but that should be easy to implement (fingers crossed).

Another big thing that I was able to figure out was creating tool tips on mouse move. Our graphics based implementation wasn't working to our satisfaction. So I set a tool tip to display information about the trains and stops as you hover over them.

Sunday, December 2, 2012

How You GUIing

We continue to make steady progress on the Trip Planner.

Yesterday we cleaned up a lot of the GUI and fixed some redrawing issues we had with the map not clearing old train locations.

Chris is working on expanding my DFS methods to work with unordered lists of stops.

Nikita and I are working on cleaning up the GUI and hooking all of the tables and buttons up to our methods. As of yesterday we now can add stops to a table from a list. The table holds the stops a user wants to visit. Today we will be hooking that up to the DFS method to provide the Trip Planning functionality.

We also implemented linear interpolation to place the trains in between stops on the map. Instead of simply drawing the trains at the midpoint between two stops the position is now calculated based on the time until the train reaches the next stop.

Another important addition is that the trains now display in different colors based on their direction on each line. We will most likely draw them as arrows or somehow show this direction in a later update.

On top of all of that, Nikita has begun work on displaying train information when you mouse over them. We plan to use this implementation for stops, possibly to select stops for trip planning if we have time to get that working.

Ed has begun and will be writing test cases for all important methods that we've written to ensure that our code does what we claim it does.

Friday, November 30, 2012

Huge Update

After a long Thanksgiving break we jumped right into working on this.

All in the past two days Chris and I managed to get the Graph working with the list of stops in the right format to be used for DFS. Chris did a lot of work to get the list of connections for each stop in each stop object.

Today I implemented DFS and expanded my method to handle any number of goals. With some help from Nikita and his UI methods I was able to get the paths returned by the DFS drawn on the map.

Nikita also has the trains drawing on the map at the stops. He is working on expanding the functionality so we can draw trains in between stops and so far so good. Some of the trains are drawn in funky locations, but he's working on fixing that.

We're coming up on the final days of working on the project and we will definitely be able to meet our goals since there isn't too much left to do.

Sunday, November 18, 2012

More Progress

Yesterday I refined the Stop class to include the stopID I found in another resource on the MBTA site. With the stopID included as a field we can now determine what stop a train is at just by looking at the stopID of the train's predictions.

Hopefully Chris and Nikita can turn the list of stops into a tree or graph so we can implement the depth first search in a few days.

Thursday, November 15, 2012

Pulling Out All the Stops

Today I generated a list of Stop objects from the CSV file on the MBTA site.

First, I clipped unnecessary columns from the CSV file and then I converted it into JSON so I could run it through the Jackson JSON processor.

Right now we don't use the list of stops for anything, but we will soon begin implementing the path finding algorithm to generate routes.

Today I also added some much needed commenting and helped Chris with code to update the Line data every 10 seconds.

Finally, I helped Nikita set up TortoiseGit to merge his changes to the Views class with the changes Chris and I made.

Next I'll be working on getting the JTable in the Views class to update when new Line data is received.

Tuesday, November 13, 2012

Previous Contributions

Our group hasn't gotten a chance to work on the Trip Planner since our presentation.

Before that presentation I used the Jackson JSON Processor to hook up all the classes, that were all written by Chris, to the MBTA data. This consisted of retrieving the JSON data, running it through the parser, and then creating objects with the values in the proper fields.

I also worked with Nikita to put the MBTA data into the tables on the visual interface that he created with Ed. This was as simple as accessing getter methods that we wrote for the fields in all of our objects.

Software Development Blogging

This will be where I'll post updates about the MBTA Trip Planner we're developing for Software Development.