Ejemplo n.º 1
0
  /*
   * (non-Javadoc)
   *
   * @see
   * com.vieo.fv.message.command.sa.SACommand#fillInput(com.vieo.fv.resource
   * .stl.data.sa.SAHeader, com.vieo.fv.resource.stl.data.IDatagram)
   */
  @Override
  protected void fillInput(SAHeader header, GroupConfigReq record) {
    InputArgument input = getInput();
    if (input == null) {
      throw new IllegalArgumentException("No input argument");
    }

    switch (input.getType()) {
      case InputTypeGroupName:
        record.setGroupName(input.getGroupName());
        record.setImageNumber(input.getImageId().getImageNumber());
        record.setImageOffset(input.getImageId().getImageOffset());
        break;
      default:
        throw new IllegalArgumentException("Unsupported input type " + input.getType());
    }
  }
Ejemplo n.º 2
0
 /*
  * (non-Javadoc)
  *
  * @see com.vieo.fv.message.command.sa.SACommand#buildRecord()
  */
 @Override
 protected GroupConfigReq buildRecord() {
   GroupConfigReq res = new GroupConfigReq();
   res.build(true);
   return res;
 }