⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 priorityshape.java

📁 基于JXTA开发平台的下载软件开发源代码
💻 JAVA
字号:
/*
 * Created by Joseph Bridgewater
 * Created on Jan 17, 2006
 * Copyright (C) 2005, 2006 Aelitis, All Rights Reserved.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 * 
 * AELITIS, SAS au capital de 46,603.30 euros
 * 8 Allee Lenotre, La Grille Royale, 78600 Le Mesnil le Roi, France.
 *
 */

package com.aelitis.azureus.core.peermanager.piecepicker.priority;


/**
 * @author MjrTom Jan 17, 2006
 */
public interface PriorityShape
{
	public static final int PRIORITY_MODE_NO_RANDOM		=0x00000001;	// random selection will not occur
	public static final int PRIORITY_MODE_IGNORE_RARITY	=0x00000002;	// priority boosts for rarity will not be applied
	public static final int PRIORITY_MODE_FULL_PIECES	=0x00000004;	// requests of full pieces are prefered over blocks requests
	public static final int PRIORITY_MODE_AUTO_RESERVE	=0x00000008;	// when a request is made, the piece will automatically be reserved to the peer
	public static final int PRIORITY_MODE_REVERSE_ORDER	=0x00000010;	// inverse ordering (ie end to front and/or falling ramp)
	public static final int PRIORITY_MODE_AUTO_SLIDE	=0x00000020;	// I don't know if this can be practically implemented
	public static final int PRIORITY_MODE_RAMP			=0x00000040;	// priority adjustment ramps (otherwise flat)
	public static final int PRIORITY_MODE_STATIC_PRIORITY =0x00000080;	// base (start) priority is not further modified

	public int getStart();
	public int getEnd();
	public int getMode();
	public long getPriority();
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -