Warning: Can't use blame annotator:
svn blame failed on trunk/src/tmcsim/client/cadclientgui/data/IncidentEditLog.java: ("Can't find a temporary directory: Internal error", 20014)

source: tmcsimulator/trunk/src/tmcsim/client/cadclientgui/data/IncidentEditLog.java @ 3

Revision 3, 2.0 KB checked in by jdalbey, 10 years ago (diff)

Initial Import of project files - cadclientgui

RevLine 
1package tmcsim.client.cadclientgui.data;
2
3import java.io.Serializable;
4
5import tmcsim.client.cadclientgui.enums.CADDataEnums;
6
7/**
8 * This class is a further subdivision of Incident to hold data.
9 * Originally meant for Edit Log Tab in IncidentViewer, not really in use at the moment.
10 * If this is used, this class
11 * @author Vincent
12 *
13 */
14public class IncidentEditLog implements Serializable {
15   
16    /* The init variables are set only from the XML script (readXMLNode method)
17     * and are only used for resetCADDataSimulation purposes
18     */
19   
20    private String edit;
21    private String reason;
22    private String changeBy;
23    private String terminal;
24
25    /*
26     * Constructor. Initializes all objects to avoid null pointers.
27     */
28    public IncidentEditLog() {
29        edit = "";
30        reason = "";
31        changeBy = "";
32        terminal = "";
33    }
34
35    public String getEdit() {
36        return edit;
37    }
38
39    public void setEdit(String edit) {
40        this.edit = edit;
41    }
42
43    public String getReason() {
44        return reason;
45    }
46
47    public void setReason(String reason) {
48        this.reason = reason;
49    }
50
51    public String getChangeBy() {
52        return changeBy;
53    }
54
55    public void setChangeBy(String changeBy) {
56        this.changeBy = changeBy;
57    }
58
59    public String getTerminal() {
60        return terminal;
61    }
62
63    public void setTerminal(String terminal) {
64        this.terminal = terminal;
65    }
66
67    /*
68     * Called from the tmc.simulator.cadclient.data.Incident.java. Handles
69     * storing data based on script tag.
70     */
71    public void readXMLNode(String tag_name, String value) {
72        if (tag_name.equals(CADDataEnums.INC_EDIT_LOG.EDIT.tag)) {
73            setEdit(value);
74        } else if (tag_name.equals(CADDataEnums.INC_EDIT_LOG.REASON.tag)) {
75            setReason(value);
76        } else if (tag_name.equals(CADDataEnums.INC_EDIT_LOG.CHANGE_BY.tag)) {
77            setChangeBy(value);
78        } else if (tag_name.equals(CADDataEnums.INC_EDIT_LOG.TERMINAL.tag)) {
79            setTerminal(value);
80        }
81    }
82}
Note: See TracBrowser for help on using the repository browser.