@Test public void testEvaluateWithMetrics() { agreementEval.evaluate(agreement, metricsMap); }
public Map<IGuaranteeTerm, GuaranteeTermEvaluationResult> evaluate(IAgreement agreement, Map<IGuaranteeTerm, List<IMonitoringMetric>> metricsMap) { checkInitialized(false); Map<IGuaranteeTerm,GuaranteeTermEvaluationResult> result = new HashMap<IGuaranteeTerm,GuaranteeTermEvaluationResult>(); Date now = new Date(); for (IGuaranteeTerm term : metricsMap.keySet()) { List<IMonitoringMetric> metrics = metricsMap.get(term); if (metrics.size() > 0) { GuaranteeTermEvaluationResult aux = termEval.evaluate(agreement, term, metrics, now); result.put(term, aux); } } return result; }
AgreementEvaluator { public Map<IGuaranteeTerm, GuaranteeTermEvaluationResult> evaluate(IAgreement agreement, Map<IGuaranteeTerm, List<IMonitoringMetric>> metricsMap) { checkInitialized(false); Map<IGuaranteeTerm,GuaranteeTermEvaluationResult> result = new HashMap<IGuaranteeTerm,GuaranteeTermEvaluationResult>(); Date now = new Date(); for (IGuaranteeTerm term : metricsMap.keySet()) { List<IMonitoringMetric> metrics = metricsMap.get(term); if (metrics.size() > 0) { GuaranteeTermEvaluationResult aux = termEval.evaluate(agreement, term, metrics, now); result.put(term, aux); } } return result; } }
AgreementEvaluator { public Map<IGuaranteeTerm, GuaranteeTermEvaluationResult> evaluate(IAgreement agreement, Map<IGuaranteeTerm, List<IMonitoringMetric>> metricsMap) { checkInitialized(false); Map<IGuaranteeTerm,GuaranteeTermEvaluationResult> result = new HashMap<IGuaranteeTerm,GuaranteeTermEvaluationResult>(); Date now = new Date(); for (IGuaranteeTerm term : metricsMap.keySet()) { List<IMonitoringMetric> metrics = metricsMap.get(term); if (metrics.size() > 0) { GuaranteeTermEvaluationResult aux = termEval.evaluate(agreement, term, metrics, now); result.put(term, aux); } } return result; } AgreementEvaluator(); }
AgreementEvaluator { public Map<IGuaranteeTerm, GuaranteeTermEvaluationResult> evaluate(IAgreement agreement, Map<IGuaranteeTerm, List<IMonitoringMetric>> metricsMap) { checkInitialized(false); Map<IGuaranteeTerm,GuaranteeTermEvaluationResult> result = new HashMap<IGuaranteeTerm,GuaranteeTermEvaluationResult>(); Date now = new Date(); for (IGuaranteeTerm term : metricsMap.keySet()) { List<IMonitoringMetric> metrics = metricsMap.get(term); if (metrics.size() > 0) { GuaranteeTermEvaluationResult aux = termEval.evaluate(agreement, term, metrics, now); result.put(term, aux); } } return result; } AgreementEvaluator(); Map<IGuaranteeTerm, GuaranteeTermEvaluationResult> evaluate(IAgreement agreement,
            Map<IGuaranteeTerm, List<IMonitoringMetric>> metricsMap); Map<IGuaranteeTerm, GuaranteeTermEvaluationResult> evaluateBusiness(IAgreement agreement,
            Map<IGuaranteeTerm, List<IViolation>> violationsMap); GuaranteeTermEvaluator getGuaranteeTermEvaluator(); void setGuaranteeTermEvaluator(GuaranteeTermEvaluator termEval); }
AgreementEvaluator { public Map<IGuaranteeTerm, GuaranteeTermEvaluationResult> evaluate(IAgreement agreement, Map<IGuaranteeTerm, List<IMonitoringMetric>> metricsMap) { checkInitialized(false); Map<IGuaranteeTerm,GuaranteeTermEvaluationResult> result = new HashMap<IGuaranteeTerm,GuaranteeTermEvaluationResult>(); Date now = new Date(); for (IGuaranteeTerm term : metricsMap.keySet()) { List<IMonitoringMetric> metrics = metricsMap.get(term); if (metrics.size() > 0) { GuaranteeTermEvaluationResult aux = termEval.evaluate(agreement, term, metrics, now); result.put(term, aux); } } return result; } AgreementEvaluator(); Map<IGuaranteeTerm, GuaranteeTermEvaluationResult> evaluate(IAgreement agreement,
            Map<IGuaranteeTerm, List<IMonitoringMetric>> metricsMap); Map<IGuaranteeTerm, GuaranteeTermEvaluationResult> evaluateBusiness(IAgreement agreement,
            Map<IGuaranteeTerm, List<IViolation>> violationsMap); GuaranteeTermEvaluator getGuaranteeTermEvaluator(); void setGuaranteeTermEvaluator(GuaranteeTermEvaluator termEval);  }