Ignore:
Timestamp:
12/20/2017 02:00:12 AM (8 years ago)
Author:
jtorres
Message:

Renamed BatchBuilderGUI to TrafficEventsEditor?. Reconfigured GUI per JD's suggestions.

Location:
trunk/src/atmsdriver/trafficeventseditor
Files:
1 added
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/atmsdriver/trafficeventseditor/TimeFrames.java

    r237 r238  
    44 * and open the template in the editor. 
    55 */ 
    6 package atmsdriver.batchbuilder; 
     6package atmsdriver.trafficeventseditor; 
    77 
    88import atmsdriver.model.Highway; 
     
    3636        frames = new ArrayList<>(); 
    3737        highways = new Highways("./config/vds_data/highways_fullmap.txt",  
    38                 "localhost", 8080); 
     38                "192.168.251.46", 8080); 
    3939    } 
    4040     
     
    170170    { 
    171171        highways.reset(); 
    172         List<TrafficLaneEvent> events = currentTimeFrame.events; 
    173         for(TrafficLaneEvent event : events) 
     172        for(TrafficLaneEvent event : currentTimeFrame.events) 
    174173        { 
    175174            if(event.station.equals(currentStation)) 
     
    202201        } 
    203202    } 
     203 
     204    void cumulativePreviewStation() 
     205    { 
     206        highways.reset(); 
     207        for(TimeFrame tf : frames) 
     208        { 
     209            for(TrafficLaneEvent e : tf.events) 
     210            { 
     211                if(e.station.equals(currentStation)) 
     212                { 
     213                    highways.applyTrafficLaneEvent(e); 
     214                } 
     215            } 
     216             
     217            if(tf.equals(currentTimeFrame)) 
     218                break; 
     219        } 
     220        writeToFEP(); 
     221    } 
     222 
     223    void cumulativePreviewHighways() 
     224    { 
     225        highways.reset(); 
     226        for(TimeFrame tf : frames) 
     227        { 
     228            for(TrafficLaneEvent e : tf.events) 
     229            { 
     230                highways.applyTrafficLaneEvent(e); 
     231            } 
     232    
     233            if(tf.equals(currentTimeFrame)) 
     234                break; 
     235        } 
     236        writeToFEP(); 
     237    } 
     238     
     239    /*String getBatchScript() 
     240    { 
     241        StringBuilder build = new StringBuilder(); 
     242    */ 
    204243} 
Note: See TracChangeset for help on using the changeset viewer.