Changeset 664 in tmcsimulator for trunk/src/tmcsim/simulationmanager/SimulationManager.java
- Timestamp:
- 09/14/2022 03:31:54 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tmcsim/simulationmanager/SimulationManager.java
r658 r664 22 22 * communicator and applying diversions. A history of all events is shown as 23 23 * well.<br> 24 * The SimulationManager may be started at any point before, during, or after a25 * simulation has begun. The SimulationManager connects to the CADSimulator and24 * The CADServer must be running before the SimulationManager is started. 25 * SimulationManager connects to the CADServer and 26 26 * communicates through Java RMI methods. If two SimulationManagers are started, 27 27 * the second one started, chronologically, will receive communication from the 28 * CADSimulator. <br><br> 29 * The properties file for the SimulationManager class contains the following 30 * data.<br> 31 * <code> 32 * -----------------------------------------------------------------------------<br> 33 * Host Name The host name where the CADSimulator is located.<br> 34 * Error File The target file to use for error logging.<br> 35 * -----------------------------------------------------------------------------<br> 36 * Example File: <br> 37 * CADSimulatorHost = localhost <br> 38 * ErrorFile = sim_mgr_error.xml <br> 39 * -----------------------------------------------------------------------------<br> 40 * </code> 28 * CADServer. (It's a bad idea to do this, there's no normal use case 29 * that requires it.)<br><br> 41 30 * 42 31 * @author Matthew Cechini (mcechini@calpoly.edu) … … 46 35 { 47 36 48 private static final String CONFIG_FILE_NAME = "sim_manager _config.properties";37 private static final String CONFIG_FILE_NAME = "sim_manager.properties"; 49 38 /* 50 39 * Default name of folder that contains Scenario xml files. … … 65 54 { 66 55 67 CAD_S IM_HOST("CADSimulatorHost"),68 CAD_S IM_PORT("CADSimulatorRMIPort"),56 CAD_SERVER_HOST("CADServerHost"), 57 CAD_SERVER_PORT("CADServerRMIPort"), 69 58 SCENARIOS_DIR("ScenariosDir"), 70 59 FAKE_PARAMICS("FakeParamicsConnection"); … … 116 105 117 106 //make sure properties aren't null 118 if (simManagerProperties.getProperty(PROPERTIES.CAD_S IM_HOST.name) == null)107 if (simManagerProperties.getProperty(PROPERTIES.CAD_SERVER_HOST.name) == null) 119 108 { 120 109 throw new Exception("CAD Simulator host property is null."); 121 110 } 122 111 123 if (simManagerProperties.getProperty(PROPERTIES.CAD_S IM_PORT.name) == null)112 if (simManagerProperties.getProperty(PROPERTIES.CAD_SERVER_PORT.name) == null) 124 113 { 125 114 throw new Exception("CAD Simulator port property is null."); … … 138 127 { 139 128 theSimManagerModel = new SimulationManagerModel( 140 simManagerProperties.getProperty(PROPERTIES.CAD_S IM_HOST.name).trim(),141 simManagerProperties.getProperty(PROPERTIES.CAD_S IM_PORT.name).trim());129 simManagerProperties.getProperty(PROPERTIES.CAD_SERVER_HOST.name).trim(), 130 simManagerProperties.getProperty(PROPERTIES.CAD_SERVER_PORT.name).trim()); 142 131 143 132 //Construct the SimulationManagerView and set up the Model-View references.
Note: See TracChangeset
for help on using the changeset viewer.
