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 [GreaterOperation.java]

nameclass, %method, %block, %line, %
GreaterOperation.java0%   (0/1)0%   (0/8)0%   (0/53)0%   (0/10)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class GreaterOperation0%   (0/1)0%   (0/8)0%   (0/53)0%   (0/10)
GreaterOperation (): 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/10)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 "greater" for different kinds of operands.
7 * @author koziolek
8 */
9public class GreaterOperation 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 LessOperation().compare(left, right);
24        }
25 
26        protected IProbabilityMassFunction getComparePMF(IProbabilityMassFunction left, double right) {
27                return getBoolPMF(1-getThresholdProbability(left, right, true));
28        }
29 
30        protected IProbabilityMassFunction getComparePMF(IProbabilityMassFunction left, IProbabilityMassFunction right) {
31                return getBoolPMF(comparePointWise(left, right, this));
32        }
33 
34        protected IProbabilityMassFunction getComparePMF(String left, IProbabilityMassFunction right) {
35                throw new UnsupportedOperationException();
36        }
37 
38        protected IProbabilityMassFunction getComparePMF(String left, String right) {
39                throw new UnsupportedOperationException();
40        }
41 
42}

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