Changeset 238 in tmcsimulator for trunk/src/atmsdriver/trafficeventseditor/TimeFrames.java
- Timestamp:
- 12/20/2017 02:00:12 AM (8 years ago)
- Location:
- trunk/src/atmsdriver/trafficeventseditor
- Files:
-
- 1 added
- 1 copied
-
. (added)
-
TimeFrames.java (copied) (copied from trunk/src/atmsdriver/batchbuilder/TimeFrames.java) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/atmsdriver/trafficeventseditor/TimeFrames.java
r237 r238 4 4 * and open the template in the editor. 5 5 */ 6 package atmsdriver. batchbuilder;6 package atmsdriver.trafficeventseditor; 7 7 8 8 import atmsdriver.model.Highway; … … 36 36 frames = new ArrayList<>(); 37 37 highways = new Highways("./config/vds_data/highways_fullmap.txt", 38 " localhost", 8080);38 "192.168.251.46", 8080); 39 39 } 40 40 … … 170 170 { 171 171 highways.reset(); 172 List<TrafficLaneEvent> events = currentTimeFrame.events; 173 for(TrafficLaneEvent event : events) 172 for(TrafficLaneEvent event : currentTimeFrame.events) 174 173 { 175 174 if(event.station.equals(currentStation)) … … 202 201 } 203 202 } 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 */ 204 243 }
Note: See TracChangeset
for help on using the changeset viewer.
