4 package org.pcmm.objects;
6 import org.pcmm.base.impl.PCMMBaseObject;
10 * PCMM SyncOptions object
13 public class SyncOptions extends PCMMBaseObject {
15 private byte synchType;
17 private byte reportType;
19 public static final byte STANDARD_REPORT_DATA = (byte) 0;
20 public static final byte COMPLETE_GATE_DATA = (byte) 1;
21 public static final byte FULL_SYNCHRONIZATION = (byte) 0;
22 public static final byte INCREMENTAL_SYNCHRONIZATION = (byte) 1;
24 public SyncOptions() {
25 this(STANDARD_REPORT_DATA, FULL_SYNCHRONIZATION);
28 public SyncOptions(byte reportType, byte synchType) {
29 super((short) 8, (byte) 1, (byte) 18);
30 setByte(this.reportType = reportType, (short) 4);
31 setByte(this.synchType = synchType, (short) 6);
35 * Parse data and create COPSHandle object
37 public SyncOptions(byte[] dataPtr) {
39 reportType = getByte((short) 4);
40 synchType = getByte((short) 6);
44 * @return the synchType
46 public byte getSynchType() {
52 * the synchType to set
54 public void setSynchType(byte synchType) {
55 this.synchType = synchType;
59 * @return the reportType
61 public byte getReportType() {
67 * the reportType to set
69 public void setReportType(byte reportType) {
70 this.reportType = reportType;