- Timestamp:
- 04/09/2019 03:46:18 PM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 1 added
- 2 edited
-
spikes/ShowUserDir.java (added)
-
tmcsim/application.properties (modified) (1 diff)
-
tmcsim/cadsimulator/CADServer.java (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tmcsim/application.properties
r356 r360 1 #Thu, 04 Apr 2019 1 1:09:39-07001 #Thu, 04 Apr 2019 15:32:24 -0700 2 2 3 Application.revision=35 53 Application.revision=356 4 4 5 Application.buildnumber=1 195 Application.buildnumber=121 -
trunk/src/tmcsim/cadsimulator/CADServer.java
r355 r360 181 181 * Properties file for the CADSimulator. 182 182 */ 183 private Properties cadS imulatorProperties;183 private Properties cadServerProperties; 184 184 185 185 /** … … 199 199 try 200 200 { 201 cadS imulatorProperties = new Properties();202 cadS imulatorProperties.load(new FileInputStream(propertiesFile));201 cadServerProperties = new Properties(); 202 cadServerProperties.load(new FileInputStream(propertiesFile)); 203 203 cadSimLogger.logp(Level.INFO, "CADSimulator", "Constructor", 204 204 "Properties loaded from " + propertiesFile); … … 219 219 { 220 220 String userInterfaceName = 221 cadS imulatorProperties.getProperty(221 cadServerProperties.getProperty( 222 222 CAD_PROPERTIES.USER_INTERFACE.name); 223 223 if (userInterfaceName == null) … … 244 244 245 245 startRegistry(Integer.parseInt( 246 cadS imulatorProperties.getProperty(246 cadServerProperties.getProperty( 247 247 CAD_PROPERTIES.COOR_RMI_PORT.name).trim())); 248 248 startRegistry(Integer.parseInt( 249 cadS imulatorProperties.getProperty(249 cadServerProperties.getProperty( 250 250 CAD_PROPERTIES.CAD_RMI_PORT.name).trim())); 251 251 … … 253 253 254 254 theATMSMgr = new ATMSManager( 255 cadS imulatorProperties.getProperty(255 cadServerProperties.getProperty( 256 256 CAD_PROPERTIES.ATMS_PROP_FILE.name)); 257 257 258 258 theTrafficMgr = new TrafficModelManager( 259 cadS imulatorProperties.getProperty(259 cadServerProperties.getProperty( 260 260 CAD_PROPERTIES.TRAFFICMGR_PROP_FILE.name), 261 261 theCoordinator); … … 264 264 265 265 theMediaMgr = new MediaManager( 266 cadS imulatorProperties.getProperty(266 cadServerProperties.getProperty( 267 267 CAD_PROPERTIES.MEDIA_PROP_FILE.name), 268 268 theATMSMgr, theModel); 269 269 270 270 theParamicsSimMgr = new ParamicsSimulationManager( 271 cadS imulatorProperties.getProperty(271 cadServerProperties.getProperty( 272 272 CAD_PROPERTIES.PARAMICS_PROP_FILE.name), 273 273 theCoordinator, theMediaMgr); 274 274 275 275 theSoundPlayer = new SoundPlayer( 276 cadS imulatorProperties.getProperty(276 cadServerProperties.getProperty( 277 277 CAD_PROPERTIES.AUDIO_LOCATION.name)); 278 278 theSoundPlayer.start(); … … 283 283 //Begin accepting Client connections 284 284 CADSimulatorSocketHandler tmsh = new CADSimulatorSocketHandler( 285 Integer.parseInt(cadS imulatorProperties.getProperty(285 Integer.parseInt(cadServerProperties.getProperty( 286 286 CAD_PROPERTIES.CLIENT_PORT.name).trim())); 287 287 tmsh.start(); … … 297 297 try 298 298 { 299 if (cadS imulatorProperties.getProperty(299 if (cadServerProperties.getProperty( 300 300 CAD_PROPERTIES.CMS_XML_FILE.name) != null) 301 301 { 302 302 CMSDiversionDB.getInstance().loadFromXML( 303 303 DocumentBuilderFactory.newInstance().newDocumentBuilder() 304 .parse(new File(cadS imulatorProperties.getProperty(304 .parse(new File(cadServerProperties.getProperty( 305 305 CAD_PROPERTIES.CMS_XML_FILE.name)))); 306 306 } … … 311 311 312 312 JOptionPane.showMessageDialog(new JWindow(), "Unable to open " 313 + cadS imulatorProperties.getProperty(CAD_PROPERTIES.CMS_XML_FILE.name),313 + cadServerProperties.getProperty(CAD_PROPERTIES.CMS_XML_FILE.name), 314 314 "Initialization Error", JOptionPane.WARNING_MESSAGE); 315 315 }
Note: See TracChangeset
for help on using the changeset viewer.
