Changeset 176 in tmcsimulator for trunk/src/atmsdriver
- Timestamp:
- 10/24/2017 02:07:02 PM (9 years ago)
- Location:
- trunk/src/atmsdriver
- Files:
-
- 3 edited
-
ConsoleDriver.java (modified) (3 diffs)
-
model/Highways.java (modified) (1 diff)
-
model/LoopDetector.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/atmsdriver/ConsoleDriver.java
r161 r176 423 423 public static enum DOTCOLOR { 424 424 425 RED(1 0,10),426 YELLOW(3 0,20), // speed = 26425 RED(1, 0.06f), 426 YELLOW(3,0.059f), // speed = 26 427 427 GREEN(0,0); 428 428 … … 431 431 432 432 private int vol; /* volume */ 433 private int occ; /* occupancy */434 435 private DOTCOLOR(int v, int o)433 private float occ; /* occupancy */ 434 435 private DOTCOLOR(int v, float o) 436 436 { 437 437 vol = v; … … 451 451 return vol; 452 452 } 453 public int occupancy()453 public float occupancy() 454 454 { 455 455 return occ; -
trunk/src/atmsdriver/model/Highways.java
r170 r176 222 222 throw new SimulationException(SimulationException.BINDING); 223 223 } 224 updateSequences(); 224 225 } 225 226 -
trunk/src/atmsdriver/model/LoopDetector.java
r118 r176 23 23 /* dynamic data */ 24 24 public int vol; 25 public int occ;25 public float occ; 26 26 private int spd; 27 27 … … 83 83 * @param spd speed 84 84 */ 85 public void updateLoop(int vol, int occ, int spd)85 public void updateLoop(int vol, float occ, int spd) 86 86 { 87 87 this.vol = vol;
Note: See TracChangeset
for help on using the changeset viewer.
