Changeset 47 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/structures/ScriptEvent.java


Ignore:
Timestamp:
08/08/2017 09:36:51 AM (9 years ago)
Author:
bmcguffin
Message:

Updated toXML behaviors for several classes to bring final adjustments in line with desired output.

File:
1 edited

Legend:

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

    r46 r47  
    2828        return this.type.compareTo(o.type); 
    2929    } 
    30      
     30 
    3131    @Override 
    3232    public int getLength() 
     
    4242    public static enum ScriptEventType 
    4343    { 
     44 
    4445        CAD_EVENT("CAD"), 
    4546        UNIT_EVENT("Unit"), 
     47        TOW_EVENT("Tow"), 
     48        WITNESS_EVENT("Witness"), 
    4649        AUDIO_EVENT("Audio"), 
    4750        CCTV_EVENT("CCTV"), 
    4851        CHP_RADIO_EVENT("CHPRadio"), 
    4952        PARAMICS_EVENT("Paramics"), 
    50         TOW_EVENT("Tow"), 
    51         WITNESS_EVENT("Witness"), 
    5253        TELEPHONE_EVENT("Telephone"), 
    53         MAINTENANCE_RADIO_EVENT("MaintenanceRadio"), 
    54         TMT_RADIO_EVENT("TMTRadio"), 
    5554        CAD_EVAL_EVENT("CADEval"), 
    5655        ATMS_EVAL_EVENT("ATMSEval"), 
     
    5857        ACTIVITY_LOG_EVAL_EVENT("ActivityLogEval"), 
    5958        FACILITATOR_EVAL_EVENT("FacilitatorEval"), 
    60         RADIO_EVAL_EVENT("RadioEval"); 
     59        RADIO_EVAL_EVENT("RadioEval"), 
     60        MAINTENANCE_RADIO_EVENT("MaintenanceRadio"), 
     61        TMT_RADIO_EVENT("TMTRadio"); 
    6162 
    6263        /** 
     
    128129        return this.type.toString() + " - [Event Description]"; 
    129130    } 
    130      
     131 
    131132    public static I_ScriptEvent factoryByType(ScriptEventType t) 
    132133    { 
    133         switch(t) 
     134        switch (t) 
    134135        { 
    135136            case AUDIO_EVENT: 
     
    169170            default: 
    170171                return new TelephoneEvent(); 
    171         }             
     172        } 
    172173    } 
    173174} 
Note: See TracChangeset for help on using the changeset viewer.