Skip to content
Snippets Groups Projects
Commit 6d9d9c59 authored by Nikolaus Huber's avatar Nikolaus Huber
Browse files

testing BranchAction

git-svn-id: https://se1.informatik.uni-wuerzburg.de/usvn/svn/code/code/DMM/trunk@9701 9e42b895-fcda-4063-8a3b-11be15eb1bbd
parent 5c524824
No related branches found
No related tags found
No related merge requests found
......@@ -149,6 +149,64 @@
predecessor="123loop123"/>
</implementedPlan>
</tactics>
<tactics id="testBranch123235"
name="testBranchAction">
<implementedPlan
id="45123123"
name="testBranchActionAdaptationPlan">
<steps
xsi:type="adaptation:StartAction"
id="branchStart"
successor="branchAction"/>
<steps
xsi:type="adaptation:StopAction"
id="branchStop"
predecessor="branchAction"/>
<steps
xsi:type="adaptation:BranchAction"
id="branchAction"
predecessor="branchStart"
successor="branchStop"
condition="self.containedIn.contains -> select( r&#xA; | r.template = self.template)->size() &lt;= 4">
<branches
id="TRUE-AdaptationPlan"
name="TRUE-AdaptationPlan">
<steps
xsi:type="adaptation:StartAction"
id="98start"
successor="98trueBranch"/>
<steps
xsi:type="adaptation:ActionReference"
id="98trueBranch"
predecessor="98start"
successor="98stop"
refersTo="2"/>
<steps
xsi:type="adaptation:StopAction"
id="98stop"
predecessor="98trueBranch"/>
</branches>
<branches
id="FALSE-AdaptationPlan"
name="FALSE-AdaptationPlan">
<steps
xsi:type="adaptation:StartAction"
id="99start"
successor="99FalseBranch"/>
<steps
xsi:type="adaptation:ActionReference"
id="99FalseBranch"
predecessor="99start"
successor="99stop"
refersTo="41123123"/>
<steps
xsi:type="adaptation:StopAction"
id="99stop"
predecessor="99FalseBranch"/>
</branches>
</steps>
</implementedPlan>
</tactics>
<actions id="2"
name="myTestIncreaseCpuAction"
operationType="SCALE_UP">
......@@ -233,6 +291,12 @@
name="testLoopActionTactic"
usedTactic="123432"
currentWeight="2000.0"/>
<tactics
id="testBranch"
name="testBranchWeightedTactic"
usedTactic="testBranch123235"
currentWeight="100.0"
defaultWeight="100.0"/>
<weightingFunction
id="123sum"
name="WeightedSum">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment