Index: trunk/src/tmcsim/simulationmanager/SimulationManagerView.java
===================================================================
--- trunk/src/tmcsim/simulationmanager/SimulationManagerView.java	(revision 2)
+++ trunk/src/tmcsim/simulationmanager/SimulationManagerView.java	(revision 6)
@@ -737,4 +737,5 @@
         simulationStatus     = new JLabel("Simulation Status");
         simulationStatusText = new JLabel("No Script");
+        simulationStatusText.setName("simulationStatusText");
         simulationStatusText.setFont(new Font("Geneva", Font.BOLD, 14));
         
@@ -746,4 +747,6 @@
         pauseButton  = new JButton(new PauseSimulationAction(this));
         resetButton = new JButton(new ResetSimulationAction(this));
+        loadScriptButton = new JButton(new LoadScriptAction(this));
+        loadScriptButton.setAlignmentX(Box.CENTER_ALIGNMENT);
         
         startButton.setEnabled(false);
@@ -756,11 +759,14 @@
         simulationTimeButtonBox = new Box(BoxLayout.X_AXIS);
         
+        simulationTimeButtonBox.add(loadScriptButton);
         simulationTimeButtonBox.add(startButton);
         simulationTimeButtonBox.add(pauseButton);
         simulationTimeButtonBox.add(resetButton);
+//        currentScript = new JLabel(" no script loaded");
+        //currentScript.setAlignmentX(Box.LEFT_ALIGNMENT);
+//        simulationTimeButtonBox.add (currentScript);
         
         simulationStatus.setAlignmentX(Box.CENTER_ALIGNMENT);
         simulationStatusText.setAlignmentX(Box.CENTER_ALIGNMENT);
-        simulationStatusText.setName("simulationStatusText");
         
         TitledBorder title = BorderFactory.createTitledBorder(
@@ -779,10 +785,6 @@
         scriptBox.setAlignmentX(Box.CENTER_ALIGNMENT);
         
-        loadScriptButton = new JButton(new LoadScriptAction(this));
-        loadScriptButton.setAlignmentX(Box.CENTER_ALIGNMENT);
-        
         scriptBox.add(simulationStatusBox);
         scriptBox.add(Box.createVerticalStrut(5));
-        scriptBox.add(loadScriptButton);
         
         simulationClockLabel = new JLabel("0:00:00");
@@ -800,6 +802,6 @@
         simulationTimeAndStatusBox = Box.createHorizontalBox();
         simulationTimeAndStatusBox.setAlignmentX(Box.LEFT_ALIGNMENT);
-        simulationTimeAndStatusBox.setMaximumSize(new Dimension(640, 200));
-        simulationTimeAndStatusBox.setPreferredSize(new Dimension(640, 160));
+        simulationTimeAndStatusBox.setMaximumSize(new Dimension(640, 300));
+        simulationTimeAndStatusBox.setPreferredSize(new Dimension(640, 1600));
         simulationTimeAndStatusBox.add(Box.createHorizontalStrut(5));
         simulationTimeAndStatusBox.add(simulationTimeBox);
@@ -1224,5 +1226,5 @@
     private JLabel timeScheduledLabel;
     private JLabel CADClientClockLabel;
-            
+    private JLabel currentScript;
     private Box adminInteractionBox;    
     private Box simulationRightSideBox;
Index: trunk/src/tmcsim/simulationmanager/SimulationManager.java
===================================================================
--- trunk/src/tmcsim/simulationmanager/SimulationManager.java	(revision 2)
+++ trunk/src/tmcsim/simulationmanager/SimulationManager.java	(revision 6)
@@ -9,143 +9,174 @@
 import java.util.logging.Level;
 import java.util.logging.Logger;
-
 import javax.swing.JOptionPane;
 import javax.swing.UIManager;
-
+import tmcsim.common.CADEnums.PARAMICS_STATUS;
 import tmcsim.common.SimulationException;
-import tmcsim.common.CADEnums.PARAMICS_STATUS;
 
 /**
- * Simulation Manager is the main class for this module.  The Simulation Manager
- * is used to control the view and control the simulation.  Simulation incidents
- * are loaded, removed, reschedule, and added from the Simulation Manager.  The
+ * Simulation Manager is the main class for this module. The Simulation Manager
+ * is used to control the view and control the simulation. Simulation incidents
+ * are loaded, removed, reschedule, and added from the Simulation Manager. The
  * Simulation Manager provides functionality for connecting to the paramics
- * 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 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>
+ * 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
+ * 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>
+ * 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>
+ * CADSimulatorHost = localhost <br>
+ * ErrorFile = sim_mgr_error.xml <br>
  * -----------------------------------------------------------------------------<br>
  * </code>
  *
  * @author Matthew Cechini (mcechini@calpoly.edu)
- * @version $Date: 2009/04/17 16:27:47 $ $Revision: 1.7 
+ * @version $Date: 2009/04/17 16:27:47 $ $Revision: 1.7
  */
-public class SimulationManager {
-        
-    /** Error logger. */
+public class SimulationManager
+{
+
+    /**
+     * Error logger.
+     */
     private static Logger simManLogger = Logger.getLogger("tmcsim.simulationmanager");
-    
+
     /**
      * Enumeration containing property names.
+     *
      * @author Matthew Cechini
      */
-    private static enum PROPERTIES {
-        CAD_SIM_HOST  ("CADSimulatorHost"),
-        CAD_SIM_PORT  ("CADSimulatorRMIPort"),
-        SCRIPT_DIR    ("ScriptDir"),
-        FAKE_PARAMICS ("FakeParamicsConnection");
-        
+    private static enum PROPERTIES
+    {
+
+        CAD_SIM_HOST("CADSimulatorHost"),
+        CAD_SIM_PORT("CADSimulatorRMIPort"),
+        SCRIPT_DIR("ScriptDir"),
+        FAKE_PARAMICS("FakeParamicsConnection");
         public String name;
-        
-        private PROPERTIES(String n) {
+
+        private PROPERTIES(String n)
+        {
             name = n;
         }
-        
     }
-        
-    /**
-     * Instance of the SimulationManagerModel which communicates with the 
-     * CAD Simulator to display the current simulation information.  This
-     * model class contains the data that is displayed by the SimulationManagerView
-     * class.  The View purely provides a GUI interface for the data contained within
+    /**
+     * Instance of the SimulationManagerModel which communicates with the CAD
+     * Simulator to display the current simulation information. This model class
+     * contains the data that is displayed by the SimulationManagerView class.
+     * The View purely provides a GUI interface for the data contained within
      * the model.
      */
-    private SimulationManagerModel  theSimManagerModel;
-    
-    /**
-     * Instance of the SimulationManagerView class which provides a GUI for the user
-     * to view the current simulation information and to manage the simulation.  The 
-     * view communicates to the SimulationManagerModel class to get and set data.
-     */
-    SimulationManagerView   theSimManagerView;
-    
-    /** The Properties object for the Simulation Manager. */
+    SimulationManagerModel theSimManagerModel;
+    /**
+     * Instance of the SimulationManagerView class which provides a GUI for the
+     * user to view the current simulation information and to manage the
+     * simulation. The view communicates to the SimulationManagerModel class to
+     * get and set data.
+     */
+    SimulationManagerView theSimManagerView;
+    /**
+     * The Properties object for the Simulation Manager.
+     */
     private Properties simManagerProperties;
-    
-    /**
-     * Constructor.  Set communication data members from properties file.  Instantiate
-     * the SimulationManager Model and View objects, and set visibility to true.
-     * 
-     * @param propertiesFile Properties file containing info for Simulation Manager.
-     */
-    public SimulationManager(String propertiesFile) throws SimulationException {    
-
-        try {
+
+    /**
+     * Constructor. Set communication data members from properties file.
+     * Instantiate the SimulationManager Model and View objects, and set
+     * visibility to true.
+     *
+     * @param propertiesFile Properties file containing info for Simulation
+     * Manager.
+     */
+    public SimulationManager(String propertiesFile) throws SimulationException
+    {
+
+        try
+        {
             simManagerProperties = new Properties();
             simManagerProperties.load(new FileInputStream(new File(propertiesFile)));
-            
-            SimulationManagerView.SCRIPT_DIR = 
-                simManagerProperties.getProperty(PROPERTIES.SCRIPT_DIR.name).trim();
+
+            SimulationManagerView.SCRIPT_DIR =
+                    simManagerProperties.getProperty(PROPERTIES.SCRIPT_DIR.name).trim();
 
             //make sure properties aren't null
-            if(simManagerProperties.getProperty(PROPERTIES.CAD_SIM_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_SIM_HOST.name) == null)
+            {
+                throw new Exception("CAD Simulator host property is null.");
+            }
+
+            if (simManagerProperties.getProperty(PROPERTIES.CAD_SIM_PORT.name) == null)
+            {
                 throw new Exception("CAD Simulator port property is null.");
-            
-        }
-        catch (Exception e)
-        {     
-            simManLogger.logp(Level.SEVERE, "SimulationManager", "Constructor", 
+            }
+
+        } catch (Exception e)
+        {
+            simManLogger.logp(Level.SEVERE, "SimulationManager", "Constructor",
                     "Exception in reading properties file.", e);
-            
+
             throw new SimulationException(SimulationException.INITIALIZE_ERROR, e);
         }
 
         //Construct the SimulationManagerModel
-        try 
-        {                
+        try
+        {
             theSimManagerModel = new SimulationManagerModel(
-                    simManagerProperties.getProperty(PROPERTIES.CAD_SIM_HOST.name).trim(), 
+                    simManagerProperties.getProperty(PROPERTIES.CAD_SIM_HOST.name).trim(),
                     simManagerProperties.getProperty(PROPERTIES.CAD_SIM_PORT.name).trim());
 
             //Construct the SimulationManagerView and set up the Model-View references.
             theSimManagerView = new SimulationManagerView(theSimManagerModel);
-            theSimManagerModel.setView(theSimManagerView);                           
-        }
-        catch (RemoteException re) 
-        {
-            simManLogger.logp(Level.SEVERE, "SimulationManager", "Constructor", 
+            theSimManagerModel.setView(theSimManagerView);
+        } catch (RemoteException re)
+        {
+            simManLogger.logp(Level.SEVERE, "SimulationManager", "Constructor",
                     "Unable to establish RMI ", re);
 
-            throw new SimulationException(SimulationException.CAD_SIM_CONNECT, re); 
-        }
-
-        theSimManagerView.addWindowListener(new WindowListener() {
-            public void windowClosed(WindowEvent e)  {}
-            public void windowOpened(WindowEvent e)  {}            
-            public void windowIconified(WindowEvent e)  {}         
-            public void windowDeiconified(WindowEvent e)  {}    
-            public void windowActivated(WindowEvent e)  {}                             
-            public void windowDeactivated(WindowEvent e)  {}         
-            public void windowClosing(WindowEvent e)  {     
+            throw new SimulationException(SimulationException.CAD_SIM_CONNECT, re);
+        }
+
+        theSimManagerView.addWindowListener(new WindowListener()
+        {
+            public void windowClosed(WindowEvent e)
+            {
+            }
+
+            public void windowOpened(WindowEvent e)
+            {
+            }
+
+            public void windowIconified(WindowEvent e)
+            {
+            }
+
+            public void windowDeiconified(WindowEvent e)
+            {
+            }
+
+            public void windowActivated(WindowEvent e)
+            {
+            }
+
+            public void windowDeactivated(WindowEvent e)
+            {
+            }
+
+            public void windowClosing(WindowEvent e)
+            {
                 theSimManagerModel.disconnect();
                 System.exit(0);
-            }           
+            }
         });
 
-        if(Boolean.parseBoolean(simManagerProperties.getProperty(
+        if (Boolean.parseBoolean(simManagerProperties.getProperty(
                 PROPERTIES.FAKE_PARAMICS.name).trim()))
         {
@@ -154,45 +185,39 @@
 
         //Show the SimulationManager
-        theSimManagerView.setVisible(true);        
+        theSimManagerView.setVisible(true);
     }
-    
-    /**
-     * Main class.  
-     * 
+
+    /**
+     * Main class.
+     *
      * @param args Command line arguments.
      */
-    static public void main(String[] args) {
+    static public void main(String[] args)
+    {
         System.setProperty("SIM_MGR_PROPERTIES", "config/sim_manager_config.properties");
-
-        try {
-            if(System.getProperty("SIM_MGR_PROPERTIES") != null)
+        //System.setProperty("swing.defaultlaf", "com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
+
+        try
+        {
+            if (System.getProperty("SIM_MGR_PROPERTIES") != null)
             {
                 UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
-                
+
                 new SimulationManager(System.getProperty("SIM_MGR_PROPERTIES"));
-            }
-            else
-            {
-                throw new Exception ("SIM_MGR_PROPERTIES system property not defined.");
-            }
-        } 
-        catch (Exception e) 
-        {
-            simManLogger.logp(Level.SEVERE, "SimulationManager", "Main", 
+            } else
+            {
+                throw new Exception("SIM_MGR_PROPERTIES system property not defined.");
+            }
+        } catch (Exception e)
+        {
+            simManLogger.logp(Level.SEVERE, "SimulationManager", "Main",
                     "Error occured initializing application", e);
-            
-            JOptionPane.showMessageDialog(null, e.getMessage(), 
-                "Error - Program Exiting", JOptionPane.ERROR_MESSAGE);  
-            
+
+            JOptionPane.showMessageDialog(null, e.getMessage(),
+                    "Error - Program Exiting", JOptionPane.ERROR_MESSAGE);
+
             System.exit(-1);
-        }   
-        
+        }
+
     }
 }
-
-
-
-
-
-
-
Index: trunk/src/tmcsim/simulationmanager/SimulationManagerModel.java
===================================================================
--- trunk/src/tmcsim/simulationmanager/SimulationManagerModel.java	(revision 2)
+++ trunk/src/tmcsim/simulationmanager/SimulationManagerModel.java	(revision 6)
@@ -10,265 +10,313 @@
 import java.util.logging.Level;
 import java.util.logging.Logger;
-
 import tmcsim.cadmodels.CMSDiversion;
 import tmcsim.cadmodels.CMSInfo;
 import tmcsim.client.cadclientgui.data.Incident;
 import tmcsim.client.cadclientgui.data.IncidentEvent;
+import tmcsim.common.CADEnums.PARAMICS_STATUS;
+import tmcsim.common.CADEnums.SCRIPT_STATUS;
 import tmcsim.common.ScriptException;
 import tmcsim.common.SimulationException;
-import tmcsim.common.CADEnums.PARAMICS_STATUS;
-import tmcsim.common.CADEnums.SCRIPT_STATUS;
 import tmcsim.interfaces.CoordinatorInterface;
 import tmcsim.interfaces.SimulationManagerInterface;
 
-
 /**
- * SimulationManagerModel is the model class for the Simulation Manager.  All communication
- * between the Coordinator and the Simulation Manager passes through this object.  The view
- * passes requests through local methods, and the Coordinator calls remote functions in this
- * object to update the viewed simulation data.
- * <br/> 
- * At construction, the SimulationManagerModel registers itself with the coordinator.  
- * Administrative commands for the simulation are received from the SimlationManagerView 
- * class, and then the appropriate Coordinator remote method is executed.  During a 
- * simulation, the Coordinator calls remote methods contained in the SimulationManagerInterface.  
- * For a description of those methods, see the interface's documentation.  After construction, 
- * this model class must have its setView() method called to set the reference to its view class.
- * 
+ * SimulationManagerModel is the model class for the Simulation Manager. All
+ * communication between the Coordinator and the Simulation Manager passes
+ * through this object. The view passes requests through local methods, and the
+ * Coordinator calls remote functions in this object to update the viewed
+ * simulation data.
+ * <br/>
+ * At construction, the SimulationManagerModel registers itself with the
+ * coordinator. Administrative commands for the simulation are received from the
+ * SimlationManagerView class, and then the appropriate Coordinator remote
+ * method is executed. During a simulation, the Coordinator calls remote methods
+ * contained in the SimulationManagerInterface. For a description of those
+ * methods, see the interface's documentation. After construction, this model
+ * class must have its setView() method called to set the reference to its view
+ * class.
+ *
  * @see SimulationManagerView
  * @see SimulationManagerInterface
- * @author Matthew Cechini 
+ * @author Matthew Cechini
  * @version $Revision: 1.3 $ $Date: 2006/06/06 20:46:41 $
  */
 @SuppressWarnings("serial")
-public class SimulationManagerModel extends UnicastRemoteObject 
-    implements SimulationManagerInterface {
-    
-    /** Error Logger. */
+public class SimulationManagerModel extends UnicastRemoteObject
+        implements SimulationManagerInterface
+{
+
+    /**
+     * Error Logger.
+     */
     private Logger simManagerLogger = Logger.getLogger("tmcsim.simulationmanager");
-    
-    /** RMI interface for communication with the remote Coordinator. */ 
+    /**
+     * RMI interface for communication with the remote Coordinator.
+     */
     private static CoordinatorInterface theCoorInt;
-    
-    /** The SimulationManagerView object. */
-    private SimulationManagerView theSimManagerView;    
-    
-
-    /**
-     * Constructor.  Establishes the RMI communication with the Coordinator.
-     *
-     * @param hostname Host name of the CAD Simulator.    
-     * @param portNumber Port number of the CAD Simulator RMI communication. 
+    /**
+     * The SimulationManagerView object.
+     */
+    private SimulationManagerView theSimManagerView;
+
+    /**
+     * Constructor. Establishes the RMI communication with the Coordinator.
+     *
+     * @param hostname Host name of the CAD Simulator.
+     * @param portNumber Port number of the CAD Simulator RMI communication.
      * @throws RemoteException if error in RMI communication
-     * @throws SimulationException if there is an error in registering RMI methods.
-     */
-    public SimulationManagerModel(String hostname, String portNumber) 
-            throws RemoteException, SimulationException {
-        super();                                
-                                        
+     * @throws SimulationException if there is an error in registering RMI
+     * methods.
+     */
+    public SimulationManagerModel(String hostname, String portNumber)
+            throws RemoteException, SimulationException
+    {
+        super();
+
         connect(hostname, portNumber);
-    }       
-    
+    }
+
     /**
      * Connect to the Coordinator's RMI object, and register this object for
      * callback with the Coordinator.
-     * @param hostname Host name of the CAD Simulator.    
-     * @param portNumber Port number of the CAD Simulator RMI communication. 
-     * @throws SimulationException if there is an error creating the RMI connection.
-     */ 
-    protected void connect(String hostname, String portNumber) 
-        throws SimulationException {
-        
+     *
+     * @param hostname Host name of the CAD Simulator.
+     * @param portNumber Port number of the CAD Simulator RMI communication.
+     * @throws SimulationException if there is an error creating the RMI
+     * connection.
+     */
+    protected void connect(String hostname, String portNumber)
+            throws SimulationException
+    {
+
         String coorIntURL = "";
-        
-        try {  
-            coorIntURL = "rmi://" + hostname + ":" + portNumber + "/coordinator"; 
-            
-            theCoorInt = (CoordinatorInterface)Naming.lookup(coorIntURL);
-            theCoorInt.registerForCallback(this);           
-            
-        }
-        catch (Exception e) {
-            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel", 
-                    "establishRMIConnection", "Unable to establish RMI " +
-                    "communication with the CAD Simulator.  URL <" + coorIntURL + ">", e);
-            
+
+        try
+        {
+            coorIntURL = "rmi://" + hostname + ":" + portNumber + "/coordinator";
+
+            theCoorInt = (CoordinatorInterface) Naming.lookup(coorIntURL);
+            theCoorInt.registerForCallback(this);
+
+        } catch (Exception e)
+        {
+            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel",
+                    "establishRMIConnection", "Unable to establish RMI "
+                    + "communication with the CAD Simulator.  URL <" + coorIntURL + ">", e);
+
             throw new SimulationException(SimulationException.CAD_SIM_CONNECT, e);
-        }   
-    }
-    
-    /**
-     * This method unregisters this SimulationManager from the Coordinator and closes
-     * the RMI communication.
-     */
-    public void disconnect() {
-        try {
+        }
+    }
+
+    /**
+     * This method unregisters this SimulationManager from the Coordinator and
+     * closes the RMI communication.
+     */
+    public void disconnect()
+    {
+        try
+        {
             theCoorInt.unregisterForCallback(this);
             theCoorInt = null;
-        }
-        catch (Exception e) {
-            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel", 
-                    "closeSimManager", "Exception in unregistering Simulation" +
-                    "Manager from the CAD Simulator.", e);
-        }
-    }
-    
-    /**
-     * Set the local reference to the SimulationManagerView object.  The view
-     * is updated with the current simulation time, script status, and Paramics
-     * connection status. 
+        } catch (Exception e)
+        {
+            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel",
+                    "closeSimManager", "Exception in unregistering Simulation"
+                    + "Manager from the CAD Simulator.", e);
+        }
+    }
+
+    /**
+     * Set the local reference to the SimulationManagerView object. The view is
+     * updated with the current simulation time, script status, and Paramics
+     * connection status.
      *
      * @param newView The instance of the SimulationManagerView class.
-     * @throws SimulationException if there is an error in RMI communication to the CAD Simulator.
-     */
-    public void setView(SimulationManagerView newView) throws SimulationException {
-        try {
+     * @throws SimulationException if there is an error in RMI communication to
+     * the CAD Simulator.
+     */
+    public void setView(SimulationManagerView newView) throws SimulationException
+    {
+        try
+        {
             theSimManagerView = newView;
-            
-            theSimManagerView.tick(theCoorInt.getCurrentSimulationTime());  
+
+            theSimManagerView.tick(theCoorInt.getCurrentSimulationTime());
             theSimManagerView.setScriptStatus(theCoorInt.getScriptStatus());
             theSimManagerView.setParamicsStatus(theCoorInt.getParamicsStatus());
-            
+
             initialize();
-        }
-        catch (RemoteException re) {
-            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel", 
-                    "startSimulation", "Unable to communicate with the " +
-                    "CAD Simulator.", re);
-            
-            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
-        }   
-        
-    }   
-    
+        } catch (RemoteException re)
+        {
+            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel",
+                    "startSimulation", "Unable to communicate with the "
+                    + "CAD Simulator.", re);
+
+            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
+        }
+
+    }
+
     /**
      * This method initializes the SimulationManager with all current simulation
-     * data from the Coordinator.  If the simulation is running when the Simulation
-     * Manager is initialized, all previously occured incidents, events, and current
-     * diversion must be displayed.  This method first loads the list of current
-     * incidents from the coordinator, then the triggered events, followed by 
-     * all CMSInfo objects.  The SimulationManagerView is notified of any current
-     * diversions within the CMSInfo objects.  
-     * 
-     * @throws SimulationException if there is an error in RMI communication or if the 
-     *         SimulationManagerView reference has not been set.
-     */
-    protected void initialize() throws SimulationException {
-        
-        try {
-        
+     * data from the Coordinator. If the simulation is running when the
+     * Simulation Manager is initialized, all previously occured incidents,
+     * events, and current diversion must be displayed. This method first loads
+     * the list of current incidents from the coordinator, then the triggered
+     * events, followed by all CMSInfo objects. The SimulationManagerView is
+     * notified of any current diversions within the CMSInfo objects.
+     *
+     * @throws SimulationException if there is an error in RMI communication or
+     * if the SimulationManagerView reference has not been set.
+     */
+    protected void initialize() throws SimulationException
+    {
+
+        try
+        {
+
             //Load all incidents from Coordinator
-            loadIncidents(); 
-            
+            loadIncidents();
+
             //Load all triggered incidents from Coordinator
             TreeMap<Integer, Vector<IncidentEvent>> tempEvents = theCoorInt.getTriggeredEvents();
-            for(Integer key : tempEvents.keySet())  {           
-                for(IncidentEvent ie : tempEvents.get(key)) 
-                    eventOccured(key, ie);           
-            }           
-                  
+            for (Integer key : tempEvents.keySet())
+            {
+                for (IncidentEvent ie : tempEvents.get(key))
+                {
+                    eventOccured(key, ie);
+                }
+            }
+
             //Load all current diversions from the Coordinator
             TreeSet<String> cmsIDs = theCoorInt.getCMSIDs();
-            CMSInfo cmsinfo  = null;
-            for(String cms_id : cmsIDs) {
+            CMSInfo cmsinfo = null;
+            for (String cms_id : cmsIDs)
+            {
                 cmsinfo = theCoorInt.getCMSDiversionInfo(cms_id);
-                
-                for(CMSDiversion div : cmsinfo.possibleDiversions) {
-                    if(div.getCurrDiv() != 0) {                     
+
+                for (CMSDiversion div : cmsinfo.possibleDiversions)
+                {
+                    if (div.getCurrDiv() != 0)
+                    {
                         theSimManagerView.addDiversion(cmsinfo, div);
-                    }       
+                    }
                 }
-            }   
-            
+            }
+
             //Send the list of CMS IDs to the View.
             theSimManagerView.setCMS_IDList(cmsIDs.toArray());
-        }
-        catch (Exception e) {
-            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel", 
+
+        } catch (Exception e)
+        {
+            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel",
                     "initialize", "Unable to initialize the SimulationManager.", e);
-            
+
             throw new SimulationException(SimulationException.CAD_SIM_COMM, e);
-        }   
-    }
-
-    public void tick(long theTime) throws RemoteException {
-        if(theSimManagerView != null)
-            theSimManagerView.tick(theTime);    
-    }
-    
-    public void incidentAdded(Incident newIncident) throws RemoteException {
-        if(theSimManagerView != null) {
+        }
+    }
+
+    public void tick(long theTime) throws RemoteException
+    {
+        if (theSimManagerView != null)
+        {
+            theSimManagerView.tick(theTime);
+        }
+    }
+
+    public void incidentAdded(Incident newIncident) throws RemoteException
+    {
+        if (theSimManagerView != null)
+        {
             Integer logNum = new Integer(newIncident.getLogNumber());
-            
-            theSimManagerView.addIncident(newIncident);         
+
+            theSimManagerView.addIncident(newIncident);
             theSimManagerView.addIncidentTab(logNum);
         }
     }
 
-    public void incidentStarted(Integer logNumber) throws RemoteException {
-        if(theSimManagerView != null) {
+    public void incidentStarted(Integer logNumber) throws RemoteException
+    {
+        if (theSimManagerView != null)
+        {
             theSimManagerView.startIncident(logNumber);
         }
     }
 
-    public void incidentRemoved(Integer logNumber) throws RemoteException {
-        if(theSimManagerView != null) {
+    public void incidentRemoved(Integer logNumber) throws RemoteException
+    {
+        if (theSimManagerView != null)
+        {
             theSimManagerView.removeIncident(logNumber);
             theSimManagerView.removeIncidentTab(logNumber);
         }
     }
-    
-    public void eventOccured(Integer logNumber, IncidentEvent theEvent) throws RemoteException {
-        if(theSimManagerView != null) {
+
+    public void eventOccured(Integer logNumber, IncidentEvent theEvent) throws RemoteException
+    {
+        if (theSimManagerView != null)
+        {
             theSimManagerView.addIncidentEvent(logNumber, theEvent);
         }
     }
-    
-    public void setScriptStatus(SCRIPT_STATUS newStatus) throws RemoteException {
-        if(theSimManagerView != null)
-            theSimManagerView.setScriptStatus(newStatus);       
-    }
-
-    public void setParamicsStatus(PARAMICS_STATUS newStatus) throws RemoteException {
-        if(theSimManagerView != null)
-            theSimManagerView.setParamicsStatus(newStatus);     
-        
-    }
-    
-    /**
-     * This method passes the view's request to start the simulation 
-     * on to the remote coordinator.
+
+    public void setScriptStatus(SCRIPT_STATUS newStatus) throws RemoteException
+    {
+        if (theSimManagerView != null)
+        {
+            theSimManagerView.setScriptStatus(newStatus);
+        }
+    }
+
+    public void setParamicsStatus(PARAMICS_STATUS newStatus) throws RemoteException
+    {
+        if (theSimManagerView != null)
+        {
+            theSimManagerView.setParamicsStatus(newStatus);
+        }
+
+    }
+
+    /**
+     * This method passes the view's request to start the simulation on to the
+     * remote coordinator.
      *
      * @throws ScriptException if an error occurs in started the simulation.
-     * @throws SimulationException if there is an error in RMI communication to the CAD Simulator.
-     */  
-    public void startSimulation() throws ScriptException, SimulationException {
-
-        try {
+     * @throws SimulationException if there is an error in RMI communication to
+     * the CAD Simulator.
+     */
+    public void startSimulation() throws ScriptException, SimulationException
+    {
+
+        try
+        {
             theCoorInt.startSimulation();
-        }
-        catch (RemoteException re) {
-            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel", 
-                    "startSimulation", "Unable to communicate with the " +
-                    "CAD Simulator.", re);
-            
-            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
-        }   
-
-    }
-    
-    /**
-     * This method passes the view's request to reset the simulation 
-     * on to the remote coordinator.  The View's simulation time is reset to 0.
-     * The view's incident tabs are cleared and incident list reset and initialized
-     * with the current list of incidents.  The list of diversions is also reset.
-     * 
-     * @throws SimulationException if there is an error in RMI communication to the CAD Simulator.
-     */
-    public void resetSimulation() throws SimulationException {      
-
-        try {
+        } catch (RemoteException re)
+        {
+            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel",
+                    "startSimulation", "Unable to communicate with the "
+                    + "CAD Simulator.", re);
+
+            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
+        }
+
+    }
+
+    /**
+     * This method passes the view's request to reset the simulation on to the
+     * remote coordinator. The View's simulation time is reset to 0. The view's
+     * incident tabs are cleared and incident list reset and initialized with
+     * the current list of incidents. The list of diversions is also reset.
+     *
+     * @throws SimulationException if there is an error in RMI communication to
+     * the CAD Simulator.
+     */
+    public void resetSimulation() throws SimulationException
+    {
+
+        try
+        {
             theCoorInt.resetSimulation();
-            
+
             tick(0);
             theSimManagerView.resetIncidentTabs();
@@ -276,358 +324,412 @@
             theSimManagerView.resetDiversions();
 
-            loadIncidents(); 
-        }
-        catch (RemoteException re) {
-            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel", 
-                    "resetSimulation", "Unable to communicate with the " +
-                    "CAD Simulator.", re);
-            
-            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
-        }   
-
-    }
-    
-    /**
-     * This method passes the view's request to pause the simulation 
-     * on to the remote coordinator.
-     *      
-     * @throws SimulationException if there is an error in RMI communication to the CAD Simulator.
-     */
-    public void pauseSimulation() throws SimulationException {
-
-        try {
+            loadIncidents();
+        } catch (RemoteException re)
+        {
+            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel",
+                    "resetSimulation", "Unable to communicate with the "
+                    + "CAD Simulator.", re);
+
+            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
+        }
+
+    }
+
+    /**
+     * This method passes the view's request to pause the simulation on to the
+     * remote coordinator.
+     *
+     * @throws SimulationException if there is an error in RMI communication to
+     * the CAD Simulator.
+     */
+    public void pauseSimulation() throws SimulationException
+    {
+
+        try
+        {
             theCoorInt.pauseSimulation();
-         }
-        catch (RemoteException re) {
-            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel", 
-                    "pauseSimulation", "Unable to communicate with the " +
-                    "CAD Simulator.", re);
-            
-            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
-        }   
-
-    }
-    
-    /**
-     * This method passes the view's request to goto a new simulation 
-     * time on to the remote coordinator.
-     * 
-     * @param time Simulation time 
-     * @throws SimulationException if there is an error in RMI communication to the CAD Simulator.
-     */
-    public void gotoSimulationTime(long time) throws SimulationException {
-        
-        try {
+        } catch (RemoteException re)
+        {
+            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel",
+                    "pauseSimulation", "Unable to communicate with the "
+                    + "CAD Simulator.", re);
+
+            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
+        }
+
+    }
+
+    /**
+     * This method passes the view's request to goto a new simulation time on to
+     * the remote coordinator.
+     *
+     * @param time Simulation time
+     * @throws SimulationException if there is an error in RMI communication to
+     * the CAD Simulator.
+     */
+    public void gotoSimulationTime(long time) throws SimulationException
+    {
+
+        try
+        {
             theCoorInt.gotoSimulationTime(time);
-        }
-        catch (RemoteException re) {
-            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel", 
-                    "gotoSimulationTime", "Unable to communicate with the " +
-                    "CAD Simulator.", re);
-            
-            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
-        }   
-    }
-    
-    /**
-     * This method passes the view's request to load a script file on to the 
-     * remote Coordinator.  If this is successful, the View's incident tabs 
-     * are cleared and incident list reset and initialized with the current 
-     * list of incidents.  If the load is not successful, the View's incident tabs
-     * and incident list are cleared.  The list of diversions is also reset.
+        } catch (RemoteException re)
+        {
+            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel",
+                    "gotoSimulationTime", "Unable to communicate with the "
+                    + "CAD Simulator.", re);
+
+            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
+        }
+    }
+
+    /**
+     * This method passes the view's request to load a script file on to the
+     * remote Coordinator. If this is successful, the View's incident tabs are
+     * cleared and incident list reset and initialized with the current list of
+     * incidents. If the load is not successful, the View's incident tabs and
+     * incident list are cleared. The list of diversions is also reset.
      *
      * @param scriptFile the File chosen by the user in the open file dialog.
      * @throws ScriptException if an error occurs in reading the script file.
-     * @throws SimulationException if there is an error in RMI communication to the CAD Simulator.
-     */
-    public void loadScript(File scriptFile) throws ScriptException, SimulationException{    
-        
-        try {
+     * @throws SimulationException if there is an error in RMI communication to
+     * the CAD Simulator.
+     */
+    public void loadScript(File scriptFile) throws ScriptException, SimulationException
+    {
+
+        try
+        {
             theCoorInt.loadScriptFile(scriptFile);
-            
+
             tick(0);
             theSimManagerView.resetIncidentTabs();
             theSimManagerView.resetIncidents();
             theSimManagerView.resetDiversions();
-            
+
             loadIncidents();
-         } 
-         catch(ScriptException se) {
+        } catch (ScriptException se)
+        {
             theSimManagerView.resetIncidentTabs();
             theSimManagerView.resetIncidents();
             theSimManagerView.resetDiversions();
             throw se;
-         }
-        catch (RemoteException re) {
-            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel", 
-                    "loadScript", "Unable to communicate with the " +
-                    "CAD Simulator.", re);
-            
-            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
-        }           
-    }
-    
-     /**
-      * This method passes the view's request to create a connection between
-      * the CADSimulator and the Paramics Communicator on to the remote Coordinator. 
-      *
-      * @throws SimulationException if there is an error in RMI communication to the CAD Simulator.
-      */
-     public void connectToParamics() throws SimulationException {
-
-        try {
+        } catch (RemoteException re)
+        {
+            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel",
+                    "loadScript", "Unable to communicate with the "
+                    + "CAD Simulator.", re);
+
+            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
+        }
+    }
+
+    /**
+     * This method passes the view's request to create a connection between the
+     * CADSimulator and the Paramics Communicator on to the remote Coordinator.
+     *
+     * @throws SimulationException if there is an error in RMI communication to
+     * the CAD Simulator.
+     */
+    public void connectToParamics() throws SimulationException
+    {
+
+        try
+        {
             theCoorInt.connectToParamics();
-        } 
-        catch (RemoteException re) {
-            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel", 
-                    "connectToParamics", "Unable to communicate with the " +
-                    "CAD Simulator.", re);
-            
-            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
-        }
-     }
-     
-     /** 
-      * This method passes the view's request to drop the connection between
-      * the CADSimulator and the Paramics Communicator on to the
-      * remote Coordinator. 
-      *
-      * @throws SimulationException if there is an error in RMI communication to the CAD Simulator.
-      */
-     public void disconnectFromParamics() throws SimulationException { 
-
-        try {
+        } catch (RemoteException re)
+        {
+            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel",
+                    "connectToParamics", "Unable to communicate with the "
+                    + "CAD Simulator.", re);
+
+            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
+        }
+    }
+
+    /**
+     * This method passes the view's request to drop the connection between the
+     * CADSimulator and the Paramics Communicator on to the remote Coordinator.
+     *
+     * @throws SimulationException if there is an error in RMI communication to
+     * the CAD Simulator.
+     */
+    public void disconnectFromParamics() throws SimulationException
+    {
+
+        try
+        {
             theCoorInt.disconnectFromParamics();
-        } 
-        catch (RemoteException re) {
-            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel", 
-                    "disconnectFromParamics", "Unable to communicate with the " +
-                    "CAD Simulator.", re);
-            
-            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
-        }
-     }
-     
-     /**
-      * This method passes the view's request to load a paramics
-      * network on to the remote Coordinator. 
-      *
-      * @param networkID The unique network ID that is being loaded
-      *
-      * @throws ScriptException if there is an error in loading the network
-      * @throws SimulationException if there is an error in RMI communication to the CAD Simulator.
-      */
-     public void loadParamicsNetwork(int networkID) throws ScriptException, SimulationException {
-        try {
-             theCoorInt.loadParamicsNetwork(networkID);         
-        } catch (RemoteException re) {
-            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel", 
-                    "loadParamicsNetwork", "Unable to communicate with the " +
-                    "CAD Simulator.", re);
-            
-            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
-        }
-     }
-         
-     /**
-      * This method passes the view's request to get the value of the
-      * currently loaded paramics network on to the remote Coordinator.
-      * 
-      * @return Value of the loaded paramics network.  
-      * @throws SimulationException if there is an error in RMI communication to the CAD Simulator.
-      */
-     public int getParamicsNetworkLoaded() throws SimulationException {
-         try {
-            return theCoorInt.getParamicsNetworkLoaded();           
-        } catch (RemoteException re) {
-            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel", 
-                    "getParamicsNetworkLoaded", "Unable to communicate with the " +
-                    "CAD Simulator.", re);
-            
-            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
-        }
-     }
-    
-    /**
-     * This method passes the view's request to trigger an incident 
-     * on to the remote Coordinator.
+        } catch (RemoteException re)
+        {
+            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel",
+                    "disconnectFromParamics", "Unable to communicate with the "
+                    + "CAD Simulator.", re);
+
+            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
+        }
+    }
+
+    /**
+     * This method passes the view's request to load a paramics network on to
+     * the remote Coordinator.
+     *
+     * @param networkID The unique network ID that is being loaded
+     *
+     * @throws ScriptException if there is an error in loading the network
+     * @throws SimulationException if there is an error in RMI communication to
+     * the CAD Simulator.
+     */
+    public void loadParamicsNetwork(int networkID) throws ScriptException, SimulationException
+    {
+        try
+        {
+            theCoorInt.loadParamicsNetwork(networkID);
+        } catch (RemoteException re)
+        {
+            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel",
+                    "loadParamicsNetwork", "Unable to communicate with the "
+                    + "CAD Simulator.", re);
+
+            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
+        }
+    }
+
+    /**
+     * This method passes the view's request to get the value of the currently
+     * loaded paramics network on to the remote Coordinator.
+     *
+     * @return Value of the loaded paramics network.
+     * @throws SimulationException if there is an error in RMI communication to
+     * the CAD Simulator.
+     */
+    public int getParamicsNetworkLoaded() throws SimulationException
+    {
+        try
+        {
+            return theCoorInt.getParamicsNetworkLoaded();
+        } catch (RemoteException re)
+        {
+            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel",
+                    "getParamicsNetworkLoaded", "Unable to communicate with the "
+                    + "CAD Simulator.", re);
+
+            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
+        }
+    }
+
+    /**
+     * This method passes the view's request to trigger an incident on to the
+     * remote Coordinator.
      *
      * @throws ScriptException if an error occurs in triggering an event.
-     * @throws SimulationException if there is an error in RMI communication to the CAD Simulator.
-     */
-    public void triggerIncident(int logNumber) throws ScriptException, SimulationException {
-        try {
+     * @throws SimulationException if there is an error in RMI communication to
+     * the CAD Simulator.
+     */
+    public void triggerIncident(int logNumber) throws ScriptException, SimulationException
+    {
+        try
+        {
             theCoorInt.triggerIncident(logNumber);
-            
-        } catch (RemoteException re) {
-            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel", 
-                    "startIncident", "Unable to communicate with the " +
-                    "CAD Simulator.", re);
-            
-            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
-        }
-    }
-
-     /**
-      * This method passes the view's request to add an incident into the 
-      * simulation on to the remote Coordinator.
-      *
-      * @param newIncident Incident to add to the simulation
-      * @throws SimulationException if there is an error in RMI communication to the CAD Simulator.
-      */
-     public void addIncident(final Incident newIncident) throws SimulationException {       
-
-        try {
+
+        } catch (RemoteException re)
+        {
+            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel",
+                    "startIncident", "Unable to communicate with the "
+                    + "CAD Simulator.", re);
+
+            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
+        }
+    }
+
+    /**
+     * This method passes the view's request to add an incident into the
+     * simulation on to the remote Coordinator.
+     *
+     * @param newIncident Incident to add to the simulation
+     * @throws SimulationException if there is an error in RMI communication to
+     * the CAD Simulator.
+     */
+    public void addIncident(final Incident newIncident) throws SimulationException
+    {
+
+        try
+        {
             theCoorInt.addIncident(newIncident);
-    
-        } catch (RemoteException re) {
-            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel", 
-                    "addIncident", "Unable to communicate with the " +
-                    "CAD Simulator.", re);
-            
-            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
-        }       
-
-    }
-    
-    /**
-     * This method passes the view's request to delete an incident from the 
+
+        } catch (RemoteException re)
+        {
+            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel",
+                    "addIncident", "Unable to communicate with the "
+                    + "CAD Simulator.", re);
+
+            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
+        }
+
+    }
+
+    /**
+     * This method passes the view's request to delete an incident from the
      * simulation on to the remote Coordinator.
      *
      * @throws ScriptException if an error occurs in deleting an event.
-     * @throws SimulationException if there is an error in RMI communication to the CAD Simulator.
-     */
-    public void deleteIncident(int logNumber) throws ScriptException, SimulationException {
-
-        try {
-            theCoorInt.deleteIncident(logNumber);   
-    
-        } catch (RemoteException re) {
-            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel", 
-                    "deleteIncident", "Unable to communicate with the " +
-                    "CAD Simulator.", re);
-            
-            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
-        }       
-    }   
-    
-    
-    /**
-     * This method passes the view's request to reschedule an incident on to 
-     * the remote Coordinator.
+     * @throws SimulationException if there is an error in RMI communication to
+     * the CAD Simulator.
+     */
+    public void deleteIncident(int logNumber) throws ScriptException, SimulationException
+    {
+
+        try
+        {
+            theCoorInt.deleteIncident(logNumber);
+
+        } catch (RemoteException re)
+        {
+            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel",
+                    "deleteIncident", "Unable to communicate with the "
+                    + "CAD Simulator.", re);
+
+            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
+        }
+    }
+
+    /**
+     * This method passes the view's request to reschedule an incident on to the
+     * remote Coordinator.
      *
      * @param newTime New simulation time (in seconds).
-     * @throws ScriptException if the Incident has already started or the time for 
-     *         recheduling has already passed.
-     * @throws SimulationException if there is an error in RMI communication to the CAD Simulator.
-     */
-     public void rescheduleIncident(long newTime, int logNumber) throws ScriptException, SimulationException {
-            
-        try {
+     * @throws ScriptException if the Incident has already started or the time
+     * for recheduling has already passed.
+     * @throws SimulationException if there is an error in RMI communication to
+     * the CAD Simulator.
+     */
+    public void rescheduleIncident(long newTime, int logNumber) throws ScriptException, SimulationException
+    {
+
+        try
+        {
             theCoorInt.rescheduleIncident(logNumber, newTime);
-        } catch (RemoteException re) {
-            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel", 
-                    "rescheduleIncident", "Unable to communicate with the " +
-                    "CAD Simulator.", re);
-            
-            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
-        }               
-     }
-     
-    /**
-     * This method passes the view's request to get the current list of 
+        } catch (RemoteException re)
+        {
+            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel",
+                    "rescheduleIncident", "Unable to communicate with the "
+                    + "CAD Simulator.", re);
+
+            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
+        }
+    }
+
+    /**
+     * This method passes the view's request to get the current list of
      * Incidents loaded into the simulation on to the remote Coordinator.
      *
      * @return Vector The Vector of currently loaded incidents.
-     * @throws SimulationException if there is an error in RMI communication to the CAD Simulator.
-     */
-    public Vector<Incident> getIncidentList() throws SimulationException {
-
-        try {
+     * @throws SimulationException if there is an error in RMI communication to
+     * the CAD Simulator.
+     */
+    public Vector<Incident> getIncidentList() throws SimulationException
+    {
+
+        try
+        {
             return theCoorInt.getIncidentList();
-            
-        } catch (RemoteException re) {
-            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel", 
-                    "getIncidentList", "Unable to communicate with the " +
-                    "CAD Simulator.", re);
-            
-            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
-        }
-    }    
-             
-    /**
-     * This method passes the view's request to get the CMSInfo object 
-     * that corresponds to a unique CMS ID String on to the remote Coordinator.
-     * 
+
+        } catch (RemoteException re)
+        {
+            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel",
+                    "getIncidentList", "Unable to communicate with the "
+                    + "CAD Simulator.", re);
+
+            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
+        }
+    }
+
+    /**
+     * This method passes the view's request to get the CMSInfo object that
+     * corresponds to a unique CMS ID String on to the remote Coordinator.
+     *
      * @param cms_id Unique CMS ID String.
      * @return CMSInfo object corresponding to the parameter CMS id.
-     * @throws SimulationException if there is an error in RMI communication to the CAD Simulator.
-     */
-    public CMSInfo getCMSDiversionInfo(String cms_id) throws SimulationException {
-        
-        try {
+     * @throws SimulationException if there is an error in RMI communication to
+     * the CAD Simulator.
+     */
+    public CMSInfo getCMSDiversionInfo(String cms_id) throws SimulationException
+    {
+
+        try
+        {
             return theCoorInt.getCMSDiversionInfo(cms_id);
-        } catch (RemoteException re) {
-            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel", 
-                    "getCMSDiversionInfo", "Unable to communicate with the " +
-                    "CAD Simulator.", re);
-            
-            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
-        }
-    }
-     
-    /**
-     * This method passes the view's request to update diversions for a
-     * CMS on to the remote Coordinator.
-     * 
+        } catch (RemoteException re)
+        {
+            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel",
+                    "getCMSDiversionInfo", "Unable to communicate with the "
+                    + "CAD Simulator.", re);
+
+            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
+        }
+    }
+
+    /**
+     * This method passes the view's request to update diversions for a CMS on
+     * to the remote Coordinator.
+     *
      * @param diversion CMS diversions information to apply.
-     * @throws SimulationException if there is an error in RMI communication to the CAD Simulator.
-     */
-    public void applyDiversions(CMSInfo diversion) throws SimulationException {
-        
-        try {
+     * @throws SimulationException if there is an error in RMI communication to
+     * the CAD Simulator.
+     */
+    public void applyDiversions(CMSInfo diversion) throws SimulationException
+    {
+
+        try
+        {
             theCoorInt.applyDiversions(diversion);
 
-        } catch (RemoteException re) {
-            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel", 
-                    "applyDiversions", "Unable to communicate with the " +
-                    "CAD Simulator.", re);
-            
-            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
-        }
-    }
-    
-    /**
-     * This method loads the current list of incidents from the Coordinator into the
-     * SimulationManager.  For each incident in the simulation, notify the view to
-     * add a new incident tab.  If the Incident has begun in the simulation, 
-     * call the incidentStarted() method to update the view accordingly.
-     * 
-     * @throws SimulationException if there is an error in RMI communication to the CAD Simulator.
-     */ 
-    private void loadIncidents() throws SimulationException {       
-        
-        try {           
-            for(Incident inc : theCoorInt.getIncidentList()) {
-    
+        } catch (RemoteException re)
+        {
+            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel",
+                    "applyDiversions", "Unable to communicate with the "
+                    + "CAD Simulator.", re);
+
+            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
+        }
+    }
+
+    /**
+     * This method loads the current list of incidents from the Coordinator into
+     * the SimulationManager. For each incident in the simulation, notify the
+     * view to add a new incident tab. If the Incident has begun in the
+     * simulation, call the incidentStarted() method to update the view
+     * accordingly.
+     *
+     * @throws SimulationException if there is an error in RMI communication to
+     * the CAD Simulator.
+     */
+    private void loadIncidents() throws SimulationException
+    {
+
+        try
+        {
+            for (Incident inc : theCoorInt.getIncidentList())
+            {
+
                 Integer logNum = new Integer(inc.getLogNumber());
-                
+
                 theSimManagerView.addIncidentTab(logNum);
                 theSimManagerView.addIncident(inc);
-            
-                if(inc.getSecondsToStart() < theCoorInt.getCurrentSimulationTime()) {
+
+                if (inc.getSecondsToStart() < theCoorInt.getCurrentSimulationTime())
+                {
                     incidentStarted(logNum);
                 }
             }
-        } catch (RemoteException re) {
-            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel", 
-                    "loadIncidentListTable", "Unable to communicate with the " +
-                    "CAD Simulator.", re);
-            
-            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
-        }
-        
-    }
-    
-
+        } catch (RemoteException re)
+        {
+            simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel",
+                    "loadIncidentListTable", "Unable to communicate with the "
+                    + "CAD Simulator.", re);
+
+            throw new SimulationException(SimulationException.CAD_SIM_COMM, re);
+        }
+
+    }
 }
Index: trunk/src/tmcsim/simulationmanager/actions/LoadScriptAction.java
===================================================================
--- trunk/src/tmcsim/simulationmanager/actions/LoadScriptAction.java	(revision 2)
+++ trunk/src/tmcsim/simulationmanager/actions/LoadScriptAction.java	(revision 6)
@@ -54,4 +54,5 @@
                     try{ 
                         theSimManagerView.getModel().loadScript(selectedFile);
+                        theSimManagerView.setTitle("Simulation Manager: " + selectedFile.getName());
                     }
                     catch (ScriptException se) {
