Package de.uka.ipd.sdq.dsexplore.helper
Class GenotypeReader
- java.lang.Object
-
- de.uka.ipd.sdq.dsexplore.helper.GenotypeReader
-
public class GenotypeReader extends Object
-
-
Constructor Summary
Constructors Constructor Description GenotypeReader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<CriterionAndEvaluator>
determineMissingObjectives(List<CriterionAndEvaluator> desiredObjectives, List<List<CriterionAndEvaluator>> availableObjectives)
Return those objectives in desiredObjectives that are not contained in orderedObjectives.static List<DesignDecisionGenotype>
getGenotypes(URI filename, de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard blackboard)
Reads the genotypes from the specified files.static List<DSEIndividual>
getIndividuals(URI filename, de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard blackboard)
Load complete Individuals from the file (with objectives and utilisation info, if present).static List<DSEObjectives>
getObjectives(URI filename)
Note that this method changes the internal objectives and deletes all objectives that are not found in the file.static void
setTask(org.opt4j.start.Opt4JTask t)
-
-
-
Method Detail
-
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:
-
-