package com.qmth.qrzk.repository.user.model;

import java.util.List;

/**
 * 
 * <p>
 * 相似试卷实体类
 * </p>
 * 
 * @author songyue
 * @date 2016-06-21
 */
public class SimilarPaper implements Comparable<SimilarPaper>{
	private String similarPaperNo;   // 试卷编号
	private String similarPaperBody; // 试卷内容
	private String similarity;       // 相似度
	private String courseName;       // 课程名称
	private String bookName;         // 教材名称
	private String createdBy;       // 创建人
    private String createdByName;    // 创建人姓名
    private String taskId;
    private String taskNo;
    private String courseNo;       // 课程编号
    private Integer Id;
    private List <Question> questionList;
    private List <SimilarPaperQuestion> similarPaperQuesList1;
    private List <SimilarPaperQuestion> similarPaperQuesList2;


	@Override
	public int compareTo(SimilarPaper o) {
		// TODO Auto-generated method stub
		if(Double.parseDouble(this.getSimilarity()) < Double.parseDouble(o.getSimilarity())){
			return 1;
		}else if(Double.parseDouble(this.getSimilarity()) > Double.parseDouble(o.getSimilarity())){
			return -1;
		}else{
			return 0;
		}
	}

	public String getSimilarPaperNo() {
		return similarPaperNo;
	}

	public void setSimilarPaperNo(String similarPaperNo) {
		this.similarPaperNo = similarPaperNo;
	}

	public String getSimilarPaperBody() {
		return similarPaperBody;
	}


	public void setSimilarPaperBody(String similarPaperBody) {
		this.similarPaperBody = similarPaperBody;
	}


	public String getSimilarity() {
		return similarity;
	}


	public void setSimilarity(String similarity) {
		this.similarity = similarity;
	}


	public String getCourseName() {
		return courseName;
	}


	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}


	public String getBookName() {
		return bookName;
	}


	public void setBookName(String bookName) {
		this.bookName = bookName;
	}


	public String getCreatedBy() {
		return createdBy;
	}


	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}


	public String getCreatedByName() {
		return createdByName;
	}


	public void setCreatedByName(String createdByName) {
		this.createdByName = createdByName;
	}

	public String getTaskId() {
		return taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}

	public String getTaskNo() {
		return taskNo;
	}

	public void setTaskNo(String taskNo) {
		this.taskNo = taskNo;
	}

	public String getCourseNo() {
		return courseNo;
	}

	public void setCourseNo(String courseNo) {
		this.courseNo = courseNo;
	}

	public Integer getId() {
		return Id;
	}

	public void setId(Integer id) {
		Id = id;
	}

	public List<Question> getQuestionList() {
		return questionList;
	}

	public void setQuestionList(List<Question> questionList) {
		this.questionList = questionList;
	}

	public List<SimilarPaperQuestion> getSimilarPaperQuesList1() {
		return similarPaperQuesList1;
	}

	public void setSimilarPaperQuesList1(List<SimilarPaperQuestion> similarPaperQuesList1) {
		this.similarPaperQuesList1 = similarPaperQuesList1;
	}

	public List<SimilarPaperQuestion> getSimilarPaperQuesList2() {
		return similarPaperQuesList2;
	}

	public void setSimilarPaperQuesList2(List<SimilarPaperQuestion> similarPaperQuesList2) {
		this.similarPaperQuesList2 = similarPaperQuesList2;
	}
	
}
