Source code: rcs/nml/RCS_CMD_MSG.java
1 package rcs.nml;
2
3 import rcs.nml.NMLmsg;
4
5 /**
6 * Base class for NML command messages.
7 * <pre>
8 * Related Documentation:
9 * <A HREF="http://isd.cme.nist.gov/proj/rcs_lib">RCS Library</a>, <A HREF="http://isd.cme.nist.gov/proj/rcs_lib/NMLjava.html">NML Programmers Guide (Java Version)</a>
10 *
11 * Source Code:
12 * <A HREF="RCS_CMD_MSG.java">RCS_CMD_MSG.java</a>
13 *
14 * </pre>
15 *
16 * @author Will Shackleford -- <A HREF="mailto:shackle@cme.nist.gov">shackle@cme.nist.gov</a>
17 *
18 */
19 public class RCS_CMD_MSG extends NMLmsg
20 {
21 /**
22 * Applications ussually increment the serial number each
23 * time a command is sent, this number is ussually echoed
24 * back in the status message so that supervisors can tell
25 * which command is currently executing or just completed.
26 */
27 public int serial_number=0;
28
29 public RCS_CMD_MSG(int _type)
30 {
31 super(_type);
32 //System.out.println("RCS_CMD_MSG("+_type+") constructed.");
33 }
34
35
36 public void update(NMLFormatConverter nml_fc)
37 {
38 if(!nml_fc.cmd_msg_updated)
39 {
40 //super.update(nml_fc);
41 serial_number = nml_fc.update(serial_number);
42 nml_fc.cmd_msg_updated = true;
43 }
44 }
45
46 }
47