Class AddOperation
java.lang.Object
de.uka.ipd.sdq.stoex.analyser.operations.TermProductOperation
de.uka.ipd.sdq.stoex.analyser.operations.AddOperation
Implements the operation "addition" for different kinds of operands.
-
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
-
AddOperation
public AddOperation()
-
-
Method Details
-
compute
public int compute(int left, int right) - Specified by:
compute
in classTermProductOperation
-
compute
public double compute(double left, double right) - Specified by:
compute
in classTermProductOperation
-
compute
public IProbabilityMassFunction compute(IProbabilityMassFunction left, double right) throws DomainNotNumbersException - Specified by:
compute
in classTermProductOperation
- Throws:
DomainNotNumbersException
-
compute
public IProbabilityDensityFunction compute(IProbabilityDensityFunction left, double right) throws DomainNotNumbersException - Specified by:
compute
in classTermProductOperation
- Throws:
DomainNotNumbersException
-
calculateOperationForValues
- Specified by:
calculateOperationForValues
in classTermProductOperation
-