Package evaluation

Class Relations

java.lang.Object
evaluation.Relations

public class Relations extends Object
  • Constructor Details

    • Relations

      public Relations()
  • Method Details

    • getRelations

      public static ArrayList<RelationDTO> getRelations(String projectID)
      This method returns the existing relations from the last 15 days.
      Parameters:
      projectID - Identifier of the project.
      Returns:
      A list of this relations (RelationDTO).
    • getRelations

      public static ArrayList<RelationDTO> getRelations(String projectID, LocalDate dateTo)
      This method returns the existing relations from the 15 days prior to the set ending date.
      Parameters:
      projectID - Identifier of the project.
      dateTo - The ending date of the 15 days time period (included).
      Returns:
      A list of this relations (RelationDTO).
    • setStrategicIndicatorFactorRelation

      public static boolean setStrategicIndicatorFactorRelation(String projectID, String[] factorID, String strategicIndicatorID, LocalDate evaluationDate, double[] weight, double[] sourceValue, String[] sourceCategories, String targetValue)
      This method creates a document in a certain Relations index in the database. Factor -> Strategic Indicator.
      Returns:
      A boolean that indicates if the operation was performed correctly.
    • setQualityFactorMetricRelation

      public static boolean setQualityFactorMetricRelation(String projectID, String[] metrics, String qualityFactorID, LocalDate evaluationDate, double[] weight, double[] sourceValue, String[] sourceCategories, String targetValue)
      This method creates a document in a certain Relations index in the database. Metric -> Factor.
      Returns:
      A boolean that indicates if the operation was performed correctly.