EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.dsexplore.analysis.cost]

COVERAGE SUMMARY FOR SOURCE FILE [CostSolverQualityAttributeDeclaration.java]

nameclass, %method, %block, %line, %
CostSolverQualityAttributeDeclaration.java0%   (0/1)0%   (0/4)0%   (0/29)0%   (0/9)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class CostSolverQualityAttributeDeclaration0%   (0/1)0%   (0/4)0%   (0/29)0%   (0/9)
CostSolverQualityAttributeDeclaration (): void 0%   (0/1)0%   (0/3)0%   (0/1)
canEvaluateAspectForDimension (EvaluationAspect, Dimension): boolean 0%   (0/1)0%   (0/7)0%   (0/3)
getDimensions (): List 0%   (0/1)0%   (0/17)0%   (0/4)
getQualityAttribute (): DSEConstantsContainer$QualityAttribute 0%   (0/1)0%   (0/2)0%   (0/1)

1/**
2 * 
3 */
4package de.uka.ipd.sdq.dsexplore.analysis.cost;
5 
6import java.util.List;
7import java.util.ArrayList;
8 
9import de.uka.ipd.sdq.dsexplore.analysis.IAnalysisQualityAttributeDeclaration;
10import de.uka.ipd.sdq.dsexplore.launch.DSEConstantsContainer.QualityAttribute;
11import de.uka.ipd.sdq.dsexplore.qml.contract.QMLContract.EvaluationAspect;
12import de.uka.ipd.sdq.dsexplore.qml.contract.QMLContract.Value;
13import de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.Dimension;
14import de.uka.ipd.sdq.dsexplore.qml.handling.QMLConstantsContainer;
15import de.uka.ipd.sdq.dsexplore.qml.reader.QMLDimensionReader;
16 
17/**
18 * This class declares, which {@code Dimension} and {@code EvaluationAspect} can 
19 * be evaluated by this extension.
20 * 
21 * @author noorshams
22 *
23 */
24public class CostSolverQualityAttributeDeclaration implements IAnalysisQualityAttributeDeclaration {
25 
26        public static final String qualityAttribute = QMLConstantsContainer.QUALITY_ATTRIBUTE_DIMENSION_COST_DEFINITION_PATH;
27        
28        /* (non-Javadoc)
29         * @see de.uka.ipd.sdq.dsexplore.analysis.IQualityAttribute#getDimension()
30         */
31        @Override
32        public List<Dimension> getDimensions() {
33                Dimension dimension = new QMLDimensionReader().getDimension(qualityAttribute);
34                List<Dimension> result = new ArrayList<Dimension>(1);
35                result.add(dimension);
36                return result;
37        }
38 
39        /* (non-Javadoc)
40         * @see de.uka.ipd.sdq.dsexplore.analysis.IAnalysisQualityAttribute#getDimension()
41         */
42        @Override
43        public boolean canEvaluateAspectForDimension(EvaluationAspect aspect, Dimension dimension) {
44                if(aspect instanceof Value) {
45                        return true;
46                }
47                return false;
48        }
49 
50        @Override
51        public QualityAttribute getQualityAttribute() {
52                return QualityAttribute.COST_QUALITY;
53        }
54 
55}

[all classes][de.uka.ipd.sdq.dsexplore.analysis.cost]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov