コード例 #1
0
  @Override
  public IByteQueue getByteQueueForReadingParameter(IParameter parameter) {
    IByteQueue byteQueueForReadingParameter = new ByteQueue();

    addCommandRequestTo(
        byteQueueForReadingParameter, READ_COMMAND, parameter.getByteQueueForRequest());

    return byteQueueForReadingParameter;
  }
コード例 #2
0
  @Override
  public IByteQueue getByteQueueForWritingParameter(IParameter parameter) {
    IByteQueue byteQueueForWritingParameter = new ByteQueue();

    addCommandRequestTo(
        byteQueueForWritingParameter, WRITE_COMMAND, parameter.getByteQueueForWriting());

    return byteQueueForWritingParameter;
  }
コード例 #3
0
 @Override
 public int expectedWritingParameterResponseSize(IParameter parameter) {
   return STATIC_PARAMETER_RESPONSE_SIZE + parameter.getAddressSize() + parameter.getDataSize();
 }