Class PCMStoExEvaluationVisitor
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
de.uka.ipd.sdq.stoex.util.StoexSwitch<Object>
de.uka.ipd.sdq.pcm.stochasticexpressions.PCMStoExSwitch
de.uka.ipd.sdq.simucomframework.variables.stoexvisitor.PCMStoExEvaluationVisitor
public class PCMStoExEvaluationVisitor
extends de.uka.ipd.sdq.pcm.stochasticexpressions.PCMStoExSwitch
Visitor to evaluate stoex. It executes the corresponding Java mathematical operations at each
operator. It partially relies on the types infered to do its casts
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final org.palladiosimulator.pcm.stoex.api.StoExSerialiser
Fields inherited from class de.uka.ipd.sdq.stoex.util.StoexSwitch
copyright, modelPackage
-
Constructor Summary
ConstructorDescriptionPCMStoExEvaluationVisitor
(StoExCacheEntry cacheEntry, SimulatedStackframe<Object> frame, VariableMode initialMode, de.uka.ipd.sdq.probfunction.math.IProbabilityFunctionFactory probFunctionFactory) -
Method Summary
Modifier and TypeMethodDescriptioncaseBooleanOperatorExpression
(de.uka.ipd.sdq.stoex.BooleanOperatorExpression object) caseBoolLiteral
(de.uka.ipd.sdq.stoex.BoolLiteral object) caseCharacterisedVariable
(org.palladiosimulator.pcm.parameter.CharacterisedVariable object) caseCompareExpression
(de.uka.ipd.sdq.stoex.CompareExpression object) caseDoubleLiteral
(de.uka.ipd.sdq.stoex.DoubleLiteral object) caseFunctionLiteral
(de.uka.ipd.sdq.stoex.FunctionLiteral object) caseIfElseExpression
(de.uka.ipd.sdq.stoex.IfElseExpression object) caseIntLiteral
(de.uka.ipd.sdq.stoex.IntLiteral object) caseNegativeExpression
(de.uka.ipd.sdq.stoex.NegativeExpression object) caseNotExpression
(de.uka.ipd.sdq.stoex.NotExpression object) caseParenthesis
(de.uka.ipd.sdq.stoex.Parenthesis object) casePowerExpression
(de.uka.ipd.sdq.stoex.PowerExpression object) caseProbabilityFunctionLiteral
(de.uka.ipd.sdq.stoex.ProbabilityFunctionLiteral object) caseProductExpression
(de.uka.ipd.sdq.stoex.ProductExpression object) caseStringLiteral
(de.uka.ipd.sdq.stoex.StringLiteral object) caseTermExpression
(de.uka.ipd.sdq.stoex.TermExpression object) void
setVariableMode
(VariableMode mode) Methods inherited from class de.uka.ipd.sdq.pcm.stochasticexpressions.PCMStoExSwitch
doSwitch
Methods inherited from class de.uka.ipd.sdq.stoex.util.StoexSwitch
caseAbstractNamedReference, caseAtom, caseBooleanExpression, caseComparison, caseExpression, caseIfElse, caseNamespaceReference, caseNumericLiteral, casePower, caseProduct, caseRandomVariable, caseTerm, caseUnary, caseUnitCarryingElement, caseVariable, caseVariableReference, defaultCase, doSwitch, isSwitchFor
-
Field Details
-
STOEX_SERIALISER
protected static final org.palladiosimulator.pcm.stoex.api.StoExSerialiser STOEX_SERIALISER
-
-
Constructor Details
-
PCMStoExEvaluationVisitor
public PCMStoExEvaluationVisitor(StoExCacheEntry cacheEntry, SimulatedStackframe<Object> frame, VariableMode initialMode, de.uka.ipd.sdq.probfunction.math.IProbabilityFunctionFactory probFunctionFactory)
-
-
Method Details
-
setVariableMode
-
getVariableMode
-
caseCharacterisedVariable
public Object caseCharacterisedVariable(org.palladiosimulator.pcm.parameter.CharacterisedVariable object) - Overrides:
caseCharacterisedVariable
in classde.uka.ipd.sdq.pcm.stochasticexpressions.PCMStoExSwitch
-
caseCompareExpression
- Overrides:
caseCompareExpression
in classde.uka.ipd.sdq.stoex.util.StoexSwitch<Object>
-
caseDoubleLiteral
- Overrides:
caseDoubleLiteral
in classde.uka.ipd.sdq.stoex.util.StoexSwitch<Object>
-
caseIntLiteral
- Overrides:
caseIntLiteral
in classde.uka.ipd.sdq.stoex.util.StoexSwitch<Object>
-
caseStringLiteral
- Overrides:
caseStringLiteral
in classde.uka.ipd.sdq.stoex.util.StoexSwitch<Object>
-
caseParenthesis
- Overrides:
caseParenthesis
in classde.uka.ipd.sdq.stoex.util.StoexSwitch<Object>
-
caseProbabilityFunctionLiteral
public Object caseProbabilityFunctionLiteral(de.uka.ipd.sdq.stoex.ProbabilityFunctionLiteral object) - Overrides:
caseProbabilityFunctionLiteral
in classde.uka.ipd.sdq.stoex.util.StoexSwitch<Object>
-
caseProductExpression
- Overrides:
caseProductExpression
in classde.uka.ipd.sdq.stoex.util.StoexSwitch<Object>
-
caseTermExpression
- Overrides:
caseTermExpression
in classde.uka.ipd.sdq.stoex.util.StoexSwitch<Object>
-
caseBooleanOperatorExpression
- Overrides:
caseBooleanOperatorExpression
in classde.uka.ipd.sdq.stoex.util.StoexSwitch<Object>
-
caseNegativeExpression
- Overrides:
caseNegativeExpression
in classde.uka.ipd.sdq.stoex.util.StoexSwitch<Object>
-
caseBoolLiteral
- Overrides:
caseBoolLiteral
in classde.uka.ipd.sdq.stoex.util.StoexSwitch<Object>
-
caseNotExpression
- Overrides:
caseNotExpression
in classde.uka.ipd.sdq.stoex.util.StoexSwitch<Object>
-
casePowerExpression
- Overrides:
casePowerExpression
in classde.uka.ipd.sdq.stoex.util.StoexSwitch<Object>
-
caseFunctionLiteral
- Overrides:
caseFunctionLiteral
in classde.uka.ipd.sdq.stoex.util.StoexSwitch<Object>
-
caseIfElseExpression
- Overrides:
caseIfElseExpression
in classde.uka.ipd.sdq.stoex.util.StoexSwitch<Object>
-