// Path: tsap/src/org/tribler/tsap/thumbgrid/TORRENT_HEALTH.java
// public enum TORRENT_HEALTH implements Serializable {
// 	UNKNOWN, RED, YELLOW, GREEN;
// 
// 	/**
// 	 * Returns the color value belonging to health value
// 	 * 
// 	 * @param health
// 	 *            The health of torrent
// 	 * @return The color belonging to the health
// 	 */
// 	public static int toColor(TORRENT_HEALTH health) {
// 		switch (health) {
// 		case RED:
// 			return Color.RED;
// 		case YELLOW:
// 			return Color.YELLOW;
// 		case GREEN:
// 			return Color.GREEN;
// 		default:
// 			return Color.GRAY;
// 		}
// 	}
// }


import java.io.File;
import java.io.Serializable;
import org.tribler.tsap.thumbgrid.TORRENT_HEALTH;
package org.tribler.tsap;



/**
 * Class representing a basic Torrent file containing the metadata of a torrent
 * including its name, infohash, etc.
 * 
 * @author Niels Spruit
 * 
 */
public class Torrent implements Serializable {

	private static final long serialVersionUID = 1619276011406943212L;

	private String name;
	private String infoHash;
	private long size;
	private int seeders;
	private int leechers;
	private File thumbnailFile = null;
	private String category;

	/**
	 * Constructor: initializes the instance variables
	 * 
	 * @param name
	 *            The name of the torrent
	 * @param infoHash
	 *            The infohash of the torrent
	 * @param size
	 *            The size of the torrent
	 * @param seeders
	 *            The number of seeders of the torrent
	 * @param leechers
	 *            The number of leechers of the torrent
	 * @param category
	 *            The category of the torrent
	 */
	public Torrent(String name, String infoHash, long size, int seeders,
			int leechers, String category) {
		this.name = name;
		this.infoHash = infoHash;
		this.size = size;
		this.seeders = seeders;
		this.leechers = leechers;
// Path: tsap/src/org/tribler/tsap/thumbgrid/TORRENT_HEALTH.java
// public enum TORRENT_HEALTH implements Serializable {
// 	UNKNOWN, RED, YELLOW, GREEN;
// 
// 	/**
// 	 * Returns the color value belonging to health value
// 	 * 
// 	 * @param health
// 	 *            The health of torrent
// 	 * @return The color belonging to the health
// 	 */
// 	public static int toColor(TORRENT_HEALTH health) {
// 		switch (health) {
// 		case RED:
// 			return Color.RED;
// 		case YELLOW:
// 			return Color.YELLOW;
// 		case GREEN:
// 			return Color.GREEN;
// 		default:
// 			return Color.GRAY;
// 		}
// 	}
// }


// Path: tsap/src/org/tribler/tsap/Torrent.java
import java.io.File;
import java.io.Serializable;
import org.tribler.tsap.thumbgrid.TORRENT_HEALTH;

package org.tribler.tsap;



/**
 * Class representing a basic Torrent file containing the metadata of a torrent
 * including its name, infohash, etc.
 * 
 * @author Niels Spruit
 * 
 */
public class Torrent implements Serializable {

	private static final long serialVersionUID = 1619276011406943212L;

	private String name;
	private String infoHash;
	private long size;
	private int seeders;
	private int leechers;
	private File thumbnailFile = null;
	private String category;

	/**
	 * Constructor: initializes the instance variables
	 * 
	 * @param name
	 *            The name of the torrent
	 * @param infoHash
	 *            The infohash of the torrent
	 * @param size
	 *            The size of the torrent
	 * @param seeders
	 *            The number of seeders of the torrent
	 * @param leechers
	 *            The number of leechers of the torrent
	 * @param category
	 *            The category of the torrent
	 */
	public Torrent(String name, String infoHash, long size, int seeders,
			int leechers, String category) {
		this.name = name;
		this.infoHash = infoHash;
		this.size = size;
		this.seeders = seeders;
		this.leechers = leechers;
		this.category = category;