package com.developx.szpitale.ingest;

public class IngestResults {
    private int hospitalCount = 0;
    private int personCount = 0;
    private int roleCount = 0;
    private int affiliationCount = 0;
    private int gapCount = 0;

    public void addHospitals(int count) { hospitalCount += count; }
    public void addPeople(int count) { personCount += count; }
    public void addRoles(int count) { roleCount += count; }
    public void addAffiliations(int count) { affiliationCount += count; }
    public void addGaps(int count) { gapCount += count; }

    public int getHospitalCount() { return hospitalCount; }
    public int getPersonCount() { return personCount; }
    public int getRoleCount() { return roleCount; }
    public int getAffiliationCount() { return affiliationCount; }
    public int getGapCount() { return gapCount; }

    @Override
    public String toString() {
        return String.format(
            "Ingest results: %d hospitals, %d people, %d roles, %d affiliations, %d gaps",
            hospitalCount, personCount, roleCount, affiliationCount, gapCount
        );
    }
}
