def setPieceRequested(pieceIndex, bool)
      if bool
        @requestedPieces.set pieceIndex
        @pieceRequestTime[pieceIndex] = Time.new
      else
        @requestedPieces.clear pieceIndex
        @pieceRequestTime[pieceIndex] = nil
      end
    end
def setPieceRequested(pieceIndex, bool)
      if bool
        @requestedPieces.set pieceIndex
        @pieceRequestTime[pieceIndex] = Time.new
      else
        @requestedPieces.clear pieceIndex
        @pieceRequestTime[pieceIndex] = nil
      end
    end
Set whether the piece with the passed pieceIndex is requested or not.