Changeset 123 in tmcsimulator for trunk/src/tmcsim/simulationmanager


Ignore:
Timestamp:
10/15/2017 03:59:42 PM (9 years ago)
Author:
jdalbey
Message:

Multiple renaming of classes to improve clarity. Remove check for Paramics running before starting sim.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tmcsim/simulationmanager/actions/StartSimulationAction.java

    r2 r123  
    1212/** 
    1313 * StartSimulationAction is an AbstractAction that is used for starting 
    14  * the simulation. When the action is performed, the action checks 
    15  * whether the a connection has been made to Paramics.  If not, the user 
    16  * is prompted whether they want to continue without a connection to Paramics. 
    17  * If not, the action returns.  If there is a connection, or the user wishes to 
    18  * continue without, the action calls the SimulationManagerModel to start the  
     14 * the simulation. When the action is performed,  
     15 * the action calls the SimulationManagerModel to start the  
    1916 * simulation. 
    2017 * @author Matthew Cechini 
     
    3835    public void actionPerformed(ActionEvent evt) { 
    3936        Runnable startRunnable = new Runnable(){         
    40             public void run() {              
    41                 if(!theSimManagerView.isConnectedToParamics()) { 
    42                     if (JOptionPane.showConfirmDialog(null, "Connection has not been " + 
    43                             "made to the Paramics Traffic Modeler.  Do you wish " + 
    44                             "to continue?", "Paramics Connection",  
    45                             JOptionPane.YES_NO_OPTION,  
    46                             JOptionPane.QUESTION_MESSAGE) == JOptionPane.NO_OPTION) { 
    47                                 return; 
    48                             } 
    49                 } 
     37            public void run()  
     38            { 
     39                // Remove this check because Paramics is no longer used as of 2017 
     40//                if(!theSimManagerView.isConnectedToParamics()) { 
     41//                    if (JOptionPane.showConfirmDialog(null, "Connection has not been " + 
     42//                            "made to the Paramics Traffic Modeler.  Do you wish " + 
     43//                            "to continue?", "Paramics Connection",  
     44//                            JOptionPane.YES_NO_OPTION,  
     45//                            JOptionPane.QUESTION_MESSAGE) == JOptionPane.NO_OPTION) { 
     46//                                return; 
     47//                            } 
     48//                } 
    5049                 
    5150                try {  
Note: See TracChangeset for help on using the changeset viewer.