- /**
- *
- *
- */
- public static class BEEnvelop extends PCMMBaseObject {
- // basically we need 36 bytes but since PCMMBasedObject needs 4 bytes
- // more we allocate 40 bytes and then subtract them when setting BE
- // data.
- private final static short LENGHT = 40;
-
- protected BEEnvelop() {
- super(LENGHT, (byte) 0, (byte) 0);
- setTrafficPriority(DEFAULT_TRAFFIC_PRIORITY);
- }
-
- protected BEEnvelop(byte[] buffer) {
- super(buffer);
- }
-
- public void setTrafficPriority(byte p) {
- setByte(p, (short) 0);
- }
-
- public byte getTrafficPriority() {
- return getByte((short) 0);
- }
-
- //
- public void setRequestTransmissionPolicy(int p) {
- setInt(p, (short) 4);
- }
-
- public int getRequestTransmissionPolicy() {
- return getInt((short) 4);
- }
-
- public int getMaximumSustainedTrafficRate() {
- return getInt((short) 8);
- }
-
- public void setMaximumSustainedTrafficRate(int p) {
- setInt(p, (short) 8);
- }
-
- public int getMaximumTrafficBurst() {
- return getInt((short) 12);
- }
-
- public void setMaximumTrafficBurst(int p) {
- setInt(p, (short) 12);
- }
-
- public int getMinimumReservedTrafficRate() {
- return getInt((short) 16);
- }
-
- public void setMinimumReservedTrafficRate(int p) {
- setInt(p, (short) 16);
- }
-
- public short getAssumedMinimumReservedTrafficRatePacketSize() {
- return getShort((short) 20);
- }
-
- public void setAssumedMinimumReservedTrafficRatePacketSize(short p) {
- setShort(p, (short) 20);
- }
-
- public short getMaximumConcatenatedBurst() {
- return getShort((short) 22);
- }
-
- public void setMaximumConcatenatedBurst(short p) {
- setShort(p, (short) 22);
- }
-
- public int getRequiredAttributeMask() {
- return getInt((short) 24);