1 46 47 package org.mr.core.cmc; 48 49 import org.mr.core.util.byteable.Byteable; 50 import org.mr.core.util.byteable.ByteableMap; 51 52 58 59 64 public abstract class CMCMessage implements Byteable { 65 private long id; 66 67 68 private ByteableMap params = new ByteableMap(); 69 70 public long getId(){ 71 return id; 72 } 73 public abstract byte getType(); 74 75 76 79 public ByteableMap getParams() { 80 return params; 81 } 82 83 86 public void setParams(ByteableMap params) { 87 this.params = params; 88 } 89 90 93 public void setId(long id) { 94 this.id = id; 95 } 96 97 public String toString(){ 98 return "base CMCMessage: id= "+getId()+" params="+getParams(); 99 } 100 101 102 103 } 104 | Popular Tags |