4 package org.pcmm.gates.impl;
6 import org.pcmm.gates.ISessionClassID;
11 public class SessionClassID implements ISessionClassID {
13 private byte priority;
14 private byte preemption;
19 public SessionClassID() {
23 public SessionClassID(byte value) {
27 priority |= value >> 2;
28 preemption |= value >> 3;
35 * @see org.pcmm.gates.ISessionClassID#getPriority()
38 public byte getPriority() {
45 * @see org.pcmm.gates.ISessionClassID#setPriority(byte)
48 public void setPriority(byte value) {
49 this.priority = value;
55 * @see org.pcmm.gates.ISessionClassID#getPreemption()
58 public byte getPreemption() {
65 * @see org.pcmm.gates.ISessionClassID#setPreemption(byte)
68 public void setPreemption(byte value) {
69 this.preemption = value;
75 * @see org.pcmm.gates.ISessionClassID#toSingleByte()
78 public byte toSingleByte() {
80 // ret |= (priority << 2);
81 // ret |= (preemption & 0xf);