Changeset 128 in tmcsimulator for trunk/src/atmsdriver
- Timestamp:
- 10/17/2017 09:11:22 AM (9 years ago)
- Location:
- trunk/src/atmsdriver
- Files:
-
- 3 edited
-
ATMSDriver.java (modified) (2 diffs)
-
ConsoleDriver.java (modified) (2 diffs)
-
model/Highways.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/atmsdriver/ATMSDriver.java
r103 r128 6 6 import java.util.logging.Level; 7 7 import java.util.logging.Logger; 8 import tmcsim.common.SimulationException; 8 9 9 10 /** … … 73 74 .getProperty(PROPERTIES.EXCHANGE_FILE_NAME.name)); 74 75 75 highways.writeToFEP(); 76 try { 77 highways.writeToFEP(); 78 } catch (SimulationException ex) { 79 System.out.println("Skipping writeToFEP..."); 80 } 76 81 // Update if exchangeInfo is recieved 77 82 if (exInfo != null) { -
trunk/src/atmsdriver/ConsoleDriver.java
r127 r128 13 13 import java.util.logging.Level; 14 14 import java.util.logging.Logger; 15 import tmcsim.common.SimulationException; 15 16 16 17 /** … … 198 199 } 199 200 System.out.println(""); 200 highways.writeToFEP(); 201 try { 202 highways.writeToFEP(); 203 } catch (SimulationException ex) { 204 System.out.println("Skipping writeToFEP..."); 205 } 201 206 } 202 207 -
trunk/src/atmsdriver/model/Highways.java
r127 r128 27 27 import org.w3c.dom.Document; 28 28 import org.w3c.dom.Element; 29 import tmcsim.common.SimulationException; 29 30 30 31 /** The Highways class aggregates all Highway instances within a geographic … … 209 210 */ 210 211 211 public void writeToFEP() {212 public void writeToFEP() throws SimulationException { 212 213 try { 213 214 Socket sock = new Socket(FEPHostName /*"192.168.251.130"*/, 8080); … … 218 219 Logger.getLogger(Highways.class.getName()).log(Level.SEVERE, null, ex); 219 220 System.out.println("Highway Model failed writing to FEPSim."); 221 throw new SimulationException(SimulationException.BINDING); 220 222 } 221 223 }
Note: See TracChangeset
for help on using the changeset viewer.
