@Override public IByteQueue getByteQueueForReadingParameter(IParameter parameter) { IByteQueue byteQueueForReadingParameter = new ByteQueue(); addCommandRequestTo( byteQueueForReadingParameter, READ_COMMAND, parameter.getByteQueueForRequest()); return byteQueueForReadingParameter; }
@Override public IByteQueue getByteQueueForWritingParameter(IParameter parameter) { IByteQueue byteQueueForWritingParameter = new ByteQueue(); addCommandRequestTo( byteQueueForWritingParameter, WRITE_COMMAND, parameter.getByteQueueForWriting()); return byteQueueForWritingParameter; }
@Override public int expectedWritingParameterResponseSize(IParameter parameter) { return STATIC_PARAMETER_RESPONSE_SIZE + parameter.getAddressSize() + parameter.getDataSize(); }