Class PCMDeclarationsReader
java.lang.Object
de.uka.ipd.sdq.dsexplore.qml.pcm.reader.PCMDeclarationsReader
Reads PCM specific QML definitions. It is used by quality attribute evaluators to get
the in QML defined objectives and constraints. Currently, the QML based mating heuristics
currently uses the retranslation to get the original information about the defined constraints.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<EvaluationAspectWithContext>
protected List<EvaluationAspectWithContext>
protected final String[]
protected List<SimpleQMLProfile>
protected QMLDeclarationsReader
protected static HashMap<String,
EvaluationAspectWithContext> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
equalUsageModels
(org.palladiosimulator.pcm.usagemodel.UsageModel um1, org.palladiosimulator.pcm.usagemodel.UsageModel um2) getContractTypeForUsageModel
(org.palladiosimulator.pcm.usagemodel.UsageModel usageModel) getDimensionConstraintContextsForUsageModel
(org.palladiosimulator.pcm.usagemodel.UsageModel usageModel, String dimensionId) protected List<EvaluationAspectWithContext>
getDimensionCriterionContexts
(String dimensionId, Class<? extends Criterion> criterionClass) protected List<EvaluationAspectWithContext>
getDimensionCriterionContextsForUsageModel
(org.palladiosimulator.pcm.usagemodel.UsageModel usageModel, String dimensionId, Class<? extends Criterion> CriterionClass) getDimensionObjectiveContextsForUsageModel
(org.palladiosimulator.pcm.usagemodel.UsageModel usageModel, String dimensionId) protected void
init()
static EvaluationAspectWithContext
retranslateCriterionToEvaluationAspect
(org.opt4j.core.Criterion criterion) org.opt4j.core.InfeasibilityConstraint
translateEvalAspectToInfeasibilityConstraint
(EvaluationAspectWithContext aspectContext, InfeasibilityConstraintBuilder builder) org.opt4j.core.Objective
translateEvalAspectToObjective
(String qualityAttribute, EvaluationAspectWithContext aspectContext, ObjectiveBuilder builder) org.opt4j.core.SatisfactionConstraint
translateEvalAspectToSatisfactionConstraint
(EvaluationAspectWithContext aspectContext, org.opt4j.core.Objective objective, SatisfactionConstraintBuilder builder)
-
Field Details
-
PCMProfilePaths
-
retranslationMap
-
qmlReader
-
pcmProfiles
-
pcmConstraints
-
pcmObjectives
-
-
Constructor Details
-
PCMDeclarationsReader
-
-
Method Details
-
getContractTypeForUsageModel
public QMLContractType getContractTypeForUsageModel(org.palladiosimulator.pcm.usagemodel.UsageModel usageModel) -
init
protected void init() -
getDimensionObjectiveContextsForUsageModel
public List<EvaluationAspectWithContext> getDimensionObjectiveContextsForUsageModel(org.palladiosimulator.pcm.usagemodel.UsageModel usageModel, String dimensionId) -
getDimensionConstraintContextsForUsageModel
public List<EvaluationAspectWithContext> getDimensionConstraintContextsForUsageModel(org.palladiosimulator.pcm.usagemodel.UsageModel usageModel, String dimensionId) -
getDimensionCriterionContextsForUsageModel
protected List<EvaluationAspectWithContext> getDimensionCriterionContextsForUsageModel(org.palladiosimulator.pcm.usagemodel.UsageModel usageModel, String dimensionId, Class<? extends Criterion> CriterionClass) -
equalUsageModels
protected boolean equalUsageModels(org.palladiosimulator.pcm.usagemodel.UsageModel um1, org.palladiosimulator.pcm.usagemodel.UsageModel um2) -
getDimensionCriterionContexts
protected List<EvaluationAspectWithContext> getDimensionCriterionContexts(String dimensionId, Class<? extends Criterion> criterionClass) -
translateEvalAspectToInfeasibilityConstraint
public org.opt4j.core.InfeasibilityConstraint translateEvalAspectToInfeasibilityConstraint(EvaluationAspectWithContext aspectContext, InfeasibilityConstraintBuilder builder) -
translateEvalAspectToSatisfactionConstraint
public org.opt4j.core.SatisfactionConstraint translateEvalAspectToSatisfactionConstraint(EvaluationAspectWithContext aspectContext, org.opt4j.core.Objective objective, SatisfactionConstraintBuilder builder) -
translateEvalAspectToObjective
public org.opt4j.core.Objective translateEvalAspectToObjective(String qualityAttribute, EvaluationAspectWithContext aspectContext, ObjectiveBuilder builder) -
retranslateCriterionToEvaluationAspect
public static EvaluationAspectWithContext retranslateCriterionToEvaluationAspect(org.opt4j.core.Criterion criterion)
-