Class SmodelPlaner
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.palladiosimulator.simexp.dsl.smodel.smodel.util.SmodelSwitch<List<ResolvedAction>>
org.palladiosimulator.simexp.dsl.smodel.interpreter.impl.SmodelPlaner
- All Implemented Interfaces:
Planner
-
Field Summary
Fields inherited from class org.palladiosimulator.simexp.dsl.smodel.smodel.util.SmodelSwitch
modelPackage
-
Constructor Summary
ConstructorDescriptionSmodelPlaner
(Smodel model, ISmodelConfig smodelConfig, IFieldValueProvider fieldValueProvider, IVariableAssigner variableAssigner) -
Method Summary
Modifier and TypeMethodDescriptioncaseActionCall
(ActionCall actionCall) Returns the result of interpreting the object as an instance of 'Action Call'.caseIfStatement
(IfStatement ifStatement) Returns the result of interpreting the object as an instance of 'If Statement'.caseSmodel
(Smodel model) Returns the result of interpreting the object as an instance of 'Smodel'.caseVariableAssignment
(VariableAssignment variableAssignment) Returns the result of interpreting the object as an instance of 'Variable Assignment'.plan()
Methods inherited from class org.palladiosimulator.simexp.dsl.smodel.smodel.util.SmodelSwitch
caseAction, caseActionArguments, caseBoolLiteral, caseBounds, caseConstant, caseDoubleLiteral, caseEnvVariable, caseExpression, caseExternalField, caseField, caseGlobalStatement, caseInternalField, caseIntLiteral, caseLiteral, caseOptimizable, caseParameter, caseParameterValue, caseProbe, caseRangeBounds, caseSetBounds, caseStatement, caseStringLiteral, caseUnaryExpr, caseVariable, defaultCase, doSwitch, isSwitchFor
-
Constructor Details
-
SmodelPlaner
public SmodelPlaner(Smodel model, ISmodelConfig smodelConfig, IFieldValueProvider fieldValueProvider, IVariableAssigner variableAssigner)
-
-
Method Details
-
plan
-
doSwitch
- Overrides:
doSwitch
in classSwitch<List<ResolvedAction>>
-
caseSmodel
Description copied from class:SmodelSwitch
Returns the result of interpreting the object as an instance of 'Smodel'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseSmodel
in classSmodelSwitch<List<ResolvedAction>>
- Parameters:
model
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Smodel'.
- See Also:
-
caseIfStatement
Description copied from class:SmodelSwitch
Returns the result of interpreting the object as an instance of 'If Statement'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseIfStatement
in classSmodelSwitch<List<ResolvedAction>>
- Parameters:
ifStatement
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'If Statement'.
- See Also:
-
caseActionCall
Description copied from class:SmodelSwitch
Returns the result of interpreting the object as an instance of 'Action Call'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseActionCall
in classSmodelSwitch<List<ResolvedAction>>
- Parameters:
actionCall
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Action Call'.
- See Also:
-
caseVariableAssignment
Description copied from class:SmodelSwitch
Returns the result of interpreting the object as an instance of 'Variable Assignment'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseVariableAssignment
in classSmodelSwitch<List<ResolvedAction>>
- Parameters:
variableAssignment
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Variable Assignment'.
- See Also:
-