package net.micode.myapplication.model;

public class ClassificationResult {
    private Course course;
    private Chapter chapter;
    private double confidenceScore;
    private String reason;

    public ClassificationResult() {
    }

    public ClassificationResult(Course course, Chapter chapter, double confidenceScore, String reason) {
        this.course = course;
        this.chapter = chapter;
        this.confidenceScore = confidenceScore;
        this.reason = reason;
    }

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public Chapter getChapter() {
        return chapter;
    }

    public void setChapter(Chapter chapter) {
        this.chapter = chapter;
    }

    public double getConfidenceScore() {
        return confidenceScore;
    }

    public void setConfidenceScore(double confidenceScore) {
        this.confidenceScore = confidenceScore;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Override
    public String toString() {
        return "ClassificationResult{" +
                "course=" + (course != null ? course.getCourseName() : "null") +
                ", chapter=" + (chapter != null ? chapter.getChapterTitle() : "null") +
                ", confidenceScore=" + confidenceScore +
                ", reason='" + reason + '\'' +
                '}';
    }
}