package cn.com.qmth.stmms.biz.mark.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 阅卷轨迹
 *
 */
@Entity
@Table(name = "m_header_track")
public class HeaderTrack implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 6917238036373630524L;

    @EmbeddedId
    private HeaderTrackPK pk;

    @Column(name = "exam_id", nullable = false)
    private Integer examId;

    @Column(name = "subject_code", nullable = false)
    private String subjectCode;

    @Column(name = "group_number", nullable = false)
    private Integer groupNumber;

    @Column(name = "user_id", nullable = false)
    private Integer userId;

    /**
     * 轨迹分数
     */
    @Column(name = "score", nullable = false)
    private Double score;

    /**
     * X轴相对位置，0~1
     */
    @Column(name = "position_x", nullable = false)
    private Double positionX;

    /**
     * Y轴相对位置，0~1
     */
    @Column(name = "position_y", nullable = false)
    private Double positionY;

    /**
     * 所在裁切图序号
     */
    @Column(name = "offset_index", nullable = false)
    private Integer offsetIndex;

    /**
     * 相对裁切图X轴坐标
     */
    @Column(name = "offset_x", nullable = false)
    private Integer offsetX;

    /**
     * 相对裁切图Y轴坐标
     */
    @Column(name = "offset_y", nullable = false)
    private Integer offsetY;

    /**
     * 是否未作答
     */
    @Column(name = "unanswered", nullable = false)
    private boolean unanswered;

    public HeaderTrack() {
        this.pk = new HeaderTrackPK();
    }

    public Integer getStudentId() {
        return pk.getStudentId();
    }

    public void setStudentId(Integer studentId) {
        pk.setStudentId(studentId);
    }

    public String getQuestionNumber() {
        return pk.getQuestionNumber();
    }

    public void setQuestionNumber(String questionNumber) {
        pk.setQuestionNumber(questionNumber);
    }

    public Integer getNumber() {
        return pk.getNumber();
    }

    public void setNumber(Integer number) {
        pk.setNumber(number);
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public Double getPositionX() {
        return positionX;
    }

    public void setPositionX(Double positionX) {
        this.positionX = positionX;
    }

    public Double getPositionY() {
        return positionY;
    }

    public void setPositionY(Double positionY) {
        this.positionY = positionY;
    }

    public Integer getGroupNumber() {
        return groupNumber;
    }

    public void setGroupNumber(Integer groupNumber) {
        this.groupNumber = groupNumber;
    }

    public Integer getExamId() {
        return examId;
    }

    public void setExamId(Integer examId) {
        this.examId = examId;
    }

    public String getSubjectCode() {
        return subjectCode;
    }

    public void setSubjectCode(String subjectCode) {
        this.subjectCode = subjectCode;
    }

    public Integer getOffsetIndex() {
        return offsetIndex;
    }

    public void setOffsetIndex(Integer offsetIndex) {
        this.offsetIndex = offsetIndex;
    }

    public Integer getOffsetX() {
        return offsetX;
    }

    public void setOffsetX(Integer offsetX) {
        this.offsetX = offsetX;
    }

    public Integer getOffsetY() {
        return offsetY;
    }

    public void setOffsetY(Integer offsetY) {
        this.offsetY = offsetY;
    }

    public boolean isUnanswered() {
        return unanswered;
    }

    public void setUnanswered(boolean unanswered) {
        this.unanswered = unanswered;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

}
