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

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class DivOperation0%   (0/1)0%   (0/6)0%   (0/30)0%   (0/6)
DivOperation (): void 0%   (0/1)0%   (0/3)0%   (0/1)
calculateOperationForValues (Double, Double): Double 0%   (0/1)0%   (0/7)0%   (0/1)
compute (IProbabilityDensityFunction, double): IProbabilityDensityFunction 0%   (0/1)0%   (0/6)0%   (0/1)
compute (IProbabilityMassFunction, double): IProbabilityMassFunction 0%   (0/1)0%   (0/6)0%   (0/1)
compute (double, double): double 0%   (0/1)0%   (0/4)0%   (0/1)
compute (int, int): int 0%   (0/1)0%   (0/4)0%   (0/1)

1package de.uka.ipd.sdq.stoex.analyser.operations;
2 
3import de.uka.ipd.sdq.probfunction.math.IProbabilityDensityFunction;
4import de.uka.ipd.sdq.probfunction.math.IProbabilityMassFunction;
5import de.uka.ipd.sdq.probfunction.math.exception.DomainNotNumbersException;
6 
7/**
8 * Implements the operation "division" for different kinds of operands.
9 * @author martens, koziolek
10 */
11public class DivOperation extends TermProductOperation {
12 
13        @Override
14        public double compute(double left, double right) {
15                return left / right;
16        }
17 
18        @Override
19        public int compute(int left, int right) {
20                return left / right;
21        }
22 
23        @Override
24        public IProbabilityMassFunction compute(IProbabilityMassFunction left,
25                        double right) throws DomainNotNumbersException {
26                return left.stretchDomain(1/right);
27        }
28 
29        @Override
30        public IProbabilityDensityFunction compute(IProbabilityDensityFunction left, double right) throws DomainNotNumbersException {
31                return left.stretchDomain(1/right);
32        }
33 
34        @Override
35        protected Double calculateOperationForValues(Double value1, Double value2) {
36                return value1 / value2;
37        }
38 
39}

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