Changeset 203 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/structures/events
- Timestamp:
- 02/01/2020 04:18:21 PM (6 years ago)
- Location:
- trunk/src/scriptbuilder/structures/events
- Files:
-
- 17 edited
-
ATMSEvaluationEvent.java (modified) (3 diffs)
-
ActivityLogEvaluationEvent.java (modified) (3 diffs)
-
AudioEvent.java (modified) (2 diffs)
-
CADEvaluationEvent.java (modified) (3 diffs)
-
CADEvent.java (modified) (2 diffs)
-
CCTVEvent.java (modified) (1 diff)
-
CHPRadioEvent.java (modified) (2 diffs)
-
CMSEvaluationEvent.java (modified) (3 diffs)
-
FacilitatorEvaluationEvent.java (modified) (3 diffs)
-
MaintenanceRadioEvent.java (modified) (2 diffs)
-
ParamicsEvent.java (modified) (2 diffs)
-
RadioEvaluationEvent.java (modified) (3 diffs)
-
TMTRadioEvent.java (modified) (2 diffs)
-
TelephoneEvent.java (modified) (2 diffs)
-
TowEvent.java (modified) (2 diffs)
-
UnitEvent.java (modified) (2 diffs)
-
WitnessEvent.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/structures/events/ATMSEvaluationEvent.java
r76 r203 10 10 import scriptbuilder.structures.I_XML_Writable; 11 11 import scriptbuilder.structures.ScriptEvent; 12 import scriptbuilder.structures.XML Writer;12 import scriptbuilder.structures.XMLBuilder; 13 13 14 14 /** … … 60 60 public String toXML() 61 61 { 62 String output = XML Writer.openTag(ELEMENT.ATMS_EVALUATION.tag);62 String output = XMLBuilder.openTag(ELEMENT.ATMS_EVALUATION.tag); 63 63 if (expectedAction != null) 64 64 { … … 69 69 str = ""; 70 70 } 71 output += XML Writer.simpleTag(str, ELEMENT.EXPECTED_ACTION);71 output += XMLBuilder.simpleTag(str, ELEMENT.EXPECTED_ACTION); 72 72 } 73 73 } 74 output += XML Writer.closeTag(ELEMENT.ATMS_EVALUATION.tag);74 output += XMLBuilder.closeTag(ELEMENT.ATMS_EVALUATION.tag); 75 75 76 76 return output; -
trunk/src/scriptbuilder/structures/events/ActivityLogEvaluationEvent.java
r76 r203 10 10 import scriptbuilder.structures.I_XML_Writable; 11 11 import scriptbuilder.structures.ScriptEvent; 12 import scriptbuilder.structures.XML Writer;12 import scriptbuilder.structures.XMLBuilder; 13 13 14 14 /** … … 60 60 public String toXML() 61 61 { 62 String output = XML Writer.openTag(ELEMENT.ACTIVITY_LOG_EVALUATION.tag);62 String output = XMLBuilder.openTag(ELEMENT.ACTIVITY_LOG_EVALUATION.tag); 63 63 if (expectedAction != null) 64 64 { … … 69 69 str = ""; 70 70 } 71 output += XML Writer.simpleTag(str, ELEMENT.EXPECTED_ACTION);71 output += XMLBuilder.simpleTag(str, ELEMENT.EXPECTED_ACTION); 72 72 } 73 73 } 74 output += XML Writer.closeTag(ELEMENT.ACTIVITY_LOG_EVALUATION.tag);74 output += XMLBuilder.closeTag(ELEMENT.ACTIVITY_LOG_EVALUATION.tag); 75 75 76 76 return output; -
trunk/src/scriptbuilder/structures/events/AudioEvent.java
r167 r203 9 9 import scriptbuilder.structures.I_XML_Writable; 10 10 import scriptbuilder.structures.ScriptEvent; 11 import scriptbuilder.structures.XML Writer;11 import scriptbuilder.structures.XMLBuilder; 12 12 13 13 /** … … 75 75 public String toXML() 76 76 { 77 return XML Writer.emptyTag(ELEMENT.AUDIO.tag + " Length=\"" + audioLength + "\" Path=\"" + audioPath + "\"");77 return XMLBuilder.emptyTag(ELEMENT.AUDIO.tag + " Length=\"" + audioLength + "\" Path=\"" + audioPath + "\""); 78 78 } 79 79 } -
trunk/src/scriptbuilder/structures/events/CADEvaluationEvent.java
r76 r203 10 10 import scriptbuilder.structures.I_XML_Writable; 11 11 import scriptbuilder.structures.ScriptEvent; 12 import scriptbuilder.structures.XML Writer;12 import scriptbuilder.structures.XMLBuilder; 13 13 14 14 /** … … 60 60 public String toXML() 61 61 { 62 String output = XML Writer.openTag(ELEMENT.CAD_EVALUATION.tag);62 String output = XMLBuilder.openTag(ELEMENT.CAD_EVALUATION.tag); 63 63 if (expectedAction != null) 64 64 { … … 69 69 str = ""; 70 70 } 71 output += XML Writer.simpleTag(str, ELEMENT.EXPECTED_ACTION);71 output += XMLBuilder.simpleTag(str, ELEMENT.EXPECTED_ACTION); 72 72 } 73 73 } 74 output += XML Writer.closeTag(ELEMENT.CAD_EVALUATION.tag);74 output += XMLBuilder.closeTag(ELEMENT.CAD_EVALUATION.tag); 75 75 76 76 return output; -
trunk/src/scriptbuilder/structures/events/CADEvent.java
r185 r203 10 10 import scriptbuilder.structures.I_XML_Writable; 11 11 import scriptbuilder.structures.ScriptEvent; 12 import scriptbuilder.structures.XML Writer;12 import scriptbuilder.structures.XMLBuilder; 13 13 14 14 /** … … 46 46 while (tok.hasMoreTokens()) 47 47 { 48 output += XML Writer.simpleTag(tok.nextToken(), ELEMENT.DETAIL);48 output += XMLBuilder.simpleTag(tok.nextToken(), ELEMENT.DETAIL); 49 49 } 50 50 return output; -
trunk/src/scriptbuilder/structures/events/CCTVEvent.java
r153 r203 9 9 import scriptbuilder.structures.I_XML_Writable; 10 10 import scriptbuilder.structures.ScriptEvent; 11 import scriptbuilder.structures.XML Writer;11 import scriptbuilder.structures.XMLBuilder; 12 12 13 13 /** -
trunk/src/scriptbuilder/structures/events/CHPRadioEvent.java
r175 r203 10 10 import scriptbuilder.structures.I_XML_Writable; 11 11 import scriptbuilder.structures.ScriptEvent; 12 import scriptbuilder.structures.XML Writer;12 import scriptbuilder.structures.XMLBuilder; 13 13 14 14 /** … … 101 101 public String toXML() 102 102 { 103 String output = XML Writer.openTag(ELEMENT.CHP_RADIO.tag + " RadioFile=\"" + radioFile + "\"");104 output += XML Writer.openTag(ELEMENT.DIALOG.tag);103 String output = XMLBuilder.openTag(ELEMENT.CHP_RADIO.tag + " RadioFile=\"" + radioFile + "\""); 104 output += XMLBuilder.openTag(ELEMENT.DIALOG.tag); 105 105 106 106 for (int i = 0; i < lines.size(); i++) 107 107 { 108 output += XML Writer.openTag(ELEMENT.LINE.tag + " Role=\"" + roles.get(i) + "\"");108 output += XMLBuilder.openTag(ELEMENT.LINE.tag + " Role=\"" + roles.get(i) + "\""); 109 109 output += lines.get(i); 110 output += XML Writer.closeTag(ELEMENT.LINE.tag);110 output += XMLBuilder.closeTag(ELEMENT.LINE.tag); 111 111 } 112 112 113 output += XML Writer.closeTag(ELEMENT.DIALOG.tag);114 output += XML Writer.closeTag(ELEMENT.CHP_RADIO.tag);113 output += XMLBuilder.closeTag(ELEMENT.DIALOG.tag); 114 output += XMLBuilder.closeTag(ELEMENT.CHP_RADIO.tag); 115 115 116 116 return output; -
trunk/src/scriptbuilder/structures/events/CMSEvaluationEvent.java
r76 r203 10 10 import scriptbuilder.structures.I_XML_Writable; 11 11 import scriptbuilder.structures.ScriptEvent; 12 import scriptbuilder.structures.XML Writer;12 import scriptbuilder.structures.XMLBuilder; 13 13 14 14 /** … … 66 66 public String toXML() 67 67 { 68 String output = XML Writer.openTag(ELEMENT.CMS_EVALUATION.tag + " cmsID=\"" + cmsID + "\" type=\"" + cmsType + "\"");69 output += XML Writer.simpleTag(location, ELEMENT.LOCATION);68 String output = XMLBuilder.openTag(ELEMENT.CMS_EVALUATION.tag + " cmsID=\"" + cmsID + "\" type=\"" + cmsType + "\""); 69 output += XMLBuilder.simpleTag(location, ELEMENT.LOCATION); 70 70 71 71 if (message.size() > 0) 72 72 { 73 output += XML Writer.openTag(ELEMENT.SAMPLE_MESSAGE.tag);73 output += XMLBuilder.openTag(ELEMENT.SAMPLE_MESSAGE.tag); 74 74 for (String str : message) 75 75 { … … 78 78 str = ""; 79 79 } 80 output += XML Writer.simpleTag(str, ELEMENT.CMS_LINE);80 output += XMLBuilder.simpleTag(str, ELEMENT.CMS_LINE); 81 81 } 82 output += XML Writer.closeTag(ELEMENT.SAMPLE_MESSAGE.tag);82 output += XMLBuilder.closeTag(ELEMENT.SAMPLE_MESSAGE.tag); 83 83 } 84 84 85 output += XML Writer.closeTag(ELEMENT.CMS_EVALUATION.tag);85 output += XMLBuilder.closeTag(ELEMENT.CMS_EVALUATION.tag); 86 86 87 87 return output; -
trunk/src/scriptbuilder/structures/events/FacilitatorEvaluationEvent.java
r76 r203 10 10 import scriptbuilder.structures.I_XML_Writable; 11 11 import scriptbuilder.structures.ScriptEvent; 12 import scriptbuilder.structures.XML Writer;12 import scriptbuilder.structures.XMLBuilder; 13 13 14 14 /** … … 60 60 public String toXML() 61 61 { 62 String output = XML Writer.openTag(ELEMENT.FACILITATOR_EVALUATION.tag);62 String output = XMLBuilder.openTag(ELEMENT.FACILITATOR_EVALUATION.tag); 63 63 if (expectedAction != null) 64 64 { … … 69 69 str = ""; 70 70 } 71 output += XML Writer.simpleTag(str, ELEMENT.EXPECTED_ACTION);71 output += XMLBuilder.simpleTag(str, ELEMENT.EXPECTED_ACTION); 72 72 } 73 73 } 74 output += XML Writer.closeTag(ELEMENT.FACILITATOR_EVALUATION.tag);74 output += XMLBuilder.closeTag(ELEMENT.FACILITATOR_EVALUATION.tag); 75 75 76 76 return output; -
trunk/src/scriptbuilder/structures/events/MaintenanceRadioEvent.java
r76 r203 9 9 import scriptbuilder.structures.I_XML_Writable; 10 10 import scriptbuilder.structures.ScriptEvent; 11 import scriptbuilder.structures.XML Writer;11 import scriptbuilder.structures.XMLBuilder; 12 12 13 13 /** … … 33 33 public String toXML() 34 34 { 35 String output = XML Writer.simpleTag(message, ELEMENT.MAINTENANCE_RADIO);35 String output = XMLBuilder.simpleTag(message, ELEMENT.MAINTENANCE_RADIO); 36 36 return output; 37 37 } -
trunk/src/scriptbuilder/structures/events/ParamicsEvent.java
r76 r203 10 10 import scriptbuilder.structures.I_XML_Writable; 11 11 import scriptbuilder.structures.ScriptEvent; 12 import scriptbuilder.structures.XML Writer;12 import scriptbuilder.structures.XMLBuilder; 13 13 14 14 /** … … 40 40 public String toXML() 41 41 { 42 String output = XML Writer.openTag(ELEMENT.PARAMICS.tag + " LocationID=\"" + locationID + "\"");42 String output = XMLBuilder.openTag(ELEMENT.PARAMICS.tag + " LocationID=\"" + locationID + "\""); 43 43 44 output += XML Writer.simpleTag(status, ELEMENT.Status);44 output += XMLBuilder.simpleTag(status, ELEMENT.Status); 45 45 46 46 if (!type.equals("")) 47 47 { 48 output += XML Writer.simpleTag(type, ELEMENT.Incident_type);48 output += XMLBuilder.simpleTag(type, ELEMENT.Incident_type); 49 49 } 50 50 51 51 for (Integer lane : laneNums) 52 52 { 53 output += XML Writer.simpleTag("" + lane, ELEMENT.Lane_number);53 output += XMLBuilder.simpleTag("" + lane, ELEMENT.Lane_number); 54 54 } 55 output += XML Writer.closeTag(ELEMENT.PARAMICS.tag);55 output += XMLBuilder.closeTag(ELEMENT.PARAMICS.tag); 56 56 57 57 return output; -
trunk/src/scriptbuilder/structures/events/RadioEvaluationEvent.java
r76 r203 10 10 import scriptbuilder.structures.I_XML_Writable; 11 11 import scriptbuilder.structures.ScriptEvent; 12 import scriptbuilder.structures.XML Writer;12 import scriptbuilder.structures.XMLBuilder; 13 13 14 14 /** … … 60 60 public String toXML() 61 61 { 62 String output = XML Writer.openTag(ELEMENT.RADIO_EVALUATION.tag);62 String output = XMLBuilder.openTag(ELEMENT.RADIO_EVALUATION.tag); 63 63 if (expectedAction != null) 64 64 { … … 69 69 str = ""; 70 70 } 71 output += XML Writer.simpleTag(str, ELEMENT.EXPECTED_ACTION);71 output += XMLBuilder.simpleTag(str, ELEMENT.EXPECTED_ACTION); 72 72 } 73 73 } 74 output += XML Writer.closeTag(ELEMENT.RADIO_EVALUATION.tag);74 output += XMLBuilder.closeTag(ELEMENT.RADIO_EVALUATION.tag); 75 75 76 76 return output; -
trunk/src/scriptbuilder/structures/events/TMTRadioEvent.java
r76 r203 9 9 import scriptbuilder.structures.I_XML_Writable; 10 10 import scriptbuilder.structures.ScriptEvent; 11 import scriptbuilder.structures.XML Writer;11 import scriptbuilder.structures.XMLBuilder; 12 12 13 13 /** … … 33 33 public String toXML() 34 34 { 35 String output = XML Writer.simpleTag(message, ELEMENT.TMT_RADIO);35 String output = XMLBuilder.simpleTag(message, ELEMENT.TMT_RADIO); 36 36 return output; 37 37 } -
trunk/src/scriptbuilder/structures/events/TelephoneEvent.java
r76 r203 10 10 import scriptbuilder.structures.I_XML_Writable; 11 11 import scriptbuilder.structures.ScriptEvent; 12 import scriptbuilder.structures.XML Writer;12 import scriptbuilder.structures.XMLBuilder; 13 13 14 14 /** … … 37 37 public String toXML() 38 38 { 39 String output = XML Writer.openTag(ELEMENT.TELEPHONE.tag);39 String output = XMLBuilder.openTag(ELEMENT.TELEPHONE.tag); 40 40 for (int i = 0; i < lines.size(); i++) 41 41 { 42 42 if (roles.get(i).equalsIgnoreCase(ELEMENT.STUDENT.tag)) 43 43 { 44 output += XML Writer.simpleTag(lines.get(i), ELEMENT.STUDENT);44 output += XMLBuilder.simpleTag(lines.get(i), ELEMENT.STUDENT); 45 45 } 46 46 else 47 47 { 48 output += XML Writer.openTag(ELEMENT.INSTRUCTOR.tag + " Role=\"" + roles.get(i) + "\"");48 output += XMLBuilder.openTag(ELEMENT.INSTRUCTOR.tag + " Role=\"" + roles.get(i) + "\""); 49 49 output += lines.get(i); 50 output += XML Writer.closeTag(ELEMENT.INSTRUCTOR.tag);50 output += XMLBuilder.closeTag(ELEMENT.INSTRUCTOR.tag); 51 51 } 52 52 } 53 output += XML Writer.closeTag(ELEMENT.TELEPHONE.tag);53 output += XMLBuilder.closeTag(ELEMENT.TELEPHONE.tag); 54 54 return output; 55 55 } -
trunk/src/scriptbuilder/structures/events/TowEvent.java
r76 r203 9 9 import scriptbuilder.structures.I_XML_Writable; 10 10 import scriptbuilder.structures.ScriptEvent; 11 import scriptbuilder.structures.XML Writer;11 import scriptbuilder.structures.XMLBuilder; 12 12 13 13 /** … … 39 39 public String toXML() 40 40 { 41 return XML Writer.emptyTag(ELEMENT.TOW.tag + " Company=\"" + towCompany + "\" ConfNum=\""41 return XMLBuilder.emptyTag(ELEMENT.TOW.tag + " Company=\"" + towCompany + "\" ConfNum=\"" 42 42 + towConfNum + "\" PubNum=\"" + towPubNum + "\" Beat=\"" + towBeat + "\""); 43 43 } -
trunk/src/scriptbuilder/structures/events/UnitEvent.java
r145 r203 9 9 import scriptbuilder.structures.I_XML_Writable; 10 10 import scriptbuilder.structures.ScriptEvent; 11 import scriptbuilder.structures.XML Writer;11 import scriptbuilder.structures.XMLBuilder; 12 12 13 13 /** … … 41 41 public String toXML() 42 42 { 43 return XML Writer.emptyTag(ELEMENT.UNIT.tag+" UnitNum=\""+unitNum+"\" Status=\""43 return XMLBuilder.emptyTag(ELEMENT.UNIT.tag+" UnitNum=\""+unitNum+"\" Status=\"" 44 44 +unitStatus+"\" Primary=\""+unitPrimary+"\" Active=\""+unitActive+"\""); 45 45 } -
trunk/src/scriptbuilder/structures/events/WitnessEvent.java
r46 r203 9 9 import scriptbuilder.structures.I_XML_Writable; 10 10 import scriptbuilder.structures.ScriptEvent; 11 import scriptbuilder.structures.XML Writer;11 import scriptbuilder.structures.XMLBuilder; 12 12 13 13 /** … … 37 37 public String toXML() 38 38 { 39 return XML Writer.emptyTag(ELEMENT.WITNESS.tag + " Name=\"" + witnessName + "\" Address=\""39 return XMLBuilder.emptyTag(ELEMENT.WITNESS.tag + " Name=\"" + witnessName + "\" Address=\"" 40 40 + witnessAddress + "\" PhoneNum=\"" + witnessNum + "\""); 41 41 }
Note: See TracChangeset
for help on using the changeset viewer.
