Package evaluation
Class StrategicIndicator
java.lang.Object
evaluation.StrategicIndicator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<StrategicIndicatorEvaluationDTO>getEvaluations(String projectId) This method returns the list of the strategic indicators and the last evaluation.static List<StrategicIndicatorEvaluationDTO>getEvaluations(String projectId, LocalDate from, LocalDate to) This method returns the list of the strategic indicators and the evaluations belonging to the specific period defined by the parameters from and to.getFactorsEvaluations(String projectId) This method returns the list of the strategic indicators.getFactorsEvaluations(String projectId, String strategicIndicatorID) This method returns the list of factors associated to the strategic indicator evaluation passed as a parameter and their last evaluation.getFactorsEvaluations(String projectId, String strategicIndicatorID, LocalDate from, LocalDate to) This method returns the list of factors associated to the strategic indicator evaluation passed as parameter and their evaluations belonging to the period defined by the parameters from and to.getFactorsEvaluations(String projectId, LocalDate from, LocalDate to) This method returns the list of the strategic indicators.static StringThe external repository have two identifiers for each element, the field used by the repository (hard ID) and the id and evaluation date used by the "users".static List<FactorMetricEvaluationDTO>getMetricsEvaluations(String projectId, String strategicIndicatorID) This method returns the list of metrics associated to every factor of a strategic indicator passed as parameter and the last metric evaluation.static List<FactorMetricEvaluationDTO>getMetricsEvaluations(String projectId, String strategicIndicatorID, LocalDate from, LocalDate to) This method returns the list of metrics associated to every factor of a strategic indicator passed as parameter and their evaluations belonging to the period defined by the parameters from and to.getSingleEvaluation(String projectId, String strategicIndicatorId) This method returns the last evaluation of the strategic indicator passed as a parameter.static voidReset the map which stores the strategic indicators' identifiers and names.static com.mongodb.client.result.UpdateResultsetStrategicIndicatorEvaluation(String projectId, String strategicIndicatorID, String strategicIndicatorName, String strategicIndicatorDescription, Float value, String info, LocalDate evaluationDate, EstimationEvaluationDTO estimation, List<String> missingFactors, long datesMismatch) This method updates the value of an strategic indicators in a given date, if it doesn't exist a new strategic indicator is created with the given data.
-
Constructor Details
-
StrategicIndicator
public StrategicIndicator()
-
-
Method Details
-
getEvaluations
This method returns the list of the strategic indicators and the last evaluation. The evaluation contains the evaluation date and value.- Parameters:
projectId- Identifier of the project.- Returns:
- The list of strategic indicators' evaluations.
-
getSingleEvaluation
public static StrategicIndicatorEvaluationDTO getSingleEvaluation(String projectId, String strategicIndicatorId) This method returns the last evaluation of the strategic indicator passed as a parameter. The evaluation contains the evaluation date and value.- Parameters:
projectId- Identifier of the project.strategicIndicatorId- Identifier of the strategic indicator.- Returns:
- Strategic indicator evaluation.
-
getEvaluations
public static List<StrategicIndicatorEvaluationDTO> getEvaluations(String projectId, LocalDate from, LocalDate to) This method returns the list of the strategic indicators and the evaluations belonging to the specific period defined by the parameters from and to. The evaluation contains the evaluation date and value.- Parameters:
projectId- Identifier of the project.from- Initial date from the range we are querying.to- Final date from the range we are querying.- Returns:
- The list of strategic indicators' evaluations.
-
getHardID
public static String getHardID(String projectId, String strategicIndicatorID, LocalDate evaluationDate) The external repository have two identifiers for each element, the field used by the repository (hard ID) and the id and evaluation date used by the "users".- Parameters:
projectId- Identifier of the project.strategicIndicatorID- Identifier of the strategic indicator.evaluationDate- Date when the evaluation has been computed.
-
setStrategicIndicatorEvaluation
public static com.mongodb.client.result.UpdateResult setStrategicIndicatorEvaluation(String projectId, String strategicIndicatorID, String strategicIndicatorName, String strategicIndicatorDescription, Float value, String info, LocalDate evaluationDate, EstimationEvaluationDTO estimation, List<String> missingFactors, long datesMismatch) This method updates the value of an strategic indicators in a given date, if it doesn't exist a new strategic indicator is created with the given data.- Parameters:
projectId- Identifier of the project.strategicIndicatorID- Identifier of the strategic indicator.strategicIndicatorName- Name of the strategic indicator.strategicIndicatorDescription- Description of the strategic indicator.value- Evaluation value.evaluationDate- Date when the evaluation has been computed.estimation- In case we have a estimation (probabilities and probable values), instead of a single value.
-
getFactorsEvaluations
This method returns the list of the strategic indicators. For each strategic indicator, it returns the list of factors associated to it and their last evaluation. The evaluation contains the evaluation date and value.- Parameters:
projectId- Identifier of the project.- Returns:
- The list of strategic indicators' evaluations, for each strategic indicator it returns the evaluation of the factors impacting on this strategic indicator.
-
getFactorsEvaluations
public static List<StrategicIndicatorFactorEvaluationDTO> getFactorsEvaluations(String projectId, LocalDate from, LocalDate to) This method returns the list of the strategic indicators. For each strategic indicator, it returns the list of factors associated to it and their evaluations belonging to the period defined by the parameters from and to. The evaluation contains the evaluation date and value.- Parameters:
projectId- Identifier of the project.from- Initial date from the range we are querying.to- Final date from the range we are querying.- Returns:
- The list of strategic indicators' evaluations, for each strategic indicator it returns the evaluation of the factors impacting on this strategic indicator.
-
getFactorsEvaluations
public static StrategicIndicatorFactorEvaluationDTO getFactorsEvaluations(String projectId, String strategicIndicatorID) This method returns the list of factors associated to the strategic indicator evaluation passed as a parameter and their last evaluation. The evaluation contains the evaluation date and value.- Parameters:
projectId- Identifier of the project.strategicIndicatorID- Identifier of the strategic indicator.- Returns:
- The strategic indicator evaluations, for this strategic indicator it returns the evaluation of the factors impacting on this strategic indicator.
-
getFactorsEvaluations
public static StrategicIndicatorFactorEvaluationDTO getFactorsEvaluations(String projectId, String strategicIndicatorID, LocalDate from, LocalDate to) This method returns the list of factors associated to the strategic indicator evaluation passed as parameter and their evaluations belonging to the period defined by the parameters from and to. The evaluation contains the evaluation date and value.- Parameters:
projectId- Identifier of the project.strategicIndicatorID- Identifier of the strategic indicator.from- Initial date from the range we are querying.to- Final date from the range we are querying.- Returns:
- The strategic indicator evaluations, for this strategic indicator it returns the evaluation of the factors impacting on this strategic indicator.
-
getMetricsEvaluations
public static List<FactorMetricEvaluationDTO> getMetricsEvaluations(String projectId, String strategicIndicatorID) This method returns the list of metrics associated to every factor of a strategic indicator passed as parameter and the last metric evaluation. The evaluation contains the evaluation date and value.- Parameters:
projectId- Identifier of the project.strategicIndicatorID- Identifier of the strategic indicator.- Returns:
- The list of the evaluation of the factors impacting on this strategic indicator. For each factor, the evaluation of the metrics used for computing this factor.
-
getMetricsEvaluations
public static List<FactorMetricEvaluationDTO> getMetricsEvaluations(String projectId, String strategicIndicatorID, LocalDate from, LocalDate to) This method returns the list of metrics associated to every factor of a strategic indicator passed as parameter and their evaluations belonging to the period defined by the parameters from and to. The evaluation contains the evaluation date and value.- Parameters:
projectId- Identifier of the project.strategicIndicatorID- Identifier of the strategic indicator.from- Starting date of the evaluations.to- Ending date of the evaluations.- Returns:
- The list of the evaluation of the factors impacting on this strategic indicator. For each factor, the evaluation of the metrics used for computing this factor.
-
resetIndicatorsIDNames
public static void resetIndicatorsIDNames()Reset the map which stores the strategic indicators' identifiers and names.
-