| 1 | /** |
| 2 | * |
| 3 | */ |
| 4 | package de.uka.ipd.sdq.dsexplore.analysis; |
| 5 | |
| 6 | import java.util.ArrayList; |
| 7 | import java.util.List; |
| 8 | |
| 9 | import de.uka.ipd.sdq.dsexplore.launch.DSEConstantsContainer.QualityAttribute; |
| 10 | |
| 11 | /** |
| 12 | * This class is supposed to know all possible {@code Dimension}s,i.e. quality attributes, that can be |
| 13 | * considered in PerOpteryx. |
| 14 | * |
| 15 | * @author noorshams |
| 16 | * |
| 17 | */ |
| 18 | public class AnalysisQualityAttributes { |
| 19 | |
| 20 | /** |
| 21 | * |
| 22 | * @return a list of all considered {@code Dimension}s in PerOpteryx. |
| 23 | */ |
| 24 | public List<QualityAttribute> getAllQualityAttributes(){ |
| 25 | // List<Dimension> dimensions = new ArrayList<Dimension>(); |
| 26 | // QMLDimensionReader reader = new QMLDimensionReader(); |
| 27 | // //The definitions are in .contracttype files |
| 28 | // for(String dimensionDefinition : QMLConstantsContainer.QUALITY_ATTRIBUTE_DIMENSION_DEFINITION_PATHS) { |
| 29 | // dimensions.add(reader.getDimension(dimensionDefinition)); |
| 30 | // } |
| 31 | // return dimensions; |
| 32 | List<QualityAttribute> attributes = new ArrayList<QualityAttribute>(3); |
| 33 | attributes.add(QualityAttribute.PERFORMANCE_QUALITY); |
| 34 | attributes.add(QualityAttribute.RELIABILITY_QUALITY); |
| 35 | attributes.add(QualityAttribute.COST_QUALITY); |
| 36 | |
| 37 | return attributes; |
| 38 | |
| 39 | } |
| 40 | } |