Changeset 176 in tmcsimulator for trunk/src/atmsdriver/ConsoleDriver.java


Ignore:
Timestamp:
10/24/2017 02:07:02 PM (9 years ago)
Author:
jtorres
Message:

Highways.java, LoopDetector?.java: updateByDirection() methods now take float occ value. ConsoleDriver?.java: DOTCOLOR enum now contains valid vol and occ values. atmsBatchEvents.txt: updated to fullBatchEvents script.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/atmsdriver/ConsoleDriver.java

    r161 r176  
    423423    public static enum DOTCOLOR { 
    424424 
    425         RED(10,10), 
    426         YELLOW(30,20), // speed = 26 
     425        RED(1, 0.06f), 
     426        YELLOW(3,0.059f), // speed = 26 
    427427        GREEN(0,0); 
    428428         
     
    431431         
    432432        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) 
    436436        { 
    437437            vol = v; 
     
    451451            return vol; 
    452452        } 
    453         public int occupancy() 
     453        public float occupancy() 
    454454        { 
    455455            return occ; 
Note: See TracChangeset for help on using the changeset viewer.