package objective.taskboard.monitor;

import org.springframework.stereotype.Component;

import objective.taskboard.data.ScenarioChartData;
import objective.taskboard.monitor.StrategicalProjectDataSet.MonitorData;
import objective.taskboard.scenario.model.BasicProjectModel;
import objective.taskboard.scenario.model.BasicScenarioModel;
import objective.taskboard.utils.Clock;

@Component
class BudgetMonitorCalculator {
    private MonitorDataCalculator calculator;
    
    public BudgetMonitorCalculator(Clock clock) {
        calculator = new MonitorDataCalculator(clock);
    }
    
    public MonitorData calculate(BasicProjectModel<BasicScenarioModel> projectModel, ScenarioChartData projectData) {
        return calculator.generateMonitorData(
                "Budget", 
                "Project spent budget information.", 
                projectModel,
                projectData.budgetData);
    }
}
