Index: trunk/src/atmsdriver/model/Station.java
===================================================================
--- trunk/src/atmsdriver/model/Station.java	(revision 190)
+++ trunk/src/atmsdriver/model/Station.java	(revision 191)
@@ -195,4 +195,35 @@
     
     /**
+     * Return the color for the lanes in a given direction.
+     * @param direction
+     * @return character representing color of lanes in given direction
+     * '@' = red,  '+' = yellow, '-' = green
+     */
+    public char getColorByDirection(DIRECTION direction)
+    {
+        /* For now just use the color of the first lane. 
+         * TODO: Average the color in all the lanes for the given direction */
+
+        String laneDir = "OS";
+        if(direction.equals(this.direction))
+        {
+            laneDir = "ML";
+        }
+        // Examine all the lanes in a given direction
+        for(LoopDetector loop : loops)
+        {
+            if(loop.loopLocation.startsWith(laneDir))
+            {
+                // Return color according to loop volume
+                if (loop.vol == 1) return '@';
+                if (loop.vol == 3) return '+';
+            }
+        }
+        // Default case
+        return '-';
+                
+    }
+    
+    /**
      * Output for updateByDirection. Logs the update to the console.
      * 
