4 package org.pcmm.gates.impl;
6 import org.pcmm.base.impl.PCMMBaseObject;
7 import org.pcmm.gates.ITrafficProfile;
12 public class DOCSISServiceClassNameTrafficProfile extends PCMMBaseObject
13 implements ITrafficProfile {
15 public static final byte STYPE = 2;
16 public static final short LENGTH = 24;
21 public DOCSISServiceClassNameTrafficProfile() {
22 this(LENGTH, STYPE, SNUM);
26 * @param data - the data bytes to parse
28 public DOCSISServiceClassNameTrafficProfile(byte[] data) {
33 * @param len - the classifier's length
34 * @param sType - the sType value
35 * @param sNum - the sNum value
37 public DOCSISServiceClassNameTrafficProfile(short len, byte sType, byte sNum) {
38 super(len, sType, sNum);
39 setEnvelop((byte) 0x7);
43 * @return the serviceClassName
45 public String getServiceClassName() {
46 return new String(getBytes((short) 4, (short) 4));
50 * @param serviceClassName
51 * the serviceClassName to set
53 public void setServiceClassName(String serviceClassName) {
54 setBytes(serviceClassName.getBytes(), (short) 4);
60 * @see org.pcmm.gates.ITrafficProfile#getEnvelop()
63 public byte getEnvelop() {
64 return getBytes((short) 0, (short) 1)[0];
70 * @see org.pcmm.gates.ITrafficProfile#setEnvelop(byte)
73 public void setEnvelop(byte en) {
74 setBytes(new byte[] { en }, (short) 0);