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

COVERAGE SUMMARY FOR SOURCE FILE [ParameterPrettyPrint.java]

nameclass, %method, %block, %line, %
ParameterPrettyPrint.java0%   (0/1)0%   (0/3)0%   (0/93)0%   (0/14)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ParameterPrettyPrint0%   (0/1)0%   (0/3)0%   (0/93)0%   (0/14)
ParameterPrettyPrint (): void 0%   (0/1)0%   (0/3)0%   (0/2)
caseVariableCharacterisation (VariableCharacterisation): String 0%   (0/1)0%   (0/28)0%   (0/4)
caseVariableUsage (VariableUsage): String 0%   (0/1)0%   (0/62)0%   (0/8)

1/**
2 * 
3 */
4package de.uka.ipd.sdq.pcm.stochasticexpressions;
5 
6import de.uka.ipd.sdq.pcm.parameter.VariableCharacterisation;
7import de.uka.ipd.sdq.pcm.parameter.VariableUsage;
8import de.uka.ipd.sdq.pcm.parameter.util.ParameterSwitch;
9 
10/**
11 * Pretty Print Paramters in a StoEx
12 * @author Steffen Becker
13 *
14 */
15public class ParameterPrettyPrint extends ParameterSwitch<String> {
16 
17        /**
18         * 
19         */
20        public ParameterPrettyPrint() {
21        }
22 
23 
24        /* (non-Javadoc)
25         * @see de.uka.ipd.sdq.pcm.parameter.util.ParameterSwitch#caseVariableUsage(de.uka.ipd.sdq.pcm.parameter.VariableUsage)
26         */
27        @Override
28        public String caseVariableUsage(VariableUsage object) {
29                String result = "";
30                if (object.getNamedReference__VariableUsage() != null)
31                        result += doSwitch(object.getNamedReference__VariableUsage());
32                else
33                        result += "<not set yet>";
34                if (object.getVariableCharacterisation_VariableUsage().size() > 0)
35                        result += "." + doSwitch((VariableCharacterisation)object.getVariableCharacterisation_VariableUsage().get(0));
36                else
37                        result += ".<missing characterisation> = <missing expression>";
38                return result;
39        }
40 
41        /* (non-Javadoc)
42         * @see de.uka.ipd.sdq.pcm.parameter.util.ParameterSwitch#caseVariableCharacterisation(de.uka.ipd.sdq.pcm.parameter.VariableCharacterisation)
43         */
44        @Override
45        public String caseVariableCharacterisation(VariableCharacterisation object) {
46                String result = "";
47                result += object.getType().getLiteral();
48                result += " = " + object.getSpecification_VariableCharacterisation().getSpecification();
49                return result;
50        }
51}

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