| Revision 76,
960 bytes
checked in by bmcguffin, 9 years ago
(diff) |
|
Added javadoc for several files.
|
| Line | |
|---|
| 1 | /* |
|---|
| 2 | * To change this license header, choose License Headers in Project Properties. |
|---|
| 3 | * To change this template file, choose Tools | Templates |
|---|
| 4 | * and open the template in the editor. |
|---|
| 5 | */ |
|---|
| 6 | package scriptbuilder.structures.events; |
|---|
| 7 | |
|---|
| 8 | import scriptbuilder.structures.ELEMENT; |
|---|
| 9 | import scriptbuilder.structures.I_XML_Writable; |
|---|
| 10 | import scriptbuilder.structures.ScriptEvent; |
|---|
| 11 | import scriptbuilder.structures.XMLWriter; |
|---|
| 12 | |
|---|
| 13 | /** |
|---|
| 14 | * Data model for a maintenance radio event. A maintenance radio transmission |
|---|
| 15 | * has a string message. |
|---|
| 16 | * |
|---|
| 17 | * @author Bryan McGuffin |
|---|
| 18 | */ |
|---|
| 19 | public class MaintenanceRadioEvent extends ScriptEvent implements I_XML_Writable |
|---|
| 20 | { |
|---|
| 21 | |
|---|
| 22 | /** |
|---|
| 23 | * Constructor. |
|---|
| 24 | */ |
|---|
| 25 | public MaintenanceRadioEvent() |
|---|
| 26 | { |
|---|
| 27 | super(ScriptEventType.MAINTENANCE_RADIO_EVENT); |
|---|
| 28 | } |
|---|
| 29 | |
|---|
| 30 | public String message = ""; |
|---|
| 31 | |
|---|
| 32 | @Override |
|---|
| 33 | public String toXML() |
|---|
| 34 | { |
|---|
| 35 | String output = XMLWriter.simpleTag(message, ELEMENT.MAINTENANCE_RADIO); |
|---|
| 36 | return output; |
|---|
| 37 | } |
|---|
| 38 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.