Changeset 128 in tmcsimulator for trunk/src/atmsdriver/model


Ignore:
Timestamp:
10/17/2017 09:11:22 AM (9 years ago)
Author:
jdalbey
Message:

ATMSBatchDriver.java Added a GUI to display event queue. Highways.java modified to throw an exception when writeToFEP can't connect to FEP_Sim.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/atmsdriver/model/Highways.java

    r127 r128  
    2727import org.w3c.dom.Document; 
    2828import org.w3c.dom.Element; 
     29import tmcsim.common.SimulationException; 
    2930 
    3031/** The Highways class aggregates all Highway instances within a geographic 
     
    209210     */ 
    210211 
    211     public void writeToFEP() { 
     212    public void writeToFEP() throws SimulationException { 
    212213        try { 
    213214            Socket sock = new Socket(FEPHostName /*"192.168.251.130"*/, 8080); 
     
    218219            Logger.getLogger(Highways.class.getName()).log(Level.SEVERE, null, ex); 
    219220            System.out.println("Highway Model failed writing to FEPSim."); 
     221            throw new SimulationException(SimulationException.BINDING); 
    220222        } 
    221223    } 
Note: See TracChangeset for help on using the changeset viewer.