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

COVERAGE SUMMARY FOR SOURCE FILE [ParametersUtil.java]

nameclass, %method, %block, %line, %
ParametersUtil.java0%   (0/1)0%   (0/2)0%   (0/30)0%   (0/6)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ParametersUtil0%   (0/1)0%   (0/2)0%   (0/30)0%   (0/6)
ParametersUtil (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getParametersOfSignature (Signature): EList 0%   (0/1)0%   (0/27)0%   (0/5)

1/**
2 * 
3 */
4package de.uka.ipd.sdq.pcm.dialogs.parameters;
5 
6import org.eclipse.emf.common.util.EList;
7 
8import de.uka.ipd.sdq.pcm.repository.InfrastructureSignature;
9import de.uka.ipd.sdq.pcm.repository.OperationSignature;
10import de.uka.ipd.sdq.pcm.repository.Parameter;
11import de.uka.ipd.sdq.pcm.repository.Signature;
12 
13/**Utility class for parameter handling.
14 * @author groenda
15 *
16 */
17public class ParametersUtil {
18        
19        /**Returns all parameters of a given signature.
20         * @param signature The signature.
21         * @return The parameters.
22         */
23        public static EList<Parameter> getParametersOfSignature(final Signature signature){
24                if (signature instanceof OperationSignature)
25                        return ((OperationSignature)signature).getParameters__OperationSignature();
26                if (signature instanceof InfrastructureSignature)
27                        return ((InfrastructureSignature)signature).getParameters__InfrastructureSignature();
28                throw new IllegalArgumentException("Unkown signature type experienced: " + signature.eClass().getName());
29        }
30}

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