Class LogicalOperation
java.lang.Object
de.uka.ipd.sdq.stoex.analyser.operations.LogicalOperation
- Direct Known Subclasses:
AndOperation
,OrOperation
Abstract class with interface for logical operations (AND, OR).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionEvaluates two objects that represent the left-hand side and the right-hand side of a logical expression.protected double
findBooleanProbability
(IProbabilityMassFunction left, boolean value) Retrieves the probability of the given boolean value from the given Boolean PMF.protected IProbabilityMassFunction
getBoolPMF
(boolean value) Converts a boolean value to a boolean PMF.protected IProbabilityMassFunction
getBoolPMF
(double trueProb) Converts a probability into a boolean PMF.protected abstract IProbabilityMassFunction
protected IProbabilityMassFunction
getEvaluatedPMF
(IProbabilityMassFunction left, Boolean right) Evaluates a boolean value and a PMF.protected IProbabilityMassFunction
getEvaluatedPMF
(Boolean left, IProbabilityMassFunction right) Evaluates a boolean value and a PMF.protected IProbabilityMassFunction
getEvaluatedPMF
(Boolean left, Boolean right) Evaluates two boolean values.
-
Constructor Details
-
LogicalOperation
public LogicalOperation()
-
-
Method Details
-
evaluate
Evaluates two objects that represent the left-hand side and the right-hand side of a logical expression.- Parameters:
left
- left-hand side of expressionright
- right-hand side of expression- Returns:
- evaluation result
-
findBooleanProbability
Retrieves the probability of the given boolean value from the given Boolean PMF.- Parameters:
left
-- Returns:
-
getBoolPMF
Converts a boolean value to a boolean PMF.- Parameters:
value
-- Returns:
-
getBoolPMF
Converts a probability into a boolean PMF.- Parameters:
left
-right
-- Returns:
-
getEvaluatedPMF
Evaluates two boolean values. -
getEvaluatedPMF
Evaluates a boolean value and a PMF. -
getEvaluatedPMF
Evaluates a boolean value and a PMF. -
getEvaluatedPMF
protected abstract IProbabilityMassFunction getEvaluatedPMF(IProbabilityMassFunction left, IProbabilityMassFunction right)
-