Changeset 176 in tmcsimulator for trunk/src


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.

Location:
trunk/src
Files:
4 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; 
  • trunk/src/atmsdriver/model/Highways.java

    r170 r176  
    222222            throw new SimulationException(SimulationException.BINDING); 
    223223        } 
     224        updateSequences(); 
    224225    } 
    225226 
  • trunk/src/atmsdriver/model/LoopDetector.java

    r118 r176  
    2323    /* dynamic data */ 
    2424    public int vol; 
    25     public int occ; 
     25    public float occ; 
    2626    private int spd; 
    2727     
     
    8383     * @param spd speed 
    8484     */ 
    85     public void updateLoop(int vol, int occ, int spd) 
     85    public void updateLoop(int vol, float occ, int spd) 
    8686    { 
    8787        this.vol = vol; 
  • trunk/src/tmcsim/application.properties

    r174 r176  
    1 #Tue, 24 Oct 2017 11:31:18 -0700 
     1#Tue, 24 Oct 2017 14:59:28 -0700 
    22 
    3 Application.revision=173 
     3Application.revision=174 
    44 
    5 Application.buildnumber=53 
     5Application.buildnumber=57 
Note: See TracChangeset for help on using the changeset viewer.