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

nameclass, %method, %block, %line, %
ModOperation.java0%   (0/1)0%   (0/6)0%   (0/26)0%   (0/6)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ModOperation0%   (0/1)0%   (0/6)0%   (0/26)0%   (0/6)
ModOperation (): 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/4)0%   (0/1)
compute (IProbabilityMassFunction, double): IProbabilityMassFunction 0%   (0/1)0%   (0/4)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 "modulo" for different kinds of operands.
9 * Note, that so far only integers and doubles are supported.
10 * @author koziolek
11 */
12public class ModOperation extends TermProductOperation {
13 
14        @Override
15        public double compute(double left, double right) {
16                return left % right;
17        }
18 
19        @Override
20        public int compute(int left, int right) {
21                return left % right;
22        }
23 
24        @Override
25        public IProbabilityMassFunction compute(IProbabilityMassFunction left,
26                        double right) {
27                //TODO
28                //return left.mod(right);
29                throw new UnsupportedOperationException();
30        }
31 
32        @Override
33        public IProbabilityDensityFunction compute(IProbabilityDensityFunction left, double right) throws DomainNotNumbersException {
34                throw new UnsupportedOperationException();
35        }
36 
37        @Override
38        protected Double calculateOperationForValues(Double value1, Double value2) {
39                return value1 % value2;
40        }
41 
42}

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