Index: trunk/src/atmsdriver/model/Highways.java
===================================================================
--- trunk/src/atmsdriver/model/Highways.java	(revision 306)
+++ trunk/src/atmsdriver/model/Highways.java	(revision 343)
@@ -43,8 +43,4 @@
  * FEP Simulator.
  *
- * Currently, there is no driving logic within the highways class. It is only
- * done through an instance of the ConsoleDriver.java class. Eventually, it will
- * receive incident data (from exchange.xml or better yet, directly from the
- * TMCSimulator itself) and drive the highways using resident logic.
  *
  * @author John A. Torres
@@ -124,4 +120,32 @@
     }
 
+    /** Search for a station with the given attributes 
+     * 
+     * @param routeNumber
+     * @param direction
+     * @param postmile
+     * @return the desired station, or null if not found.
+     */
+    public Station findStation(Integer routeNumber, Station.DIRECTION direction,
+            Double postmile)
+    {
+        // Get the highway by route number
+        Highway highway = getHighwayByRouteNumber(routeNumber);
+        if (highway == null)
+        {
+            Logger.getLogger(Highways.class.getName()).log(Level.SEVERE,  
+                    "Highway "+routeNumber+" not found in findStation()", "");
+            return null;
+        }
+        //Search the stations on this highway for a match
+        for (Station station : highway.stations)
+        {
+            if (station.matches(direction, postmile))
+            {
+                return station;
+            }
+        }
+        return null;
+    }
     /**
      * Applies specified color to the specified highway stretch. Route number
@@ -158,5 +182,5 @@
         // postmiles increase from s to n and w to e
         // if the direction is south or west
-        if (direction.equals(Station.DIRECTION.SOUTH) || direction.equals(Station.DIRECTION.WEST))
+        if (direction.equals(Station.DIRECTION.NORTH) || direction.equals(Station.DIRECTION.EAST))
         {
             // add range value to startPost to get
@@ -440,5 +464,5 @@
     /**
      * Returns the Highways model data in XML format.
-     * 
+     * Probably obsolete, since we aren't using exchange.xml any longer.
      * @return highways data in XML format
      */
@@ -507,5 +531,5 @@
         {
             // Consider each route direction
-            for (DIRECTION dir: DIRECTION.values())
+            for (DIRECTION dir: hwy.availDirs)
             {
                 String rowLabel = ""+String.format("%3s ",hwy.routeNumber)+dir.getLetter()+' ';
@@ -514,7 +538,14 @@
                 for (Station stat: hwy.stations)
                 {
+                    if (stat.direction.equals(dir))
+                    {
                     //lineout.append("" + dir.getLetter() + stat.postmile);
                     lineout.append(stat.getColor());
                     //lineout.append("  ");
+                    }
+                    else 
+                    {
+                        lineout.append(".");
+                    }
                 }
                 // See if there were stations for this direction
