Class GenotypeReader

java.lang.Object
de.uka.ipd.sdq.dsexplore.helper.GenotypeReader

public class GenotypeReader extends Object
  • Constructor Details

    • GenotypeReader

      public GenotypeReader()
  • Method Details

    • setTask

      public static void setTask(org.opt4j.start.Opt4JTask t)
    • getGenotypes

      public static List<DesignDecisionGenotype> getGenotypes(URI filename, de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard blackboard) throws CoreException
      Reads the genotypes from the specified files. If the file contains pretty printed genotypes and objectives are given, reads them and updates the DSEEvaluator cache by calling DSEEvaluator.addToPhenotypeCache(..). Requires confidence intervals to be available for all objectives with statistical evaluators. Reading in of objectives and confidence values is not supported for raw genotype files. Note that this method changes the internal objectives and deletes all objectives that are not found in the file.
      Parameters:
      blackboard -
      Throws:
      CoreException
    • getIndividuals

      public static List<DSEIndividual> getIndividuals(URI filename, de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard blackboard) throws CoreException
      Load complete Individuals from the file (with objectives and utilisation info, if present).
      Parameters:
      filename -
      blackboard -
      Returns:
      Throws:
      CoreException
    • getObjectives

      public static List<DSEObjectives> getObjectives(URI filename) throws CoreException
      Note that this method changes the internal objectives and deletes all objectives that are not found in the file.
      Parameters:
      filename -
      Returns:
      Throws:
      CoreException
    • determineMissingObjectives

      public static List<CriterionAndEvaluator> determineMissingObjectives(List<CriterionAndEvaluator> desiredObjectives, List<List<CriterionAndEvaluator>> availableObjectives)
      Return those objectives in desiredObjectives that are not contained in orderedObjectives.
      Parameters:
      desiredObjectives -
      availableObjectives -
      Returns: