Index: trunk/src/atmsdriver/ConsoleDriver.java
===================================================================
--- trunk/src/atmsdriver/ConsoleDriver.java	(revision 114)
+++ trunk/src/atmsdriver/ConsoleDriver.java	(revision 119)
@@ -5,8 +5,12 @@
 import atmsdriver.model.Highway;
 import atmsdriver.model.Station;
+import java.io.FileInputStream;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
+import java.util.Properties;
 import java.util.Scanner;
+import java.util.logging.Level;
+import java.util.logging.Logger;
 
 /**
@@ -23,4 +27,8 @@
     private final List<Integer> routeNumInputList;
     private final List<String> dotColorInputList;
+    /**
+     * Properties for the ConsoleDriver
+     */
+    private static Properties ConsoleDriverProperties;
 
     /** Entry point for the application.
@@ -28,13 +36,53 @@
      * @param args unused
      */
-    public static void main(String[] args)
+    public static void main(String[] args) {
+        try {
+            if (System.getProperty("ATMSDRIVER_PROPERTIES") != null) 
+            {
+                // Load properties of runtime parameters
+                if (!loadProperties()) 
+                {
+                    System.exit(0);
+                }        
+                // Create the Highway Model
+                Highways highways = new Highways(
+                    "config/vds_data/lds.txt",
+                    "config/vds_data/loop.txt",
+                    "config/vds_data/highwaysMeta.txt",
+                    ConsoleDriverProperties.getProperty(
+                        "FEPWriterHost"),
+                    Integer.parseInt(ConsoleDriverProperties.getProperty(
+                        "FEPWriterPort")));
+
+                // Construct the console driver using the highways model
+                ConsoleDriver driver = new ConsoleDriver(highways);
+                driver.runConsole();    
+            } else {
+                throw new Exception("ATMSDRIVER_PROPERTIES system property not defined.");
+            }
+        } catch (Exception e) {
+            Logger.getLogger("ConsoleDriver").logp(Level.SEVERE, "ConsoleDriver", "Main",
+                    "Error occured initializing application", e);
+            System.exit(-1);
+        }
+    }    
+    /**
+     * Load the properties file containing values for runtime parameters.
+     * 
+     * @param propertiesFile
+     * @return 
+     */
+    private static boolean loadProperties() 
     {
-        Highways highways = new Highways(
-        "config/vds_data/lds.txt",
-        "config/vds_data/loop.txt",
-        "config/vds_data/highwaysMeta.txt",
-        "localhost", 8080);
-        ConsoleDriver app = new ConsoleDriver(highways);
-        app.runConsole();
+        // Load the properties file.
+        try {
+            ConsoleDriverProperties = new Properties();
+            ConsoleDriverProperties.load(new FileInputStream(System.getProperty("ATMSDRIVER_PROPERTIES")));
+        } catch (Exception e) {
+            Logger.getLogger("CosoleDriver").logp(Level.SEVERE, "ConsoleDriver",
+                    "Constructor", "Exception in reading properties file.", e);
+        }
+
+        return true;
     }
     /**
