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

COVERAGE SUMMARY FOR SOURCE FILE [DegreeOfFreedomHelper.java]

nameclass, %method, %block, %line, %
DegreeOfFreedomHelper.java0%   (0/1)0%   (0/2)0%   (0/47)0%   (0/8)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class DegreeOfFreedomHelper0%   (0/1)0%   (0/2)0%   (0/47)0%   (0/8)
DegreeOfFreedomHelper (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getDegreeDescription (DegreeOfFreedomInstance): String 0%   (0/1)0%   (0/44)0%   (0/7)

1package de.uka.ipd.sdq.dsexplore.helper;
2 
3import de.uka.ipd.sdq.pcm.core.entity.Entity;
4import de.uka.ipd.sdq.pcm.designdecision.DegreeOfFreedomInstance;
5import de.uka.ipd.sdq.pcm.designdecision.ProcessingResourceDegree;
6 
7public class DegreeOfFreedomHelper {
8 
9        public static String getDegreeDescription(DegreeOfFreedomInstance decision) {
10                String suffix = "";
11                if (decision instanceof ProcessingResourceDegree){
12                        suffix = ":"+((ProcessingResourceDegree)decision).getProcessingresourcetype().getEntityName();
13                }
14                
15                String primaryChangeableName = decision.getPrimaryChanged().toString();
16                if (decision.getPrimaryChanged() instanceof Entity){
17                        primaryChangeableName = ((Entity)decision.getPrimaryChanged()).getEntityName();
18                }
19                
20                return decision.getClass().getSimpleName() + ":" + primaryChangeableName + suffix;
21        }
22 
23}

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