Index: trunk/src/tmcsim/client/ATMSDriverClient.java
===================================================================
--- trunk/src/tmcsim/client/ClockClient.java	(revision 64)
+++ trunk/src/tmcsim/client/ATMSDriverClient.java	(revision 102)
@@ -20,11 +20,15 @@
 
 /**
- * ClockClient shows the simulation clock time. It operates as a client of the
+ * Skeleton for ATMS Driver that reads a "batch" file of highway
+ * status update commands. 
+ * It operates as a client of the
  * CAD server, using RMI to poll the server every second for the current
- * simulation clock time.
+ * simulation clock time.  It uses the simulation clock time
+ * to fire update commands at the desired time.
+ * Note: Sim Mgr must be running before starting this application.
  *
  * @author jdalbey
  */
-public class ClockClient extends UnicastRemoteObject implements
+public class ATMSDriverClient extends UnicastRemoteObject implements
         CADClientInterface
 {
@@ -65,8 +69,5 @@
      */
     private CADClientSocket theClientSocket;
-    /**
-     * Instance of the ClockView.
-     */
-    private ClockView theView;
+
     /**
      * Properties object for the CADClient class.
@@ -91,5 +92,5 @@
      * file containing configuration data.
      */
-    public ClockClient(String propertiesFile) throws SimulationException,
+    public ATMSDriverClient(String propertiesFile) throws SimulationException,
             RemoteException
     {
@@ -102,7 +103,10 @@
                 cadClientProp.getProperty(PROPERTIES.CAD_RMI_PORT.name).trim());
 
-        theView = new ClockView();
-        theView.setVisible(true);
-
+        // READ THE BATCH FILE OF COMMANDS and put in a queue
+        // Consider special cases:  1) time to fire first command
+        // has already past when application starts.
+        // 2.  Two commands have same fire time specified.
+        // 3.  How to "override" a command, to clear an incident.
+        
         // Create a timer that fetches the simulation time every second.
         Timer timer = new Timer(ONE_SECOND, new ActionListener()
@@ -113,8 +117,12 @@
                 {
                     long simtime = theCoorInt.getCurrentSimulationTime();
-                    theView.updateTime("" + formatInterval(simtime));
+                    // Check the queue of commands to see if the first
+                    // item matches the current time.  IF so, 
+                    // issue that command and remove it from queue.
+                    
+                    //theView.updateTime("" + formatInterval(simtime));
                 } catch (RemoteException ex)
                 {
-                    Logger.getLogger(ClockClient.class.getName()).log(Level.SEVERE, null, ex);
+                    Logger.getLogger(ATMSDriverClient.class.getName()).log(Level.SEVERE, null, ex);
                 }
             }
@@ -245,5 +253,5 @@
         {
             UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
-            new ClockClient(System.getProperty("CONFIG_DIR") + System.getProperty("file.separator") + CONFIG_FILE_NAME);
+            new ATMSDriverClient(System.getProperty("CONFIG_DIR") + System.getProperty("file.separator") + CONFIG_FILE_NAME);
 
         } catch (Exception e)
