package com.yonge.netty.dto;

import org.apache.commons.lang3.builder.ToStringBuilder;

public class SectionAnalysis {

	// 小节下标
	private int measureIndex;

	// 音符数
	private int noteNum;

	// 持续时长
	private double durationTime;

	// 得分
	private float score;
	
	private boolean isIngore;
	
	private int measureRenderIndex;
	
	public SectionAnalysis() {
		// TODO Auto-generated constructor stub
	}

	public SectionAnalysis(int index, int noteNum, float durationTime, float score, boolean isIngore) {
		this.measureIndex = index;
		this.noteNum = noteNum;
		this.durationTime = durationTime;
		this.score = score;
		this.isIngore = isIngore;
	}

	public int getIndex() {
		return measureIndex;
	}

	public void setIndex(int measureIndex) {
		this.measureIndex = measureIndex;
	}

	public int getNoteNum() {
		return noteNum;
	}

	public void setNoteNum(int noteNum) {
		this.noteNum = noteNum;
	}

	public double getDurationTime() {
		return durationTime;
	}

	public void setDurationTime(double durationTime) {
		this.durationTime = durationTime;
	}

	public float getScore() {
		return score;
	}

	public void setScore(float score) {
		this.score = score;
	}
	
	public boolean isIngore() {
		return isIngore;
	}

	public void setIsIngore(boolean isIngore) {
		this.isIngore = isIngore;
	}

	public int getMeasureRenderIndex() {
		return measureRenderIndex;
	}

	public void setMeasureRenderIndex(int measureRenderIndex) {
		this.measureRenderIndex = measureRenderIndex;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

}
