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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEvaluates two objects that represent the left-hand side and the right-hand side of a logical expression.protected doublefindBooleanProbability(IProbabilityMassFunction left, boolean value) Retrieves the probability of the given boolean value from the given Boolean PMF.protected IProbabilityMassFunctiongetBoolPMF(boolean value) Converts a boolean value to a boolean PMF.protected IProbabilityMassFunctiongetBoolPMF(double trueProb) Converts a probability into a boolean PMF.protected abstract IProbabilityMassFunctionprotected IProbabilityMassFunctiongetEvaluatedPMF(IProbabilityMassFunction left, Boolean right) Evaluates a boolean value and a PMF.protected IProbabilityMassFunctiongetEvaluatedPMF(Boolean left, IProbabilityMassFunction right) Evaluates a boolean value and a PMF.protected IProbabilityMassFunctiongetEvaluatedPMF(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)
-