package jnpf.attendance.schedule;

import java.io.Serializable;

/**
 * 一条历史固定班次与考勤组中某一 {@link jnpf.model.attendance.vo.ShiftPeriodVo} 的匹配结果。
 */
public final class AttendanceGroupShiftMatchResult implements Serializable {

    private final String groupShiftPeriodId;
    private final double coverageRatio;
    private final double efficiencyRatio;
    private final boolean exact;

    public AttendanceGroupShiftMatchResult(
            String groupShiftPeriodId,
            double coverageRatio,
            double efficiencyRatio,
            boolean exact) {
        this.groupShiftPeriodId = groupShiftPeriodId == null ? "" : groupShiftPeriodId;
        this.coverageRatio = coverageRatio;
        this.efficiencyRatio = efficiencyRatio;
        this.exact = exact;
    }

    public String getGroupShiftPeriodId() {
        return groupShiftPeriodId;
    }

    public double getCoverageRatio() {
        return coverageRatio;
    }

    public double getEfficiencyRatio() {
        return efficiencyRatio;
    }

    public boolean isExact() {
        return exact;
    }
}
