2 * Copyright (c) 2015 Cable Television Laboratories, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.pcmm.gates;
11 import org.pcmm.base.IPCMMBaseObject;
14 * TransactionID is a 2-byte unsigned integer quantity, which contains a token that is used by the Application Manager
15 * to match responses from the Policy Server and by the Policy Server to match responses from the CMTS to the
16 * previous requests. The TransactionID MUST also contain the command type that identifies the action to be taken or
19 public interface ITransactionID extends IPCMMBaseObject {
24 * Returns the transaction identifier value
27 short getTransactionIdentifier();
30 * Returns the command type
31 * @return - the command type
33 GateCommandType getGateCommandType();
36 * The supported Synchronization types
38 enum GateCommandType {
41 GATE_SET_ACK((short) 5),
42 GATE_SET_ERR((short) 6),
44 GATE_INFO_ACK((short) 8),
45 GATE_INFO_ERR((short) 9),
46 GATE_DELETE((short) 10),
47 GATE_DELETE_ACK((short) 11),
48 GATE_DELETE_ERR((short) 12),
49 GATE_RPT_STATE((short) 15),
50 GATE_CMD_ERR((short) 16),
51 PDP_CONFIG((short) 17),
52 PDP_CONFIG_ACK((short) 18),
53 PDP_CONFIG_ERR((short) 19),
54 SYNC_REQUEST((short) 20),
56 SYNC_COMPLETE((short) 22),
57 MSG_RECEIPT((short) 23);
59 GateCommandType(short value) {
63 public short getValue() {
67 public static GateCommandType valueOf(short v) {
70 return GateCommandType.GATE_SET;
72 return GateCommandType.GATE_SET_ACK;
74 return GateCommandType.GATE_SET_ERR;
76 return GateCommandType.GATE_INFO;
78 return GateCommandType.GATE_INFO_ACK;
80 return GateCommandType.GATE_INFO_ERR;
82 return GateCommandType.GATE_DELETE;
84 return GateCommandType.GATE_DELETE_ACK;
86 return GateCommandType.GATE_DELETE_ERR;
88 return GateCommandType.GATE_RPT_STATE;
90 return GateCommandType.GATE_CMD_ERR;
92 return GateCommandType.PDP_CONFIG;
94 return GateCommandType.PDP_CONFIG_ACK;
96 return GateCommandType.PDP_CONFIG_ERR;
98 return GateCommandType.SYNC_REQUEST;
100 return GateCommandType.SYNC_RPT;
102 return GateCommandType.SYNC_COMPLETE;
104 return GateCommandType.MSG_RECEIPT;
106 throw new IllegalArgumentException("not supported value");