public static final LocoNetMessage createSetUr92GroupIDPacket(String s) throws jmri.jmrix.loconet.LocoNetException {
  int gr_id=Integer.parseInt(s,10);
  if ((gr_id >= LnDplxGrpInfoImplConstants.DPLX_MIN_ID) && (gr_id <= LnDplxGrpInfoImplConstants.DPLX_MAX_ID)) {
    int i=0;
    LocoNetMessage m=new LocoNetMessage(LnConstants.RE_DPLX_OP_LEN);
    m.setElement(i++,LnConstants.OPC_PEER_XFER);
    m.setElement(i++,LnConstants.RE_DPLX_OP_LEN);
    m.setElement(i++,LnConstants.RE_DPLX_GP_ID_TYPE);
    m.setElement(i++,LnConstants.RE_DPLX_OP_TYPE_WRITE);
    m.setElement(i++,0);
    m.setElement(i++,gr_id);
    for (; i < (LnConstants.RE_DPLX_OP_LEN - 1); i++) {
      m.setElement(i,0);
    }
    return m;
  }
 else {
    throw new jmri.jmrix.loconet.LocoNetException("Illegal Duplex Group ID number");
  }
}

public static final LocoNetMessage createSetUr92GroupIDPacket ( String s ) throws jmri . jmrix . loconet . LocoNetException { int gr_id = Integer . parseInt ( s , 10 ) ; if ( ( gr_id >= LnDplxGrpInfoImplConstants . DPLX_MIN_ID ) && ( gr_id <= LnDplxGrpInfoImplConstants . DPLX_MAX_ID ) ) { int i = 0 ; LocoNetMessage m = new LocoNetMessage ( LnConstants . RE_DPLX_OP_LEN ) ; m . setElement ( i ++ , LnConstants . OPC_PEER_XFER ) ; m . setElement ( i ++ , LnConstants . RE_DPLX_OP_LEN ) ; m . setElement ( i ++ , LnConstants . RE_DPLX_GP_ID_TYPE ) ; m . setElement ( i ++ , LnConstants . RE_DPLX_OP_TYPE_WRITE ) ; m . setElement ( i ++ , 0 ) ; m . setElement ( i ++ , gr_id ) ; for ( ; i < ( LnConstants . RE_DPLX_OP_LEN - 1 ) ; i ++ ) { m . setElement ( i , 0 ) ; } return m ; } else { throw new jmri . jmrix . loconet . LocoNetException ( "Illegal Duplex Group ID number" ) ; } }
create a loconet packet to set the duplex group id number . < p > if s provides anything other than a numeric value between 0 and 127 , a bogus loconet message is returned . < p >
