package Coordinator_Worker;

// Class to represent a term in a document with a count of occurrences
public class Term {
    private String term;  // The term itself
    private double numOfFile;  // The count of occurrences in files

    // Constructor to initialize a Term with a term name
    public Term(String term) {
        this.term = term;
    }

    // Getter method to retrieve the count of occurrences in files
    public double getNumOfFile() {
        return numOfFile;
    }

    // Getter method to retrieve the term name
    public String getTermName() {
        return term;
    }

    // Method to increase the count of occurrences in files
    public void increase() {
        numOfFile++;
    }
}
