Esempio n. 1
0
 public Link_Address(ThreeGPP_3G_Cell_ID t3c) {
   tg3ci = new ThreeGPP_3G_Cell_ID(null, null);
   Serialization srlz = new Serialization();
   link_address_out = new byte[srlz.choice(t3c.get_ThreeGPP_3G_Cell_ID(), 1).length];
   link_address_out = srlz.choice(t3c.get_ThreeGPP_3G_Cell_ID(), 1);
   which_transport = "3GPP 3G Cell ID";
 }
Esempio n. 2
0
 public Link_Address(Transport_address mac_addr) {
   macaddr = new Transport_address(mac_addr.get_Value_i(), mac_addr.get_Value_Octet_String());
   Serialization srlz = new Serialization();
   which_transport = "mac address";
   link_address_out = new byte[srlz.choice(mac_addr.get_Transport_address(), 0).length];
   link_address_out = srlz.choice(mac_addr.get_Transport_address(), 0);
 }
Esempio n. 3
0
 public ThreeGPP_3G_Cell_ID(PLMN_ID plmnID, CELL_ID cellID) {
   plmn_ID = new PLMN_ID(plmnID);
   cell_ID = new CELL_ID(cellID);
   Serialization srlz = new Serialization();
   threegpp_3g_cell_id =
       new byte[srlz.sequence(plmnID.get_PLMN_ID(), cellID.get_CELL_ID()).length];
   threegpp_3g_cell_id = srlz.sequence(plmnID.get_PLMN_ID(), cellID.get_CELL_ID());
 }
Esempio n. 4
0
  /**
   * Construct a MIH_Event_Subscribe response message
   *
   * @param MIH_Protocol_Header
   * @param Payload
   * @return byte [] - representation of the response message in byte form
   */
  public byte[] MIH_Event_Subscribe(MIH_Protocol_Header msgheader, Payload payload) {
    Message_out =
        new byte
            [srlz.sequence(msgheader.get_MIH_Protocol_Header().getValue(), payload.Get_Payload())
                .length];
    Message_out =
        srlz.sequence(msgheader.get_MIH_Protocol_Header().getValue(), payload.Get_Payload());

    return Message_out;
  }
Esempio n. 5
0
  /**
   * Construct a MIH Capability Discover response message
   *
   * @param MIH_Protocol_Header
   * @param Payload
   * @return byte [] - representation of the response message in byte form
   */
  public byte[] MIH_Capability_Discover(MIH_Protocol_Header msgheader, Payload payload) {
    Message_out =
        new byte
            [srlz.sequence(msgheader.get_MIH_Protocol_Header().getValue(), payload.Get_Payload())
                .length];
    Message_out =
        srlz.sequence(msgheader.get_MIH_Protocol_Header().getValue(), payload.Get_Payload());

    return Message_out;
  }
Esempio n. 6
0
  /**
   * Construct a MIH_N2N_HO_Query_Resources response message
   *
   * @param MIH_Protocol_Header
   * @param Payload
   * @return byte [] - representation of the response message in byte form
   */
  public byte[] MIH_N2N_HO_Query_Resources(MIH_Protocol_Header msgheader, Payload payload) {
    Message_out =
        new byte
            [srlz.sequence(msgheader.get_MIH_Protocol_Header().getValue(), payload.Get_Payload())
                .length];
    Message_out =
        srlz.sequence(msgheader.get_MIH_Protocol_Header().getValue(), payload.Get_Payload());

    return Message_out;
  }
Esempio n. 7
0
  /**
   * Construct a MIH_Link_Configure_Thresholds response message
   *
   * @param MIH_Protocol_Header
   * @param Payload
   * @return byte [] - representation of the response message in byte form
   */
  public byte[] MIH_Link_Configure_Thresholds(MIH_Protocol_Header msgheader, Payload payload) {
    Message_out =
        new byte
            [srlz.sequence(msgheader.get_MIH_Protocol_Header().getValue(), payload.Get_Payload())
                .length];
    Message_out =
        srlz.sequence(msgheader.get_MIH_Protocol_Header().getValue(), payload.Get_Payload());

    return Message_out;
  }
Esempio n. 8
0
    public ThreeGPP_2G_Cell_ID(PLMN_ID plmnID, LAC lac, CI ci) {
      Serialization srlz = new Serialization();
      this.plmnID = plmnID;
      this.lac = lac;
      this.ci = ci;

      threegpp_2g_cell_id =
          new byte[srlz.sequence(plmnID.get_PLMN_ID(), lac.get_LAC(), ci.get_CI()).length];
      threegpp_2g_cell_id = srlz.sequence(plmnID.get_PLMN_ID(), lac.get_LAC(), ci.get_CI());
    }
Esempio n. 9
0
    /**
     * Constructor
     *
     * @param int
     * @param Octet_String
     */
    public Transport_address(int i, Octet_String os) {
      value_i = i;
      value_os = new Octet_String(os);

      // The maximum value of i according to IANA
      // http://www.iana.org/assignments/address-family-numbers/

      // Sequencing
      Serialization srlz = new Serialization();
      transportaddress = new byte[srlz.sequence((new UInt16(i)).getValue(), os.getValue()).length];
      transportaddress = srlz.sequence((new UInt16(i)).getValue(), os.getValue());
    }
Esempio n. 10
0
    public Link_Addr_List(Vector linkAddrList) {
      link_addr_list_ = linkAddrList;

      int count = 0, pos = 0;
      Serialization srlz = new Serialization();

      Vector tmp = new Vector();
      for (int i = 0; i < linkAddrList.size(); i++) {
        tmp.addElement(((Network_type_addr) linkAddrList.elementAt(i)).get_Network_type_addr());
      }

      link_addr_list = new byte[srlz.encoding_List(tmp).length];
      link_addr_list = srlz.encoding_List(tmp);
    }
Esempio n. 11
0
 /** Constructor */
 public Link_Address(Other_l2_ADDR ola) {
   Serialization srlz = new Serialization();
   link_address_out = new byte[srlz.choice(ola.get_Other_l2_ADDR(), 4).length];
   link_address_out = srlz.choice(ola.get_Other_l2_ADDR(), 4);
   which_transport = "Other L2 Address";
 }
Esempio n. 12
0
 /** Constructor */
 public Link_Address(ThreeGPP2_ADDR tga) {
   Serialization srlz = new Serialization();
   link_address_out = new byte[srlz.choice(tga.get_3GPP2_ADDR(), 4).length];
   link_address_out = srlz.choice(tga.get_3GPP2_ADDR(), 4);
   which_transport = "3GPP2 Address";
 }
Esempio n. 13
0
 /** Constructor */
 public Link_Address(ThreeGPP_2G_Cell_ID t2c) {
   Serialization srlz = new Serialization();
   link_address_out = new byte[srlz.choice(t2c.get_ThreeGPP_2G_Cell_ID(), 2).length];
   link_address_out = srlz.choice(t2c.get_ThreeGPP_2G_Cell_ID(), 2);
   which_transport = "3GPP 2G Cell ID";
 }