Changeset 12 in tmcsimulator-scriptbuilder


Ignore:
Timestamp:
07/26/2017 02:47:10 PM (9 years ago)
Author:
bmcguffin
Message:

Added a variable to track total number of events in the incident.

Removed an offset value from the output of the updateLength() function that I forgot to remove when I was writing it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/scriptbuilder/structures/ScriptIncident.java

    r9 r12  
    6666     */ 
    6767    private int latestStart = 0; 
     68     
     69    /** 
     70     * Number of events in this incident. 
     71     */ 
     72    public int eventCount = 0; 
    6873 
    6974    SimulationScript script; 
     
    175180            t.addEvent(ev); 
    176181        } 
     182        eventCount++; 
     183         
    177184        if (start > latestStart) 
    178185        { 
     
    227234            } 
    228235        } 
    229         length = lengthSoFar + 100; 
     236        length = lengthSoFar; 
    230237    } 
    231238 
Note: See TracChangeset for help on using the changeset viewer.