Changeset 145 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/structures/CadData.java


Ignore:
Timestamp:
11/04/2019 08:14:32 AM (6 years ago)
Author:
sdanthin
Message:

Move from Git to Svn (LARGE COMMIT)

File:
1 edited

Legend:

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

    r143 r145  
    1515        locInfo = new ArrayList<Location_Info>(); 
    1616    } 
     17     
     18    /** 
     19     * Constructor to add type and location, where TruncLoc is the first 5 letters of the fullloc. 
     20     * @param Header_Type 
     21     * @param Header_FullLoc  
     22     */ 
     23    public CadData(String Header_Type, String Header_FullLoc) 
     24    { 
     25        this.Header_Type = Header_Type; 
     26        this.Header_FullLoc = Header_FullLoc; 
     27//        if(Header_FullLoc.length()>10) 
     28//        { 
     29//            this.Header_TruncLoc = Header_FullLoc.substring(0,9); 
     30//        } 
     31        this.Header_TruncLoc = Header_FullLoc; 
     32        locInfo = new ArrayList<Location_Info>(); 
     33    } 
    1734 
    1835    public TimeSlice tSlice; 
    1936 
    20     public String Header_Type = "DEFAULT"; 
     37    public String Header_Type = ""; 
    2138 
    2239    public String Header_Beat = ""; 
    2340 
    24     public String Header_TruncLoc = "Default Location (short)"; 
    25  
    26     public String Header_FullLoc = "Default Location (long)"; 
     41    public String Header_TruncLoc = ""; 
     42 
     43    public String Header_FullLoc = ""; 
    2744 
    2845    public String Master_Inc_Num = ""; 
     
    134151        } 
    135152 
    136         if (hasHeaderInfo() || true) //checking to see if header info is always necessary 
    137         { 
     153        if (hasHeaderInfo()) //checking to see if header info is always necessary 
     154        { 
     155            //todo: make this logic trigger only once per incident 
    138156            output += XMLWriter.openTag(ELEMENT.HEADER_INFO.tag); 
    139157 
Note: See TracChangeset for help on using the changeset viewer.