trace.java

来自「联通的SGIP协议Java实现」· Java 代码 · 共 77 行

JAVA
77
字号
package spApi;

public class Trace extends SGIP_Command
{
  private static final int CommandLength = 41;
  private static final int CommandID = 4096;
  public int Seqno_1;
  public int Seqno_2;
  public int Seqno_3;
  public String UserNumber;
  public String Reserve;

  public Trace(MsgHead paramMsgHead)
  {
    super(paramMsgHead); }

  public Trace(long paramLong, int paramInt1, int paramInt2, int paramInt3, String paramString) {
    super(paramLong, 41, 4096);
    this.Seqno_1 = paramInt1;
    this.Seqno_2 = paramInt2;
    this.Seqno_3 = paramInt3;
    this.UserNumber = paramString;
    SGIP_Command.BytesCopy(SGIP_Command.IntToBytes4(this.Seqno_1), this.bodybytes, 0, 3, 0);
    SGIP_Command.BytesCopy(SGIP_Command.IntToBytes4(this.Seqno_2), this.bodybytes, 0, 3, 4);
    SGIP_Command.BytesCopy(SGIP_Command.IntToBytes4(this.Seqno_3), this.bodybytes, 0, 3, 8);
    this.UserNumber.getBytes(0, this.UserNumber.length(), this.bodybytes, 12); }

  public Trace(int paramInt1, int paramInt2, int paramInt3, String paramString) {
    super(41, 4096);
    this.Seqno_1 = paramInt1;
    this.Seqno_2 = paramInt2;
    this.Seqno_3 = paramInt3;
    this.UserNumber = paramString;
    SGIP_Command.BytesCopy(SGIP_Command.IntToBytes4(this.Seqno_1), this.bodybytes, 0, 3, 0);
    SGIP_Command.BytesCopy(SGIP_Command.IntToBytes4(this.Seqno_2), this.bodybytes, 0, 3, 4);
    SGIP_Command.BytesCopy(SGIP_Command.IntToBytes4(this.Seqno_3), this.bodybytes, 0, 3, 8);
    this.UserNumber.getBytes(0, this.UserNumber.length(), this.bodybytes, 12);
  }

  public void setSeqno_1(int paramInt) {
    this.Seqno_1 = paramInt;
    SGIP_Command.BytesCopy(SGIP_Command.IntToBytes4(this.Seqno_1), this.bodybytes, 0, 3, 0);
  }

  public int getSeqno1() {
    return this.Seqno_1;
  }

  public void setSeqno_2(int paramInt) {
    this.Seqno_2 = paramInt;
    SGIP_Command.BytesCopy(SGIP_Command.IntToBytes4(this.Seqno_2), this.bodybytes, 0, 3, 4);
  }

  public int getSeqno_2() {
    return this.Seqno_2;
  }

  public void setSeqno_3(int paramInt)
  {
    this.Seqno_3 = paramInt;
    SGIP_Command.BytesCopy(SGIP_Command.IntToBytes4(this.Seqno_3), this.bodybytes, 0, 3, 8);
  }

  public int getSeqno_3() {
    return this.Seqno_3;
  }

  public void setUserNumber(String paramString)
  {
    this.UserNumber = paramString;
    this.UserNumber.getBytes(0, this.UserNumber.length(), this.bodybytes, 12);
  }

  public String getUserNumber() {
    return this.UserNumber;
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?