Class ModOperation
java.lang.Object
de.uka.ipd.sdq.stoex.analyser.operations.TermProductOperation
de.uka.ipd.sdq.stoex.analyser.operations.ModOperation
Implements the operation "modulo" for different kinds of operands.
Note, that so far only integers and doubles are supported.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Double
calculateOperationForValues
(Double value1, Double value2) double
compute
(double left, double right) int
compute
(int left, int right) compute
(IProbabilityDensityFunction left, double right) compute
(IProbabilityMassFunction left, double right) Methods inherited from class de.uka.ipd.sdq.stoex.analyser.operations.TermProductOperation
compute, compute
-
Constructor Details
-
ModOperation
public ModOperation()
-
-
Method Details
-
compute
public double compute(double left, double right) - Specified by:
compute
in classTermProductOperation
-
compute
public int compute(int left, int right) - Specified by:
compute
in classTermProductOperation
-
compute
- Specified by:
compute
in classTermProductOperation
-
compute
public IProbabilityDensityFunction compute(IProbabilityDensityFunction left, double right) throws DomainNotNumbersException - Specified by:
compute
in classTermProductOperation
- Throws:
DomainNotNumbersException
-
calculateOperationForValues
- Specified by:
calculateOperationForValues
in classTermProductOperation
-