1 /**
2 * .
3 * Copyright � 1999 Erich P G.
4 *
5 */
6
7 package autohit.vm;
8
9 import java.io.Serializable;
10
11 /**
12 * A Virtual Machine instruction. This is a CRC verification.
13 *
14 * @see autohit.vm.VMInstruction
15 *
16 * @author Erich P. Gatejen
17 * @version 1.0
18 * <i>Version History</i>
19 * <code>EPG - Initial - 4Feb99</code>
20 *
21 */
22 public class VMICrc extends VMInstruction {
23
24 // --- FINAL FIELDS ------------------------------------------------------
25
26 // --- FIELDS ------------------------------------------------------------
27
28 /**
29 * The expected crc value.
30 * @serial
31 */
32 public int expected;
33
34
35 // --- PUBLIC METHODS ----------------------------------------------------
36
37 /**
38 * Default constructor.
39 */
40 public VMICrc() {
41 nToken = VMInstruction.CRC;
42 }
43
44 /**
45 * Dump this Instruction. Mostly for debugging.
46 *
47 * @return a String containing the dump.
48 */
49 public String toString() {
50 StringBuffer d = new StringBuffer();
51 d.append(" VMICrc --------------------------- \n");
52 d.append(" expceted = " + expected + "\n");
53 return d.toString();
54 }
55
56 // --- PRIVATE METHODS ---------------------------------------------------
57
58 }
|