From 4eff34cc63df99abffa6691b6b954f1ee9a16669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denisse=20Mu=C3=B1ante?= Date: Tue, 8 Nov 2016 10:17:04 +0100 Subject: [PATCH] Add files via upload --- .../META-INF/MANIFEST.MF | 24 + .../enactor/uml2json/Activator.class | Bin 0 -> 979 bytes .../enactor/uml2json/GenerateJson.class | Bin 0 -> 4743 bytes .../enactor/uml2json/Uml2Json.class | Bin 0 -> 1472 bytes .../enactor/uml2json/common/common.emtl | 520 +++++++++++++ .../enactor/uml2json/common/common.mtl | 69 ++ .../uml2json/files/genInstance2Json.emtl | 715 ++++++++++++++++++ .../uml2json/files/genInstance2Json.mtl | 55 ++ .../enactor/uml2json/files/genModel2Json.emtl | 465 ++++++++++++ .../enactor/uml2json/files/genModel2Json.mtl | 51 ++ .../enactor/uml2json/generateJson.emtl | 156 ++++ .../enactor/uml2json/generateJson.mtl | 35 + .../uml2json/test/FeedbackGatheringTest.class | Bin 0 -> 1007 bytes .../uml2json/test/MonitoringTest.class | Bin 0 -> 1000 bytes .../build.properties | 5 + .../json/FeedbackGathering.txt | 26 + .../json/MonitoringSystemBaseModel.txt | 25 + .../json/RootElement.txt | 12 + .../models/FGBaseModel.uml | 115 +++ .../models/MonitoringSystemBaseModel.uml | 126 +++ .../enactor/uml2json/Activator.java | 66 ++ .../enactor/uml2json/GenerateJson.java | 411 ++++++++++ .../enactor/uml2json/Uml2Json.java | 46 ++ .../enactor/uml2json/common/common.mtl | 69 ++ .../uml2json/files/genInstance2Json.mtl | 55 ++ .../enactor/uml2json/files/genModel2Json.mtl | 51 ++ .../enactor/uml2json/generateJson.mtl | 35 + .../uml2json/test/FeedbackGatheringTest.java | 39 + .../enactor/uml2json/test/MonitoringTest.java | 39 + .../tasks/generateJson.xml | 43 ++ .../tasks/generateJsonTarget.xml | 19 + 31 files changed, 3272 insertions(+) create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/META-INF/MANIFEST.MF create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/Activator.class create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/GenerateJson.class create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/Uml2Json.class create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/common/common.emtl create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/common/common.mtl create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/files/genInstance2Json.emtl create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/files/genInstance2Json.mtl create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/files/genModel2Json.emtl create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/files/genModel2Json.mtl create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/generateJson.emtl create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/generateJson.mtl create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/test/FeedbackGatheringTest.class create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/test/MonitoringTest.class create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/build.properties create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/json/FeedbackGathering.txt create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/json/MonitoringSystemBaseModel.txt create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/json/RootElement.txt create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/models/FGBaseModel.uml create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/models/MonitoringSystemBaseModel.uml create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/Activator.java create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/GenerateJson.java create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/Uml2Json.java create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/common/common.mtl create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/files/genInstance2Json.mtl create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/files/genModel2Json.mtl create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/generateJson.mtl create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/test/FeedbackGatheringTest.java create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/test/MonitoringTest.java create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/tasks/generateJson.xml create mode 100644 feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/tasks/generateJsonTarget.xml diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/META-INF/MANIFEST.MF b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/META-INF/MANIFEST.MF new file mode 100644 index 0000000..4f6799d --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/META-INF/MANIFEST.MF @@ -0,0 +1,24 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Acceleo Uml2json Module Runtime Plug-in +Bundle-SymbolicName: eu.supersede.reconfiguration.enactor.uml2json +Bundle-Version: 1.0.0.qualifier +Bundle-Activator: eu.supersede.reconfiguration.enactor.uml2json.Activator +Bundle-Vendor: Eclipse Modeling Project +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.uml2.uml, + org.eclipse.emf.ecore, + org.eclipse.emf.ecore.xmi, + org.eclipse.ocl, + org.eclipse.ocl.ecore, + org.eclipse.acceleo.common;bundle-version="3.3.0", + org.eclipse.acceleo.model;bundle-version="3.3.0", + org.eclipse.acceleo.profiler;bundle-version="3.3.0", + org.eclipse.acceleo.engine;bundle-version="3.3.0", + com.google.guava, + org.eclipse.acceleo.parser;bundle-version="3.6.4", + org.junit +Bundle-RequiredExecutionEnvironment: JavaSE-1.8 +Bundle-ActivationPolicy: lazy +Eclipse-LazyStart: true + diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/Activator.class b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/Activator.class new file mode 100644 index 0000000000000000000000000000000000000000..accbb6855958234477e08e00c3a9dff551841f10 GIT binary patch literal 979 zcmbu7T~E|N6o%i~Pqr3N5EM}n5VI_@P5dHejYdHX$%c@iduxX7Y#r>*Y^F2F&+_Af z#0!6bKgxKftV=?oCVJEMoH>2Y`@Ze>A78%#cz`=q6c{#yi!wJ5CKFu|84+vMlZi9j zO06QHcx<(aTtB^cm{H?-Y~>NBRuv_N1#OZ@#Hk!)B8s&kfKyiXMYNZ?L@I{bUi;0f zo!z%PTMSd}Lw>}gl&d7#w??X@#W239Rc5)e9iBQdh8n}VaLtjV<~d2tp`_+7Neq?2 zaM|PbKbj#Ol_ye3`;?(rU+plIHg#77DB@y>5aSG!ZK=er>mLa7njfUX+tD#kJKRWL z51S?XPG$^cvScj7O1G!ygZJ@z(<}{ag|~E zEUD3nS92}IWz5vTa6LqT3k+5IU>?J;^!HWdE3E`s#l~ z80>3jVzDiKIuoNmrRlw3ku(?Szbjx4WmKrD=G7S4AS3i#q8>#}*9ofb)1A@1+&IDH zr+oAhT>}CDOEkQUDS8S|hcKNZm`{f$X6eM^uH>j~>iD;U#@Y$y8ecGf#+%4Rt&ya= zs9`;4&Yn&WnSSRD+|1=rV!x*|0{acO&eI=~mPbV2_#?eWu9j(wH-9^KMIJt5{v*`| Sc<(+m;8{-bei+U9vz4E&1J(xs literal 0 HcmV?d00001 diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/GenerateJson.class b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/GenerateJson.class new file mode 100644 index 0000000000000000000000000000000000000000..d867a047479b7d0092431a942df7749fe4617e9f GIT binary patch literal 4743 zcmb_f>wgqi8GcT7H;kJup(c?wfuy9}gp^!pCJ zXiG1)+A7}fty*lg#=90ZSoz5x;7>pM&A-8qeiEN^W;Q!J+0yn`KV;|3nRDLvd7t-r z-*fV}|Ni9`fc^NLfhK`LSxJ{GCFz#sqD;Fo>lDx1xr%Ffwo^>YqLuX=H(e>@_gyG+ z;vrd-{3ajfi-EYnkmKgkGMl$cWtq0JS(%p(x8>}jOqZp*WM^f1p~%nb>wJM0w8o>lbbt$ancpp}l( z9}Iaegj}Fwc5HGwGcxOYoe{X}@kV|-ORht1JX@B>?Yt}#vA?Y1+4*$FE_(#mI%DUG zmRE75z>di0;k8x|aZAfE87tb}A%R%`z`Q{Gu(K!)Y@mZ^_$}Bd&=rP1$+h`b2y8ad zhIWC@4C$V#6wXO^);gCbj_!<;wes_pYpeHQvUynhY(orNO?(7h2JT_x+My0;#C5I9 zDylYY!&c?tV!45i@=Ew>1sF?%G|MY7i88OIy5ve-$qhWCU&Eb zNEDs6mA9WF<1Gc16^0DmPh-#m53VJHh3?AqSP)sg_lQ+SEim_?Of&}Ovw2XlxnCfm2^6?z4SV%iDaL|j z7fDNhgPI+fZ^ftafB}|PxRfrJJy|gEAVyenPQ?@GSq*xcUB+Xtkyc@-1&0N8j#SC- zEjnKB5>vd`JJ|cQM!388yiVGcy=@r7Lk7k}8Vs2-aTFATQBv0P#M{&FdknWWMZqJO zG>~E7?@=2jrf`hCFiW7GRP~|Nc3&g2YdDP7nSnmlQJ)%} zF!7iQq{~`doUUt!22Kj}-wE}oRkpK}4$H)G+pvJG%HU}epTQZH&!SW94>Yq@Ut!3B z4PAh{V3|0FF7`dm?Tlw-FV6CSVHL(%HmsOtKSeB~pl_BB!lfVz)?71c&Ubywt!ITbSzp6%$W_xLflz2s04?{|{f}xh`VX7?qp5EHKH~ z!orEf5@bzXLDbbj?OBbiMqt&Pj_GL=mq5$w=#d9xB`>F}0yDj#%3`?e{AD#Yv*fGG zYRzwsio<)_2IWgSC*ZM%Ujm*U@#*+T_!Pn$;8We#lV*%y+z&T)RithH<<}M zsJi^BiLc@7q{c2!6i+zr#d1m4)P`__Ih?o3<)ML-?f53XZQxr1$#5Rkk^b(uOne95 zrP|3v;Pq??VKy^`FiUqb*RZ`9TxW26OuBvMM=O%uJSJ-7|v^>;t!5$tIkG{X}Rb7pT zz(kQvNat1ZM)ezkZFgpY%vCdi?bJ<-|4ziP1qn3s&EQ)TTKLYZsUGtJ$@vaF?&Pxt z>(RxTZqDpMoWH=j_+N3?Lae)I<`3BPHYb{B0NNms#@%`b+{9aJuyvG91?Sf%Z{VZJ zo7lE+1HFI3_S)_a4Q-q*4xp2#v9e8e+VAHGoYF>f;Pj&3%IW#ITQJADo)` zBxe-3{SCm~_ddWKh=Owha8DAP`!3+_$EV&mxK<2eh^v`Iaa5-skjYz#H_>q&!`-7R zII@iSWNhD`@o?rQrWca&eK&A?GRV`^O^5~3cmuP8@x+0|GCH@!lRb%jE0}*NA$k(Y zTW{R{_m=ogEHJH)ui(@&S~95>oPAqEJcTn%R$Q|`sFQYuVtJOM=O~cpu^BIr^%s$1 zn>vWsc_qAtaXzP6xTo+_oW)yM#Ih#hsMf4RR_k>$js#h{mvk)ZETxzcKT8KG7fI>F z8U99`M~R0nDd@oYwC^g65x6#>4ge zA8ptddm=C_@C>d5oA(5pW8E#0ts)-U8e84^Y$&|vBL4q~?NKB9Lq=-;dC3j@A0b-B zjhW=;)H`^-2`3_~ixK|cJsKj&TxH$FOS*3fd>&s2EUKbcy()eko1$nkAvE#Tka%zh zdmSc5q1maj|HWkY)fIf@HQY^H-w?Qt@4bT`1kcxFKF&~65|1Gv7SJJ1@*mb`LU?zs z;@!z|c#FQ2RM~X;IOM?*IIol5a+HLZY5diY(dJd7&4JM-{DNki@JsxPPj$<F6WZ0+08(JucGW4DpXNGPYPDS4-op94SZ92{SlDxA)wY~X*CrdoZ0h1|FIwbv)mQILek!}+ zDHv~E+H&=+oj)EG6S%8jl3~&n6`fPXPCc&k>XB}`)hhKZY{LG#Ee%t+$IxR6ZuorD zvN;(UmM@``E?k3^Q!vAzg-swn5=_N39?0s?G7MdYd7vQ8uy(VGzUB@mL2_9_6)DWg z6XqE8sE# zf*4t2h?A9}n=Er=lTUXY+F=ceFX;P3+Xx2eEz^KW42Bj7MkC)$)afg|otYYj&ZkU- zDOw`{!x*8!I7Tr>z_(}}CC}~f{Ex)0lPu}XH{2=KF?~2!!~N|#Qit=|&*-ZmvlbnT z){!N4`d2(`A2l2%rs$nU0vU{Bo>Y?!k6vnk(jR!4zzH5Jv|?nP!4s?!jRX;RiZv?7 QIC_vnJ|y*wVk21p4JU+x&Hw-a literal 0 HcmV?d00001 diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/common/common.emtl b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/common/common.emtl new file mode 100644 index 0000000..05bbb4d --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/common/common.emtl @@ -0,0 +1,520 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + + diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/common/common.mtl b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/common/common.mtl new file mode 100644 index 0000000..f289676 --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/common/common.mtl @@ -0,0 +1,69 @@ +[comment encoding = UTF-8 /] +[** + * /******************************************************************************* + * Copyright (c) 2016 FBK + * All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * Denisse Muñante (FBK) - main development + * + * Initially developed in the context of SUPERSEDE EU project www.supersede.eu + *******************************************************************************/ + */] +[** + * common: this is the common module to provide useful queriesused by others modules. + */] +[module common('http://www.eclipse.org/uml2/5.0.0/UML')] + +[** + * Returns the list of classes contained in a model + */] +[query public getClasses(aModel : Model) : Sequence(OclAny) = + aModel.eContents(Class) + /] + +[** + * Returns the list of attributes contained in a class + */] +[query public getAttributes(aClass : Class) : OrderedSet(Property) = + aClass.allAttributes() + /] + +[** + * Returns the list of instance specification contained in a model + * mModel.eContents(InstanceSpecification)->select(visibility = VisibilityKind::public) + */] +[query public getInstanceSpecifications(aModel : Model) : Sequence(InstanceSpecification) = + aModel.eContents(InstanceSpecification) + /] + +[** + * Returns the list of slots contained in an Instance + */] +[query public getSlots(anInstance : InstanceSpecification) : Set(Slot) = + anInstance.slot + /] + +[** + * Returns the Value Specification od an Slot + */] +[query public getValueSlot(aSlot : Slot) : ValueSpecification = + aSlot.value->first() + /] + +[** + * Returns if it is monitoring + */] +[query public getIfMonitor(aModel : Model) : Boolean = + aModel.name.toLower().contains('monitor') + /] \ No newline at end of file diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/files/genInstance2Json.emtl b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/files/genInstance2Json.emtl new file mode 100644 index 0000000..0d9cdd5 --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/files/genInstance2Json.emtl @@ -0,0 +1,715 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + + diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/files/genInstance2Json.mtl b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/files/genInstance2Json.mtl new file mode 100644 index 0000000..d837d76 --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/files/genInstance2Json.mtl @@ -0,0 +1,55 @@ +[comment encoding = UTF-8 /] +[** + * /******************************************************************************* + * Copyright (c) 2016 FBK + * All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * Denisse Muñante (FBK) - main development + * + * Initially developed in the context of SUPERSEDE EU project www.supersede.eu + *******************************************************************************/ + */] +[** + * genInstance2Json: this module translates UML instances to JSON entries +*/] +[module genInstance2Json('http://www.eclipse.org/uml2/5.0.0/UML')] +[import eu::supersede::reconfiguration::enactor::uml2json::common::common /] + + +[** + * Generates JSON entries from UML instances + * @param anInstanceSpecification - UML instance + */] +[template public generateInstance2Json(anInstanceSpecification : InstanceSpecification)] +"[anInstanceSpecification.classifier.name/].[anInstanceSpecification.name/]": +[for (aSlot : Slot | getSlots(anInstanceSpecification)) before ('{') separator (',') after('},') ] +[let val : ValueSpecification = aSlot.getValueSlot()] +"[val.name/]":"[val.stringValue()/]" +[/let] +[/for] +[/template] + +[** + * Generates JSON entries from UML instances + * This version is used by the monitoring. + * @param anInstanceSpecification - UML instance + */] +[template public generateInstance2JsonMonitor(anInstanceSpecification : InstanceSpecification)] +"[anInstanceSpecification.classifier.name/]": +[for (aSlot : Slot | getSlots(anInstanceSpecification)) before ('{') separator (',') after('},') ] +[let val : ValueSpecification = aSlot.getValueSlot()] +"[val.name/]":"[val.stringValue()/]" +[/let] +[/for] +[/template] \ No newline at end of file diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/files/genModel2Json.emtl b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/files/genModel2Json.emtl new file mode 100644 index 0000000..509bbcc --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/files/genModel2Json.emtl @@ -0,0 +1,465 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + + diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/files/genModel2Json.mtl b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/files/genModel2Json.mtl new file mode 100644 index 0000000..2a8dc88 --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/files/genModel2Json.mtl @@ -0,0 +1,51 @@ +[comment encoding = UTF-8 /] +[** + * /******************************************************************************* + * Copyright (c) 2016 FBK + * All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * Denisse Muñante (FBK) - main development + * + * Initially developed in the context of SUPERSEDE EU project www.supersede.eu + *******************************************************************************/ + */] +[** + * genModel2Json: this module creates a json file containing Json entries +*/] +[module genModel2Json('http://www.eclipse.org/uml2/5.0.0/UML')] +[import eu::supersede::reconfiguration::enactor::uml2json::common::common /] +[import eu::supersede::reconfiguration::enactor::uml2json::files::genInstance2Json /] + + +[** + * Creates a txt file with JSON entries derived from UML instances + * @param aModel - UML model + */] +[template public generateJsonfromInstance(aModel : Model)] + +[file (aModel.name.concat('.txt'), false, 'UTF-8')] +{ +[if (aModel.getIfMonitor())] +[for (anInstance : InstanceSpecification | aModel.getInstanceSpecifications())] +[anInstance.generateInstance2JsonMonitor()/] +[/for] +[/if] +[if (aModel.getIfMonitor()._not())] +[for (anInstance : InstanceSpecification | aModel.getInstanceSpecifications())] +[anInstance.generateInstance2Json()/] +[/for] +[/if] +} +[/file] +[/template] \ No newline at end of file diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/generateJson.emtl b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/generateJson.emtl new file mode 100644 index 0000000..e1eba51 --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/generateJson.emtl @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + + diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/generateJson.mtl b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/generateJson.mtl new file mode 100644 index 0000000..932ab18 --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/generateJson.mtl @@ -0,0 +1,35 @@ +[comment encoding = UTF-8 /] +[** + * /******************************************************************************* + * Copyright (c) 2016 FBK + * All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * Denisse Muñante (FBK) - main development + * + * Initially developed in the context of SUPERSEDE EU project www.supersede.eu + *******************************************************************************/ + */] +[** + * generateJson: this is the main module +*/] +[module generateJson('http://www.eclipse.org/uml2/5.0.0/UML')/] +[import eu::supersede::reconfiguration::enactor::uml2json::files::genModel2Json/] + + +[template public generateJsonModel(aModel : Model)] + + [comment @main /] + [aModel.generateJsonfromInstance()/] + +[/template] diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/test/FeedbackGatheringTest.class b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/bin/eu/supersede/reconfiguration/enactor/uml2json/test/FeedbackGatheringTest.class new file mode 100644 index 0000000000000000000000000000000000000000..6bc661965a7ddba143f4e660cb4f83aa95b660c4 GIT binary patch literal 1007 zcmb_bTW=CU6#fQiK}1Wb+Kac=da0K%i7~!lOw>qiv$Tz+ybsF}hAul~XSVvceA4*f z5Aa7B&#=%Y))$jzlbLh>&N=(duirm@0(gPVB60#BD3vxHQ(~z{GNI7KpL9P>l+z}b z6sypgM5d$Y`Ovb#k#(|3)a$D7cw4yvB|7f6*;+(FpgL41N=7Q~%l+<QJ0do>P93`3rwh@j!LxGr^bRCXe+QATvWde zfy!(w-@icl{g;r&er{XDqQKH*7;WUv{;5Y`^Hh0~?Y}QbSmkS%aF48@}WtSkeb?)Z0(;U zuKSAE0JD|f2#{lmS;}XTHOaT&d+y0Ml)g^fWj?(dxP!}lRmGL5I~M@&eV7I#x1L$v__TMie@M!ZXcb&joVZ_qzi5 zUDKyBayVDPA_@Xafllak7WXLas9r<@wZMcb>Z(+GeP+zNp|%3M!9O?J6sXJx@r?_V zUw#N_>?gHFEDO{pQ)nai4^BJ+Yj3i|>6p6OYVK<%NsODUhuf+KCLPF8#*<24vsuDr z0V9VdCfTP%TTAl2N#EJA3aP~_h$Ll=lZ`k2*mz^M@y5JS8T%aj%g);$t)uvbveR-t zvV;|Z!~Y06`PXHv;aU+_1)l!h?vI!)ub3?rT*nQ8l|H5Vn2uUO$9VI8vS%W;3EbNb zPI=RIo>9%S7SEn#)w3qb+;rwc<%XUvXOab0=YdY819DTOX?(eDvNWVU?YUO}ox}}a z3Y%cI^5Xy&SYnp)S!7M}E%;u1@EN5~6L*wZPv7 MOTO(*&RoE)pPK#^x&QzG literal 0 HcmV?d00001 diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/build.properties b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/build.properties new file mode 100644 index 0000000..205c0b5 --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/build.properties @@ -0,0 +1,5 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + . +jre.compilation.profile = JavaSE-1.8 diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/json/FeedbackGathering.txt b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/json/FeedbackGathering.txt new file mode 100644 index 0000000..92d845f --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/json/FeedbackGathering.txt @@ -0,0 +1,26 @@ +{ +"Audio.AUDIO_TYPE": +{"type":"AUDIO_TYPE" +,"order":"2" +,"id":"15" +,"active":"true" +}, +"Rating.RATING_TYPE": +{"id":"17" +,"type":"RATING_TYPE" +,"active":"true" +,"order":"4" +}, +"TextFeedback.TEXT_TYPE": +{"active":"true" +,"id":"14" +,"type":"TEXT_TYPE" +,"order":"1" +}, +"Screenshot.SCREENSHOT_TYPE": +{"order":"3" +,"active":"true" +,"id":"16" +,"type":"SCREENSHOT_TYPE" +}, +} diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/json/MonitoringSystemBaseModel.txt b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/json/MonitoringSystemBaseModel.txt new file mode 100644 index 0000000..ded4621 --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/json/MonitoringSystemBaseModel.txt @@ -0,0 +1,25 @@ +{ +"SocialNetworks": +{"timeSlot":"300" +,"kakfaEndpoint":"http://localhost:9092" +,"toolName":"TwitterAPI" +,"kafkaTopic":"olympicGamesTwitterMonitoring" +,"accounts":"account1" +,"state":"active" +,"keywordExpression":"keyword1 AND keyword2" +,"id":"id2" +}, +"MarketPlaces": +{"packageName":"olympicGamesPlayer" +,"state":"active" +,"timeSlot":"800" +,"toolName":"GooglePlayAPI" +,"KafkaEndpoint":"http://localhost:9092" +,"kafkaTopic":"marketPlacesMonitoring" +,"id":"id1" +}, +"": +{"timeStamp":"Sat June 08 02:16:57 2016" +,"configSender":"WP4" +}, +} diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/json/RootElement.txt b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/json/RootElement.txt new file mode 100644 index 0000000..6e71895 --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/json/RootElement.txt @@ -0,0 +1,12 @@ +{'order':2 +,'id':13 +} +{'id':14 +,'order':4 +} +{'id':23 +,'order':1 +} +{'id':24 +,'order':3 +} diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/models/FGBaseModel.uml b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/models/FGBaseModel.uml new file mode 100644 index 0000000..4f63bd1 --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/models/FGBaseModel.uml @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/models/MonitoringSystemBaseModel.uml b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/models/MonitoringSystemBaseModel.uml new file mode 100644 index 0000000..4e28897 --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/models/MonitoringSystemBaseModel.uml @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/Activator.java b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/Activator.java new file mode 100644 index 0000000..c3ab38e --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/Activator.java @@ -0,0 +1,66 @@ +/******************************************************************************* + * Copyright (c) 2008, 2011 Obeo. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Obeo - initial API and implementation + *******************************************************************************/ +package eu.supersede.reconfiguration.enactor.uml2json; + +import org.eclipse.core.runtime.Plugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle. + */ +public class Activator extends Plugin { + + /** + * The plug-in ID. + */ + public static final String PLUGIN_ID = "eu.supersede.reconfiguration.enactor.uml2json"; + + /** + * The shared instance. + */ + private static Activator plugin; + + /** + * The constructor. + */ + public Activator() { + } + + /** + * {@inheritDoc} + * + * @see org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + } + + /** + * {@inheritDoc} + * + * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext) + */ + public void stop(BundleContext context) throws Exception { + plugin = null; + super.stop(context); + } + + /** + * Returns the shared instance. + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } + +} diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/GenerateJson.java b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/GenerateJson.java new file mode 100644 index 0000000..63b2224 --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/GenerateJson.java @@ -0,0 +1,411 @@ +/******************************************************************************* + * Copyright (c) 2008, 2012 Obeo. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Obeo - initial API and implementation + *******************************************************************************/ +package eu.supersede.reconfiguration.enactor.uml2json; + +import java.io.File; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.acceleo.engine.event.IAcceleoTextGenerationListener; +import org.eclipse.acceleo.engine.generation.strategy.IAcceleoGenerationStrategy; +import org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator; +import org.eclipse.emf.common.util.BasicMonitor; +import org.eclipse.emf.common.util.Monitor; +import org.eclipse.emf.common.util.URI; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.resource.ResourceSet; +//import org.eclipse.uml2.uml.resource.UMLResource; +//import org.eclipse.uml2.uml.UMLPackage; + +/** + * Entry point of the 'GenerateJson' generation module. + * + * @generated + */ +public class GenerateJson extends AbstractAcceleoGenerator { + /** + * The name of the module. + * + * @generated + */ + public static final String MODULE_FILE_NAME = "/eu/supersede/reconfiguration/enactor/uml2json/generateJson"; + + /** + * The name of the templates that are to be generated. + * + * @generated + */ + public static final String[] TEMPLATE_NAMES = { "generateJsonModel" }; + + /** + * The list of properties files from the launch parameters (Launch configuration). + * + * @generated + */ + private List propertiesFiles = new ArrayList(); + + /** + * Allows the public constructor to be used. Note that a generator created + * this way cannot be used to launch generations before one of + * {@link #initialize(EObject, File, List)} or + * {@link #initialize(URI, File, List)} is called. + *

+ * The main reason for this constructor is to allow clients of this + * generation to call it from another Java file, as it allows for the + * retrieval of {@link #getProperties()} and + * {@link #getGenerationListeners()}. + *

+ * + * @generated + */ + public GenerateJson() { + // Empty implementation + } + + /** + * This allows clients to instantiates a generator with all required information. + * + * @param modelURI + * URI where the model on which this generator will be used is located. + * @param targetFolder + * This will be used as the output folder for this generation : it will be the base path + * against which all file block URLs will be resolved. + * @param arguments + * If the template which will be called requires more than one argument taken from the model, + * pass them here. + * @throws IOException + * This can be thrown in three scenarios : the module cannot be found, it cannot be loaded, or + * the model cannot be loaded. + * @generated + */ + public GenerateJson(URI modelURI, File targetFolder, + List arguments) throws IOException { + initialize(modelURI, targetFolder, arguments); + } + + /** + * This allows clients to instantiates a generator with all required information. + * + * @param model + * We'll iterate over the content of this element to find Objects matching the first parameter + * of the template we need to call. + * @param targetFolder + * This will be used as the output folder for this generation : it will be the base path + * against which all file block URLs will be resolved. + * @param arguments + * If the template which will be called requires more than one argument taken from the model, + * pass them here. + * @throws IOException + * This can be thrown in two scenarios : the module cannot be found, or it cannot be loaded. + * @generated + */ + public GenerateJson(EObject model, File targetFolder, + List arguments) throws IOException { + initialize(model, targetFolder, arguments); + } + + /** + * This can be used to launch the generation from a standalone application. + * + * @param args + * Arguments of the generation. + * @generated + */ + public static void main(String[] args) { + try { + if (args.length < 2) { + System.out.println("Arguments not valid : {model, folder}."); + } else { + URI modelURI = URI.createFileURI(args[0]); + File folder = new File(args[1]); + + List arguments = new ArrayList(); + + /* + * If you want to change the content of this method, do NOT forget to change the "@generated" + * tag in the Javadoc of this method to "@generated NOT". Without this new tag, any compilation + * of the Acceleo module with the main template that has caused the creation of this class will + * revert your modifications. + */ + + /* + * Add in this list all the arguments used by the starting point of the generation + * If your main template is called on an element of your model and a String, you can + * add in "arguments" this "String" attribute. + */ + + GenerateJson generator = new GenerateJson(modelURI, folder, arguments); + + /* + * Add the properties from the launch arguments. + * If you want to programmatically add new properties, add them in "propertiesFiles" + * You can add the absolute path of a properties files, or even a project relative path. + * If you want to add another "protocol" for your properties files, please override + * "getPropertiesLoaderService(AcceleoService)" in order to return a new property loader. + * The behavior of the properties loader service is explained in the Acceleo documentation + * (Help -> Help Contents). + */ + + for (int i = 2; i < args.length; i++) { + generator.addPropertiesFile(args[i]); + } + + generator.doGenerate(new BasicMonitor()); + } + } catch (IOException e) { + e.printStackTrace(); + } + } + + /** + * Launches the generation described by this instance. + * + * @param monitor + * This will be used to display progress information to the user. + * @throws IOException + * This will be thrown if any of the output files cannot be saved to disk. + * @generated + */ + @Override + public void doGenerate(Monitor monitor) throws IOException { + /* + * TODO if you wish to change the generation as a whole, override this. The default behavior should + * be sufficient in most cases. If you want to change the content of this method, do NOT forget to + * change the "@generated" tag in the Javadoc of this method to "@generated NOT". Without this new tag, + * any compilation of the Acceleo module with the main template that has caused the creation of this + * class will revert your modifications. If you encounter a problem with an unresolved proxy during the + * generation, you can remove the comments in the following instructions to check for problems. Please + * note that those instructions may have a significant impact on the performances. + */ + + //org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(model); + + /* + * If you want to check for potential errors in your models before the launch of the generation, you + * use the code below. + */ + + //if (model != null && model.eResource() != null) { + // List errors = model.eResource().getErrors(); + // for (org.eclipse.emf.ecore.resource.Resource.Diagnostic diagnostic : errors) { + // System.err.println(diagnostic.toString()); + // } + //} + + super.doGenerate(monitor); + } + + /** + * If this generator needs to listen to text generation events, listeners can be returned from here. + * + * @return List of listeners that are to be notified when text is generated through this launch. + * @generated + */ + @Override + public List getGenerationListeners() { + List listeners = super.getGenerationListeners(); + /* + * TODO if you need to listen to generation event, add listeners to the list here. If you want to change + * the content of this method, do NOT forget to change the "@generated" tag in the Javadoc of this method + * to "@generated NOT". Without this new tag, any compilation of the Acceleo module with the main template + * that has caused the creation of this class will revert your modifications. + */ + return listeners; + } + + /** + * If you need to change the way files are generated, this is your entry point. + *

+ * The default is {@link org.eclipse.acceleo.engine.generation.strategy.DefaultStrategy}; it generates + * files on the fly. If you only need to preview the results, return a new + * {@link org.eclipse.acceleo.engine.generation.strategy.PreviewStrategy}. Both of these aren't aware of + * the running Eclipse and can be used standalone. + *

+ *

+ * If you need the file generation to be aware of the workspace (A typical example is when you wanna + * override files that are under clear case or any other VCS that could forbid the overriding), then + * return a new {@link org.eclipse.acceleo.engine.generation.strategy.WorkspaceAwareStrategy}. + * Note, however, that this cannot be used standalone. + *

+ *

+ * All three of these default strategies support merging through JMerge. + *

+ * + * @return The generation strategy that is to be used for generations launched through this launcher. + * @generated + */ + @Override + public IAcceleoGenerationStrategy getGenerationStrategy() { + return super.getGenerationStrategy(); + } + + /** + * This will be called in order to find and load the module that will be launched through this launcher. + * We expect this name not to contain file extension, and the module to be located beside the launcher. + * + * @return The name of the module that is to be launched. + * @generated + */ + @Override + public String getModuleName() { + return MODULE_FILE_NAME; + } + + /** + * If the module(s) called by this launcher require properties files, return their qualified path from + * here.Take note that the first added properties files will take precedence over subsequent ones if they + * contain conflicting keys. + * + * @return The list of properties file we need to add to the generation context. + * @see java.util.ResourceBundle#getBundle(String) + * @generated + */ + @Override + public List getProperties() { + /* + * If you want to change the content of this method, do NOT forget to change the "@generated" + * tag in the Javadoc of this method to "@generated NOT". Without this new tag, any compilation + * of the Acceleo module with the main template that has caused the creation of this class will + * revert your modifications. + */ + + /* + * TODO if your generation module requires access to properties files, add their qualified path to the list here. + * + * Properties files can be located in an Eclipse plug-in or in the file system (all Acceleo projects are Eclipse + * plug-in). In order to use properties files located in an Eclipse plugin, you need to add the path of the properties + * files to the "propertiesFiles" list: + * + * final String prefix = "platform:/plugin/"; + * final String pluginName = "org.eclipse.acceleo.module.sample"; + * final String packagePath = "/org/eclipse/acceleo/module/sample/properties/"; + * final String fileName = "default.properties"; + * propertiesFiles.add(prefix + pluginName + packagePath + fileName); + * + * With this mechanism, you can load properties files from your plugin or from another plugin. + * + * You may want to load properties files from the file system, for that you need to add the absolute path of the file: + * + * propertiesFiles.add("C:\Users\MyName\MyFile.properties"); + * + * If you want to let your users add properties files located in the same folder as the model: + * + * if (EMFPlugin.IS_ECLIPSE_RUNNING && model != null && model.eResource() != null) { + * propertiesFiles.addAll(AcceleoEngineUtils.getPropertiesFilesNearModel(model.eResource())); + * } + * + * To learn more about Properties Files, have a look at the Acceleo documentation (Help -> Help Contents). + */ + return propertiesFiles; + } + + /** + * Adds a properties file in the list of properties files. + * + * @param propertiesFile + * The properties file to add. + * @generated + * @since 3.1 + */ + @Override + public void addPropertiesFile(String propertiesFile) { + this.propertiesFiles.add(propertiesFile); + } + + /** + * This will be used to get the list of templates that are to be launched by this launcher. + * + * @return The list of templates to call on the module {@link #getModuleName()}. + * @generated + */ + @Override + public String[] getTemplateNames() { + return TEMPLATE_NAMES; + } + + /** + * This can be used to update the resource set's package registry with all needed EPackages. + * + * @param resourceSet + * The resource set which registry has to be updated. + * @generated + */ + @Override + public void registerPackages(ResourceSet resourceSet) { + super.registerPackages(resourceSet); + if (!isInWorkspace(org.eclipse.uml2.uml.UMLPackage.class)) { + resourceSet.getPackageRegistry().put(org.eclipse.uml2.uml.UMLPackage.eINSTANCE.getNsURI(), org.eclipse.uml2.uml.UMLPackage.eINSTANCE); + } + + /* + * If you want to change the content of this method, do NOT forget to change the "@generated" + * tag in the Javadoc of this method to "@generated NOT". Without this new tag, any compilation + * of the Acceleo module with the main template that has caused the creation of this class will + * revert your modifications. + */ + + /* + * If you need additional package registrations, you can register them here. The following line + * (in comment) is an example of the package registration for UML. + * + * You can use the method "isInWorkspace(Class c)" to check if the package that you are about to + * register is in the workspace. + * + * To register a package properly, please follow the following conventions: + * + * If the package is located in another plug-in, already installed in Eclipse. The following content should + * have been generated at the beginning of this method. Do not register the package using this mechanism if + * the metamodel is located in the workspace. + * + * if (!isInWorkspace(UMLPackage.class)) { + * // The normal package registration if your metamodel is in a plugin. + * resourceSet.getPackageRegistry().put(UMLPackage.eNS_URI, UMLPackage.eINSTANCE); + * } + * + * If the package is located in another project in your workspace, the plugin containing the package has not + * been register by EMF and Acceleo should register it automatically. If you want to use the generator in + * stand alone, the regular registration (seen a couple lines before) is needed. + * + * To learn more about Package Registration, have a look at the Acceleo documentation (Help -> Help Contents). + */ + } + + /** + * This can be used to update the resource set's resource factory registry with all needed factories. + * + * @param resourceSet + * The resource set which registry has to be updated. + * @generated + */ + @Override + public void registerResourceFactories(ResourceSet resourceSet) { + super.registerResourceFactories(resourceSet); + /* + * If you want to change the content of this method, do NOT forget to change the "@generated" + * tag in the Javadoc of this method to "@generated NOT". Without this new tag, any compilation + * of the Acceleo module with the main template that has caused the creation of this class will + * revert your modifications. + */ + + /* + * TODO If you need additional resource factories registrations, you can register them here. the following line + * (in comment) is an example of the resource factory registration for UML. + * + * If you want to use the generator in stand alone, the resource factory registration will be required. + * + * To learn more about the registration of Resource Factories, have a look at the Acceleo documentation (Help -> Help Contents). + */ + + // resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(UMLResource.FILE_EXTENSION, UMLResource.Factory.INSTANCE); + } + +} \ No newline at end of file diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/Uml2Json.java b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/Uml2Json.java new file mode 100644 index 0000000..0f9f32e --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/Uml2Json.java @@ -0,0 +1,46 @@ +/******************************************************************************* + * Copyright (c) 2016 FBK + * All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * Denisse Muñante (FBK) - main development + * + * Initially developed in the context of SUPERSEDE EU project www.supersede.eu + *******************************************************************************/ +package eu.supersede.reconfiguration.enactor.uml2json; + +import java.io.File; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.emf.common.util.BasicMonitor; +import org.eclipse.emf.common.util.URI; + +public class Uml2Json { +private static List arguments = new ArrayList(); + + /** + * Derives from a UML model to JSON entries + * @param absoluteUMLModelPath absolute path location for UML model + * @param absolutetargetFolderPath absolute path location for folder where to place generated JSON entries + * @throws IOException + */ + public static void deriveUMLToJsonInFolder (String absoluteUMLModelPath, String absoluteTargetFolderPath) throws IOException{ + URI modelURI = URI.createFileURI(absoluteUMLModelPath); + File targetFolder = new File (absoluteTargetFolderPath); + GenerateJson generator = new GenerateJson(modelURI, targetFolder, arguments); + + generator.doGenerate(new BasicMonitor()); + } +} diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/common/common.mtl b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/common/common.mtl new file mode 100644 index 0000000..f289676 --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/common/common.mtl @@ -0,0 +1,69 @@ +[comment encoding = UTF-8 /] +[** + * /******************************************************************************* + * Copyright (c) 2016 FBK + * All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * Denisse Muñante (FBK) - main development + * + * Initially developed in the context of SUPERSEDE EU project www.supersede.eu + *******************************************************************************/ + */] +[** + * common: this is the common module to provide useful queriesused by others modules. + */] +[module common('http://www.eclipse.org/uml2/5.0.0/UML')] + +[** + * Returns the list of classes contained in a model + */] +[query public getClasses(aModel : Model) : Sequence(OclAny) = + aModel.eContents(Class) + /] + +[** + * Returns the list of attributes contained in a class + */] +[query public getAttributes(aClass : Class) : OrderedSet(Property) = + aClass.allAttributes() + /] + +[** + * Returns the list of instance specification contained in a model + * mModel.eContents(InstanceSpecification)->select(visibility = VisibilityKind::public) + */] +[query public getInstanceSpecifications(aModel : Model) : Sequence(InstanceSpecification) = + aModel.eContents(InstanceSpecification) + /] + +[** + * Returns the list of slots contained in an Instance + */] +[query public getSlots(anInstance : InstanceSpecification) : Set(Slot) = + anInstance.slot + /] + +[** + * Returns the Value Specification od an Slot + */] +[query public getValueSlot(aSlot : Slot) : ValueSpecification = + aSlot.value->first() + /] + +[** + * Returns if it is monitoring + */] +[query public getIfMonitor(aModel : Model) : Boolean = + aModel.name.toLower().contains('monitor') + /] \ No newline at end of file diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/files/genInstance2Json.mtl b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/files/genInstance2Json.mtl new file mode 100644 index 0000000..d837d76 --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/files/genInstance2Json.mtl @@ -0,0 +1,55 @@ +[comment encoding = UTF-8 /] +[** + * /******************************************************************************* + * Copyright (c) 2016 FBK + * All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * Denisse Muñante (FBK) - main development + * + * Initially developed in the context of SUPERSEDE EU project www.supersede.eu + *******************************************************************************/ + */] +[** + * genInstance2Json: this module translates UML instances to JSON entries +*/] +[module genInstance2Json('http://www.eclipse.org/uml2/5.0.0/UML')] +[import eu::supersede::reconfiguration::enactor::uml2json::common::common /] + + +[** + * Generates JSON entries from UML instances + * @param anInstanceSpecification - UML instance + */] +[template public generateInstance2Json(anInstanceSpecification : InstanceSpecification)] +"[anInstanceSpecification.classifier.name/].[anInstanceSpecification.name/]": +[for (aSlot : Slot | getSlots(anInstanceSpecification)) before ('{') separator (',') after('},') ] +[let val : ValueSpecification = aSlot.getValueSlot()] +"[val.name/]":"[val.stringValue()/]" +[/let] +[/for] +[/template] + +[** + * Generates JSON entries from UML instances + * This version is used by the monitoring. + * @param anInstanceSpecification - UML instance + */] +[template public generateInstance2JsonMonitor(anInstanceSpecification : InstanceSpecification)] +"[anInstanceSpecification.classifier.name/]": +[for (aSlot : Slot | getSlots(anInstanceSpecification)) before ('{') separator (',') after('},') ] +[let val : ValueSpecification = aSlot.getValueSlot()] +"[val.name/]":"[val.stringValue()/]" +[/let] +[/for] +[/template] \ No newline at end of file diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/files/genModel2Json.mtl b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/files/genModel2Json.mtl new file mode 100644 index 0000000..2a8dc88 --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/files/genModel2Json.mtl @@ -0,0 +1,51 @@ +[comment encoding = UTF-8 /] +[** + * /******************************************************************************* + * Copyright (c) 2016 FBK + * All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * Denisse Muñante (FBK) - main development + * + * Initially developed in the context of SUPERSEDE EU project www.supersede.eu + *******************************************************************************/ + */] +[** + * genModel2Json: this module creates a json file containing Json entries +*/] +[module genModel2Json('http://www.eclipse.org/uml2/5.0.0/UML')] +[import eu::supersede::reconfiguration::enactor::uml2json::common::common /] +[import eu::supersede::reconfiguration::enactor::uml2json::files::genInstance2Json /] + + +[** + * Creates a txt file with JSON entries derived from UML instances + * @param aModel - UML model + */] +[template public generateJsonfromInstance(aModel : Model)] + +[file (aModel.name.concat('.txt'), false, 'UTF-8')] +{ +[if (aModel.getIfMonitor())] +[for (anInstance : InstanceSpecification | aModel.getInstanceSpecifications())] +[anInstance.generateInstance2JsonMonitor()/] +[/for] +[/if] +[if (aModel.getIfMonitor()._not())] +[for (anInstance : InstanceSpecification | aModel.getInstanceSpecifications())] +[anInstance.generateInstance2Json()/] +[/for] +[/if] +} +[/file] +[/template] \ No newline at end of file diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/generateJson.mtl b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/generateJson.mtl new file mode 100644 index 0000000..932ab18 --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/generateJson.mtl @@ -0,0 +1,35 @@ +[comment encoding = UTF-8 /] +[** + * /******************************************************************************* + * Copyright (c) 2016 FBK + * All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * Denisse Muñante (FBK) - main development + * + * Initially developed in the context of SUPERSEDE EU project www.supersede.eu + *******************************************************************************/ + */] +[** + * generateJson: this is the main module +*/] +[module generateJson('http://www.eclipse.org/uml2/5.0.0/UML')/] +[import eu::supersede::reconfiguration::enactor::uml2json::files::genModel2Json/] + + +[template public generateJsonModel(aModel : Model)] + + [comment @main /] + [aModel.generateJsonfromInstance()/] + +[/template] diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/test/FeedbackGatheringTest.java b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/test/FeedbackGatheringTest.java new file mode 100644 index 0000000..4c7524c --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/test/FeedbackGatheringTest.java @@ -0,0 +1,39 @@ +/******************************************************************************* + * Copyright (c) 2016 FBK + * All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * Denisse Muñante (FBK) - main development + * + * Initially developed in the context of SUPERSEDE EU project www.supersede.eu + *******************************************************************************/ +package eu.supersede.reconfiguration.enactor.uml2json.test; + +import static org.junit.Assert.*; + +import java.io.IOException; + +import org.junit.Test; + +import eu.supersede.reconfiguration.enactor.uml2json.Uml2Json; + +public class FeedbackGatheringTest { + + @Test + public void uml2jsonTest() throws IOException{ + // NOTE: Edit this absolute paths before testing + String absoluteModelPath = "/home/denisse/workspaceModel/eu.supersede.reconfiguration.enactor.uml2json/models/FGBaseModel.uml"; + String absolutetargetFolderPath = "/home/denisse/workspaceModel/eu.supersede.reconfiguration.enactor.uml2json/json/"; + Uml2Json.deriveUMLToJsonInFolder(absoluteModelPath, absolutetargetFolderPath); + } +} \ No newline at end of file diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/test/MonitoringTest.java b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/test/MonitoringTest.java new file mode 100644 index 0000000..d68a41b --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/src/eu/supersede/reconfiguration/enactor/uml2json/test/MonitoringTest.java @@ -0,0 +1,39 @@ +/******************************************************************************* + * Copyright (c) 2016 FBK + * All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * Denisse Muñante (FBK) - main development + * + * Initially developed in the context of SUPERSEDE EU project www.supersede.eu + *******************************************************************************/ +package eu.supersede.reconfiguration.enactor.uml2json.test; + +import static org.junit.Assert.*; + +import java.io.IOException; + +import org.junit.Test; + +import eu.supersede.reconfiguration.enactor.uml2json.Uml2Json; + +public class MonitoringTest { + + @Test + public void uml2jsonTest() throws IOException{ + // NOTE: Edit this absolute paths before testing + String absoluteModelPath = "/home/denisse/workspaceModel/eu.supersede.reconfiguration.enactor.uml2json/models/MonitoringSystemBaseModel.uml"; + String absolutetargetFolderPath = "/home/denisse/workspaceModel/eu.supersede.reconfiguration.enactor.uml2json/json/"; + Uml2Json.deriveUMLToJsonInFolder(absoluteModelPath, absolutetargetFolderPath); + } +} \ No newline at end of file diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/tasks/generateJson.xml b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/tasks/generateJson.xml new file mode 100644 index 0000000..40fead1 --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/tasks/generateJson.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/tasks/generateJsonTarget.xml b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/tasks/generateJsonTarget.xml new file mode 100644 index 0000000..48f7ac2 --- /dev/null +++ b/feedback_reconf/eu.supersede.reconfiguration.enactor.uml2json/tasks/generateJsonTarget.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + +