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

COVERAGE SUMMARY FOR SOURCE FILE [SimuComQualityAttributeDeclaration.java]

nameclass, %method, %block, %line, %
SimuComQualityAttributeDeclaration.java0%   (0/1)0%   (0/2)0%   (0/25)0%   (0/7)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SimuComQualityAttributeDeclaration0%   (0/1)0%   (0/2)0%   (0/25)0%   (0/7)
SimuComQualityAttributeDeclaration (): void 0%   (0/1)0%   (0/3)0%   (0/2)
canEvaluateAspectForDimension (EvaluationAspect, Dimension): boolean 0%   (0/1)0%   (0/22)0%   (0/5)

1/**
2 * 
3 */
4package de.uka.ipd.sdq.dsexplore.analysis.simucom;
5 
6 
7import org.eclipse.emf.ecore.EObject;
8import org.eclipse.emf.ecore.util.EcoreUtil;
9 
10import de.uka.ipd.sdq.dsexplore.analysis.AbstractPerformanceAttributeDeclaration;
11import de.uka.ipd.sdq.dsexplore.analysis.IAnalysisQualityAttributeDeclaration;
12import de.uka.ipd.sdq.dsexplore.qml.contract.QMLContract.EvaluationAspect;
13import de.uka.ipd.sdq.dsexplore.qml.contract.QMLContract.Mean;
14import de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.Dimension;
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 * 
22 * @author noorshams
23 *
24 */
25public class SimuComQualityAttributeDeclaration extends AbstractPerformanceAttributeDeclaration implements IAnalysisQualityAttributeDeclaration {
26        
27        public SimuComQualityAttributeDeclaration(){
28                super();
29 
30 
31        }
32 
33        /* (non-Javadoc)
34         * @see de.uka.ipd.sdq.dsexplore.analysis.IAnalysisQualityAttribute#canEvaluateAspect(de.uka.ipd.sdq.dsexplore.qml.contract.QMLContract.EvaluationAspect)
35         */
36        @Override
37        public boolean canEvaluateAspectForDimension(EvaluationAspect aspect, Dimension dimension) {
38                if(EcoreUtil.equals(dimension, this.responseTimeDimension) && aspect instanceof Mean) {
39                        return true;
40                }
41                if(EcoreUtil.equals(dimension, this.throughputDimension) && aspect instanceof Mean) {
42                        return true;
43                }
44                return false;
45        }
46 
47}

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