2 * (c) 2015 Cable Television Laboratories, Inc. All rights reserved.
5 package org.pcmm.gates;
7 import org.pcmm.base.IPCMMBaseObject;
10 * TransactionID is a 2-byte unsigned integer quantity, which contains a token that is used by the Application Manager
11 * to match responses from the Policy Server and by the Policy Server to match responses from the CMTS to the
12 * previous requests. The TransactionID MUST also contain the command type that identifies the action to be taken or
15 public interface ITransactionID extends IPCMMBaseObject {
20 * Returns the transaction identifier value
23 short getTransactionIdentifier();
26 * Returns the command type
27 * @return - the command type
29 GateCommandType getGateCommandType();
32 * The supported Synchronization types
34 enum GateCommandType {
37 GATE_SET_ACK((short) 5),
38 GATE_SET_ERR((short) 6),
40 GATE_INFO_ACK((short) 8),
41 GATE_INFO_ERR((short) 9),
42 GATE_DELETE((short) 10),
43 GATE_DELETE_ACK((short) 11),
44 GATE_DELETE_ERR((short) 12),
45 GATE_RPT_STATE((short) 15),
46 GATE_CMD_ERR((short) 16),
47 PDP_CONFIG((short) 17),
48 PDP_CONFIG_ACK((short) 18),
49 PDP_CONFIG_ERR((short) 19),
50 SYNC_REQUEST((short) 20),
52 SYNC_COMPLETE((short) 22),
53 MSG_RECEIPT((short) 23);
55 GateCommandType(short value) {
59 public short getValue() {
63 public static GateCommandType valueOf(short v) {
66 return GateCommandType.GATE_SET;
68 return GateCommandType.GATE_SET_ACK;
70 return GateCommandType.GATE_SET_ERR;
72 return GateCommandType.GATE_INFO;
74 return GateCommandType.GATE_INFO_ACK;
76 return GateCommandType.GATE_INFO_ERR;
78 return GateCommandType.GATE_DELETE;
80 return GateCommandType.GATE_DELETE_ACK;
82 return GateCommandType.GATE_DELETE_ERR;
84 return GateCommandType.GATE_RPT_STATE;
86 return GateCommandType.GATE_CMD_ERR;
88 return GateCommandType.PDP_CONFIG;
90 return GateCommandType.PDP_CONFIG_ACK;
92 return GateCommandType.PDP_CONFIG_ERR;
94 return GateCommandType.SYNC_REQUEST;
96 return GateCommandType.SYNC_RPT;
98 return GateCommandType.SYNC_COMPLETE;
100 return GateCommandType.MSG_RECEIPT;
102 throw new IllegalArgumentException("not supported value");