Index: trunk/src/tmcsim/simulationmanager/SimulationManager.java
===================================================================
--- trunk/src/tmcsim/simulationmanager/SimulationManager.java	(revision 658)
+++ trunk/src/tmcsim/simulationmanager/SimulationManager.java	(revision 664)
@@ -22,21 +22,10 @@
  * communicator and applying diversions. A history of all events is shown as
  * well.<br>
- * The SimulationManager may be started at any point before, during, or after a
- * simulation has begun. The SimulationManager connects to the CADSimulator and
+ * The CADServer must be running before the SimulationManager is started. 
+ * SimulationManager connects to the CADServer and
  * communicates through Java RMI methods. If two SimulationManagers are started,
  * the second one started, chronologically, will receive communication from the
- * CADSimulator. <br><br>
- * The properties file for the SimulationManager class contains the following
- * data.<br>
- * <code>
- * -----------------------------------------------------------------------------<br>
- * Host Name The host name where the CADSimulator is located.<br>
- * Error File The target file to use for error logging.<br>
- * -----------------------------------------------------------------------------<br>
- * Example File: <br>
- * CADSimulatorHost = localhost <br>
- * ErrorFile = sim_mgr_error.xml <br>
- * -----------------------------------------------------------------------------<br>
- * </code>
+ * CADServer. (It's a bad idea to do this, there's no normal use case
+ * that requires it.)<br><br>
  *
  * @author Matthew Cechini (mcechini@calpoly.edu)
@@ -46,5 +35,5 @@
 {
 
-    private static final String CONFIG_FILE_NAME = "sim_manager_config.properties";
+    private static final String CONFIG_FILE_NAME = "sim_manager.properties";
     /*
      * Default name of folder that contains Scenario xml files.
@@ -65,6 +54,6 @@
     {
 
-        CAD_SIM_HOST("CADSimulatorHost"),
-        CAD_SIM_PORT("CADSimulatorRMIPort"),
+        CAD_SERVER_HOST("CADServerHost"),
+        CAD_SERVER_PORT("CADServerRMIPort"),
         SCENARIOS_DIR("ScenariosDir"),
         FAKE_PARAMICS("FakeParamicsConnection");
@@ -116,10 +105,10 @@
 
             //make sure properties aren't null
-            if (simManagerProperties.getProperty(PROPERTIES.CAD_SIM_HOST.name) == null)
+            if (simManagerProperties.getProperty(PROPERTIES.CAD_SERVER_HOST.name) == null)
             {
                 throw new Exception("CAD Simulator host property is null.");
             }
 
-            if (simManagerProperties.getProperty(PROPERTIES.CAD_SIM_PORT.name) == null)
+            if (simManagerProperties.getProperty(PROPERTIES.CAD_SERVER_PORT.name) == null)
             {
                 throw new Exception("CAD Simulator port property is null.");
@@ -138,6 +127,6 @@
         {
             theSimManagerModel = new SimulationManagerModel(
-                    simManagerProperties.getProperty(PROPERTIES.CAD_SIM_HOST.name).trim(),
-                    simManagerProperties.getProperty(PROPERTIES.CAD_SIM_PORT.name).trim());
+                    simManagerProperties.getProperty(PROPERTIES.CAD_SERVER_HOST.name).trim(),
+                    simManagerProperties.getProperty(PROPERTIES.CAD_SERVER_PORT.name).trim());
 
             //Construct the SimulationManagerView and set up the Model-View references.
Index: trunk/src/tmcsim/paramicslog/ParamicsLogFileHandler.java
===================================================================
--- trunk/src/tmcsim/paramicslog/ParamicsLogFileHandler.java	(revision 47)
+++ trunk/src/tmcsim/paramicslog/ParamicsLogFileHandler.java	(revision 664)
@@ -88,5 +88,5 @@
     public static ParamicsLogFileHandler getInstance() throws IOException
     {
-        System.setProperty("PARAMICS_LOG_PROPERTIES", "config/paramics_communicator_logging.properties");
+        System.setProperty("PARAMICS_LOG_PROPERTIES", "config/logging_paramics_communicator.properties");
         // Has an instance been created yet?
         if (instance == null)
Index: trunk/src/tmcsim/paramicslog/ParamicsLog.java
===================================================================
--- trunk/src/tmcsim/paramicslog/ParamicsLog.java	(revision 47)
+++ trunk/src/tmcsim/paramicslog/ParamicsLog.java	(revision 664)
@@ -56,5 +56,5 @@
         }
     }
-    private static final String CONFIG_FILE_NAME = "paramics_communicator_logging.properties";
+    private static final String CONFIG_FILE_NAME = "logging_paramics_communicator.properties";
     /**
      * Error logger.
Index: trunk/src/tmcsim/cadsimulator/CADServer.java
===================================================================
--- trunk/src/tmcsim/cadsimulator/CADServer.java	(revision 654)
+++ trunk/src/tmcsim/cadsimulator/CADServer.java	(revision 664)
@@ -27,41 +27,18 @@
 
 /**
- * CADSimulator is main class for the CAD Simulator application. At construction
- * the Coordinator, CoordinatorViewer, and all CAD Simulator Managers are
+ * CADServer is main class for the CAD Simulator application. 
+ * CADServer must be running before starting any other components of the TMCSim.
+ * At construction the Coordinator, CoordinatorViewer, and all CAD Simulator Managers are
  * initialized and data relationships are established. Simulation control is
- * managed through the Coordinator and Managers. The CADSimulator contains the
+ * managed through the Coordinator and Managers. The CADServer contains the
  * instances of all Manager Objects that are used to control the Simulation flow
  * of data.<br>
+ * There is a GUI (and for testing, a text-based UI) that displays the state
+ * of the server.
  * <br>
+ * A properties file contains settings for many parameters of the CADServer<br>
  *
- * The CADSimulator is initialized with a properties file containing the
- * following data items:<br>
- * <code>
- * -----------------------------------------------------------------------------<br>
- * CADClientPort The port number to use for remote CAD Client connections.<br>
- * CoordinatorRMIPort The port number to use for binding the Coordinator.<br>
- * CMSDiversionXML The filepath for the xml file containing initialization data
- * for the Diversion "database." AudioFileLocation The root directory path where
- * audio files are referenced from.<br>
- * ParamicsProperties The filepath for the properties file to initialize the
- * ParamicsControlManager.<br>
- * ATMSProperties The filepath for the properties file to initialize the
- * ATMSManager.<br>
- * MediaProperties The filepath for the properties file to initialize the
- * MediaManager.<br>
- * ErrorFile The filename of the error file used for logging errors.<br>
- * ----------------------------------------------------------------------------<br>
- * Example File:<br>
- * CADClientPort = 4444<br>
- * CoordinatorRMIPort = 4445<br>
- * CMSDiversionXML = ../data/cmsdiversions.xml<br>
- * AudioFileLocation = ../audio/<br>
- * ParamicsProperties = ../config/paramics.properties<br>
- * ATMSProperties = ../config/atms.properties<br>
- * MediaProperties = ../config/media.properties<br>
- * ErrorFile = cad_sim_error.xml<br>
- * </code>
- *
- * @author Matthew Cechini (mcechini@calpoly.edu) jdalbey
+ * @author Matthew Cechini (mcechini@calpoly.edu)
+ * @author John Dalbey (jdalbey@calpoly.edu)
  * @version $Date: 2009/04/17 16:27:46 $ $Revision: 1.5 $
  */
@@ -69,5 +46,5 @@
 {
 
-    private static String CONFIG_FILE_NAME = "cad_simulator_config.properties";
+    private static String CONFIG_FILE_NAME = "cad_server.properties";
     /**
      * Error logger.
@@ -76,5 +53,5 @@
 
     /**
-     * Enumeration containing properties name values. See CADSimulator class
+     * Enumeration containing properties name values. See CADServer class
      * description for more information.
      *
@@ -149,5 +126,5 @@
     /** NOTE: Protected fields are accessed by Coordinator */
     /**
-     * CADSimulatorViewer instance.
+     * CADServerViewer instance.
      */
     protected static CADViewer theViewer;
@@ -189,5 +166,5 @@
     
     /**
-     * Properties file for the CADSimulator.
+     * Properties file for the CADServer, read from CONFIG_FILE_NAME.
      */
     private Properties cadServerProperties;
@@ -211,9 +188,9 @@
             cadServerProperties = new Properties();
             cadServerProperties.load(new FileInputStream(propertiesFile));
-            cadSimLogger.logp(Level.INFO, "CADSimulator", "Constructor",
+            cadSimLogger.logp(Level.INFO, "CADServer", "Constructor",
                     "Properties loaded from " + propertiesFile);
         } catch (Exception e)
         {
-            cadSimLogger.logp(Level.SEVERE, "CADSimulator", "Constructor",
+            cadSimLogger.logp(Level.SEVERE, "CADServer", "Constructor",
                     "Exception in reading properties file.", e);
             JOptionPane.showMessageDialog(new JWindow(), e.getMessage() +
@@ -233,5 +210,5 @@
             if (userInterfaceName == null)
             {
-                cadSimLogger.logp(Level.SEVERE, "CADSimulator", "Constructor",
+                cadSimLogger.logp(Level.SEVERE, "CADServer", "Constructor",
                         propertiesFile + " missing property for user interface.");
                 throw new SimulationException(SimulationException.PROPERTY_MISSING_ERROR);
@@ -244,5 +221,5 @@
             } catch (Exception exc)
             {
-                cadSimLogger.logp(Level.SEVERE, "CADSimulator", "Constructor",
+                cadSimLogger.logp(Level.SEVERE, "CADServer", "Constructor",
                         "Unable to instantiate user interface: " + userInterfaceName
                         + " " + exc);
@@ -257,5 +234,5 @@
             if (simTimeFilename == null)
             {
-                cadSimLogger.logp(Level.SEVERE, "CADSimulator", "Constructor",
+                cadSimLogger.logp(Level.SEVERE, "CADServer", "Constructor",
                         propertiesFile + " missing property for " + CAD_PROPERTIES.ELAPSED_TIME_FILE.name);
                 throw new SimulationException(SimulationException.PROPERTY_MISSING_ERROR);
@@ -267,5 +244,5 @@
             if (commentLogname == null)
             {
-                cadSimLogger.logp(Level.SEVERE, "CADSimulator", "Constructor",
+                cadSimLogger.logp(Level.SEVERE, "CADServer", "Constructor",
                         propertiesFile + " missing property for " + CAD_PROPERTIES.CAD_COMMENTS_LOG.name);
                 throw new SimulationException(SimulationException.PROPERTY_MISSING_ERROR);
@@ -317,5 +294,5 @@
         } catch (RemoteException e)
         {
-            cadSimLogger.logp(Level.SEVERE, "CADSimulator", "Constructor",
+            cadSimLogger.logp(Level.SEVERE, "CADServer", "Constructor",
                     "Exception in starting Coordinator.", e);
 
@@ -336,5 +313,5 @@
         } catch (Exception e)
         {
-            cadSimLogger.logp(Level.SEVERE, "CADSimulator", "Constructor",
+            cadSimLogger.logp(Level.SEVERE, "CADServer", "Constructor",
                     "Exception in parsing CMSDiversion xml file.", e);
 
@@ -472,5 +449,5 @@
         } catch (Exception e)
         {
-            cadSimLogger.logp(Level.SEVERE, "CADSimulator", "Main",
+            cadSimLogger.logp(Level.SEVERE, "CADServer", "Main",
                     "Error initializing application.", e);
 
Index: trunk/src/tmcsim/cadsimulator/CADClientConnector.java
===================================================================
--- trunk/src/tmcsim/cadsimulator/CADClientConnector.java	(revision 660)
+++ trunk/src/tmcsim/cadsimulator/CADClientConnector.java	(revision 664)
@@ -107,4 +107,9 @@
         catch (ClassNotFoundException cnfe) {
             cnfe.printStackTrace();
+        }
+        catch (java.io.EOFException except)
+        {
+            cadLogger.logp(Level.INFO, "CADClientConnector", "run", "Client appears to have shutdown, removing client.\n");
+            disconnectClient();
         }
         catch (SocketException except)
Index: trunk/src/tmcsim/cadsimulator/viewer/ConfigStatusTab.java
===================================================================
--- trunk/src/tmcsim/cadsimulator/viewer/ConfigStatusTab.java	(revision 455)
+++ trunk/src/tmcsim/cadsimulator/viewer/ConfigStatusTab.java	(revision 664)
@@ -132,5 +132,5 @@
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         frame.setSize(1050, 450);
-        ConfigStatusTab pnl = new ConfigStatusTab("config/cad_simulator_config.properties");
+        ConfigStatusTab pnl = new ConfigStatusTab("config/cad_server.properties");
         frame.add(pnl);
         frame.setVisible(true);
