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

COVERAGE SUMMARY FOR SOURCE FILE [LessEqualOperation.java]

nameclass, %method, %block, %line, %
LessEqualOperation.java0%   (0/1)0%   (0/8)0%   (0/51)0%   (0/10)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class LessEqualOperation0%   (0/1)0%   (0/8)0%   (0/51)0%   (0/10)
LessEqualOperation (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getComparePMF (IProbabilityMassFunction, IProbabilityMassFunction): IProbabil... 0%   (0/1)0%   (0/8)0%   (0/1)
getComparePMF (IProbabilityMassFunction, double): IProbabilityMassFunction 0%   (0/1)0%   (0/8)0%   (0/1)
getComparePMF (String, IProbabilityMassFunction): IProbabilityMassFunction 0%   (0/1)0%   (0/4)0%   (0/1)
getComparePMF (String, String): IProbabilityMassFunction 0%   (0/1)0%   (0/4)0%   (0/1)
getComparePMF (boolean, boolean): IProbabilityMassFunction 0%   (0/1)0%   (0/4)0%   (0/1)
getComparePMF (double, IProbabilityMassFunction): IProbabilityMassFunction 0%   (0/1)0%   (0/8)0%   (0/1)
getComparePMF (double, double): IProbabilityMassFunction 0%   (0/1)0%   (0/12)0%   (0/3)

1package de.uka.ipd.sdq.stoex.analyser.operations;
2 
3import de.uka.ipd.sdq.probfunction.math.IProbabilityMassFunction;
4 
5/**
6 * Implements the operation "less equal" for different kinds of operands.
7 * @author koziolek
8 */
9public class LessEqualOperation extends CompareOperation {
10 
11        protected IProbabilityMassFunction getComparePMF(boolean left, boolean right) {
12                throw new UnsupportedOperationException();
13        }
14 
15        protected IProbabilityMassFunction getComparePMF(double left, double right) {
16                if (left <= right)
17                        return getBoolPMF(1.0);
18                else
19                        return getBoolPMF(0.0);
20        }
21 
22        protected IProbabilityMassFunction getComparePMF(double left, IProbabilityMassFunction right) {
23                return new GreaterEqualOperation().compare(right, left);
24        }
25 
26        protected IProbabilityMassFunction getComparePMF(IProbabilityMassFunction left, double right) {
27                return getBoolPMF(getThresholdProbability(left, right, true));
28        }
29 
30        protected IProbabilityMassFunction getComparePMF(IProbabilityMassFunction left,
31                        IProbabilityMassFunction right) {
32                return getBoolPMF(comparePointWise(left, right, this));
33        }
34 
35        protected IProbabilityMassFunction getComparePMF(String left,
36                        IProbabilityMassFunction right) {
37                throw new UnsupportedOperationException();
38        }
39 
40        protected IProbabilityMassFunction getComparePMF(String left, String right) {
41                throw new UnsupportedOperationException();
42        }
43 
44}

[all classes][de.uka.ipd.sdq.stoex.analyser.operations]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov