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

COVERAGE SUMMARY FOR SOURCE FILE [LQNQualityAttributeDeclaration.java]

nameclass, %method, %block, %line, %
LQNQualityAttributeDeclaration.java0%   (0/1)0%   (0/2)0%   (0/35)0%   (0/8)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class LQNQualityAttributeDeclaration0%   (0/1)0%   (0/2)0%   (0/35)0%   (0/8)
LQNQualityAttributeDeclaration (): void 0%   (0/1)0%   (0/3)0%   (0/1)
canEvaluateAspectForDimension (EvaluationAspect, Dimension): boolean 0%   (0/1)0%   (0/32)0%   (0/7)

1/**
2 * 
3 */
4package de.uka.ipd.sdq.dsexplore.analysis.lqn;
5 
6import org.eclipse.emf.ecore.util.EcoreUtil;
7 
8import de.uka.ipd.sdq.dsexplore.analysis.AbstractPerformanceAttributeDeclaration;
9import de.uka.ipd.sdq.dsexplore.analysis.IAnalysisQualityAttributeDeclaration;
10import de.uka.ipd.sdq.dsexplore.qml.contract.QMLContract.EvaluationAspect;
11import de.uka.ipd.sdq.dsexplore.qml.contract.QMLContract.Mean;
12import de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.Dimension;
13 
14/**
15 * This class declares, which {@code Dimension} and {@code EvaluationAspect} can 
16 * be evaluated by this extension.
17 * 
18 * @author noorshams
19 *
20 */
21public class LQNQualityAttributeDeclaration extends AbstractPerformanceAttributeDeclaration implements IAnalysisQualityAttributeDeclaration {
22 
23        /* (non-Javadoc)
24         * @see de.uka.ipd.sdq.dsexplore.analysis.IAnalysisQualityAttribute#canEvaluateAspect(de.uka.ipd.sdq.dsexplore.qml.contract.QMLContract.EvaluationAspect)
25         */
26        @Override
27        public boolean canEvaluateAspectForDimension(EvaluationAspect aspect, Dimension dimension) {
28                if(EcoreUtil.equals(dimension, this.responseTimeDimension) && aspect instanceof Mean) {
29                        return true;
30                }
31                if(EcoreUtil.equals(dimension, this.throughputDimension) && aspect instanceof Mean) {
32                        return true;
33                }
34                if(EcoreUtil.equals(dimension, this.maxUtilizationDimension) && aspect instanceof Mean) {
35                        return true;
36                }
37                return false;
38        }
39 
40 
41 
42}

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