Changeset 422 in tmcsimulator for trunk/src/atmsdriver
- Timestamp:
- 06/23/2019 10:27:35 AM (7 years ago)
- Location:
- trunk/src/atmsdriver
- Files:
-
- 6 edited
-
ConsoleTrafficDriver.java (modified) (3 diffs)
-
GoogleMapAnimator.java (modified) (2 diffs)
-
TrafficEventsAnimator.java (modified) (2 diffs)
-
trafficeventseditor/TimeFrames.java (modified) (3 diffs)
-
trafficeventseditor/TrafficEventsEditor.java (modified) (1 diff)
-
trafficeventseditor/TrafficLaneEvent.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/atmsdriver/ConsoleTrafficDriver.java
r255 r422 1 1 package atmsdriver; 2 2 3 import atmsdriver.model.Highways;4 import atmsdriver.model.Station.DIRECTION;5 import atmsdriver.model.Highway;6 import atmsdriver.model.Station;7 import atmsdriver.model.LoopDetector.DOTCOLOR;3 import tmcsim.highwaymodel.Highways; 4 import tmcsim.highwaymodel.Station.DIRECTION; 5 import tmcsim.highwaymodel.Highway; 6 import tmcsim.highwaymodel.Station; 7 import tmcsim.highwaymodel.LoopDetector.DOTCOLOR; 8 8 import java.io.FileInputStream; 9 9 import java.util.ArrayList; … … 49 49 // Create the Highway Model 50 50 Highways highways = new Highways( 51 "config/vds_data/highways_fullmap.txt", 52 ConsoleDriverProperties.getProperty( 53 "FEPWriterHost"), 54 Integer.parseInt(ConsoleDriverProperties.getProperty( 55 "FEPWriterPort"))); 51 "config/vds_data/highways_fullmap.txt"); 56 52 57 53 // Construct the console driver using the highways model … … 139 135 { 140 136 // Send highway model to FEP for transmit to ATMS 141 try { 142 highways.writeToFEP(); 143 } catch (SimulationException ex) { 144 System.out.println("Skipping writeToFEP..."); 145 } 137 highways.toJson(); 146 138 System.out.println("Add another entry or Quit? (A/Q)"); 147 139 choice = sc.next().toUpperCase().trim().charAt(0); -
trunk/src/atmsdriver/GoogleMapAnimator.java
r340 r422 1 1 package atmsdriver; 2 2 3 import atmsdriver.model.Highways;4 import atmsdriver.model.TrafficEvent;3 import tmcsim.highwaymodel.Highways; 4 import tmcsim.highwaymodel.TrafficEvent; 5 5 import java.io.FileInputStream; 6 6 import java.io.FileNotFoundException; … … 67 67 incidents = new HashMap<String, List<TrafficEvent>>(); 68 68 highways = new Highways( 69 "config/vds_data/highways_fullmap.txt", 70 // following aren't used by this application 71 "localhost", 8080); 69 "config/vds_data/highways_fullmap.txt"); 72 70 final String CONFIG_FILE_NAME = "traffic_model_config.properties"; 73 71 String propertiesFile = "config" + System.getProperty("file.separator") -
trunk/src/atmsdriver/TrafficEventsAnimator.java
r246 r422 1 1 package atmsdriver; 2 2 3 import atmsdriver.model.Highways;4 import atmsdriver.model.TrafficEvent;3 import tmcsim.highwaymodel.Highways; 4 import tmcsim.highwaymodel.TrafficEvent; 5 5 import java.io.FileInputStream; 6 6 import java.io.FileNotFoundException; … … 66 66 incidents = new HashMap<String, List<TrafficEvent>>(); 67 67 highways = new Highways( 68 "config/vds_data/highways_fullmap.txt", 69 // following aren't used by this application 70 "localhost", 8080); 68 "config/vds_data/highways_fullmap.txt"); 71 69 final String CONFIG_FILE_NAME = "traffic_model_config.properties"; 72 70 String propertiesFile = "config" + System.getProperty("file.separator") -
trunk/src/atmsdriver/trafficeventseditor/TimeFrames.java
r240 r422 1 /* 2 * To change this license header, choose License Headers in Project Properties. 3 * To change this template file, choose Tools | Templates 4 * and open the template in the editor. 5 */ 1 6 2 package atmsdriver.trafficeventseditor; 7 3 8 import atmsdriver.model.Highway;9 import atmsdriver.model.Highways;10 import atmsdriver.model.LoopDetector;11 import atmsdriver.model.LoopDetector.DOTCOLOR;12 import atmsdriver.model.Station;4 import tmcsim.highwaymodel.Highway; 5 import tmcsim.highwaymodel.Highways; 6 import tmcsim.highwaymodel.LoopDetector; 7 import tmcsim.highwaymodel.LoopDetector.DOTCOLOR; 8 import tmcsim.highwaymodel.Station; 13 9 import java.util.ArrayList; 14 10 import java.util.List; … … 35 31 { 36 32 frames = new ArrayList<>(); 37 highways = new Highways("./config/vds_data/highways_fullmap.txt", 38 "192.168.251.46", 8080); 33 highways = new Highways("./config/vds_data/postmile_coordinates.txt"); 39 34 } 40 35 … … 194 189 void writeToFEP() 195 190 { 196 try 197 { 198 highways.writeToFEP(); 199 } 200 catch (SimulationException ex) 201 { 202 System.out.println("writeToFEP() failed"); 203 } 191 highways.toJson(); 204 192 } 205 193 -
trunk/src/atmsdriver/trafficeventseditor/TrafficEventsEditor.java
r343 r422 1 1 package atmsdriver.trafficeventseditor; 2 2 3 import atmsdriver.model.Highway;4 import atmsdriver.model.LoopDetector;5 import atmsdriver.model.LoopDetector.DOTCOLOR;6 import atmsdriver.model.Station;3 import tmcsim.highwaymodel.Highway; 4 import tmcsim.highwaymodel.LoopDetector; 5 import tmcsim.highwaymodel.LoopDetector.DOTCOLOR; 6 import tmcsim.highwaymodel.Station; 7 7 import timeselector.*; 8 8 import java.io.File; -
trunk/src/atmsdriver/trafficeventseditor/TrafficLaneEvent.java
r238 r422 1 1 package atmsdriver.trafficeventseditor; 2 2 3 import atmsdriver.model.LoopDetector;4 import atmsdriver.model.LoopDetector.DOTCOLOR;5 import atmsdriver.model.Station;3 import tmcsim.highwaymodel.LoopDetector; 4 import tmcsim.highwaymodel.LoopDetector.DOTCOLOR; 5 import tmcsim.highwaymodel.Station; 6 6 7 7 /**
Note: See TracChangeset
for help on using the changeset viewer.
