Class PCMDeclarationsReader
- java.lang.Object
-
- de.uka.ipd.sdq.dsexplore.qml.pcm.reader.PCMDeclarationsReader
-
public class PCMDeclarationsReader extends Object
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:
QMLDeclarationsReader
-
-
Field Summary
Fields Modifier and Type Field Description protected List<EvaluationAspectWithContext>
pcmConstraints
protected List<EvaluationAspectWithContext>
pcmObjectives
protected String[]
PCMProfilePaths
protected List<SimpleQMLProfile>
pcmProfiles
protected QMLDeclarationsReader
qmlReader
protected static HashMap<String,EvaluationAspectWithContext>
retranslationMap
-
Constructor Summary
Constructors Constructor Description PCMDeclarationsReader(String PCMProfilePath)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
equalUsageModels(org.palladiosimulator.pcm.usagemodel.UsageModel um1, org.palladiosimulator.pcm.usagemodel.UsageModel um2)
QMLContractType
getContractTypeForUsageModel(org.palladiosimulator.pcm.usagemodel.UsageModel usageModel)
List<EvaluationAspectWithContext>
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)
List<EvaluationAspectWithContext>
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 Detail
-
PCMProfilePaths
protected final String[] PCMProfilePaths
-
retranslationMap
protected static HashMap<String,EvaluationAspectWithContext> retranslationMap
-
qmlReader
protected QMLDeclarationsReader qmlReader
-
pcmProfiles
protected List<SimpleQMLProfile> pcmProfiles
-
pcmConstraints
protected List<EvaluationAspectWithContext> pcmConstraints
-
pcmObjectives
protected List<EvaluationAspectWithContext> pcmObjectives
-
-
Constructor Detail
-
PCMDeclarationsReader
public PCMDeclarationsReader(String PCMProfilePath)
-
-
Method Detail
-
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)
-
-