diff --git a/modeling/modelsForTestingTTool/TML2AvatarTestModel.xml b/modeling/modelsForTestingTTool/TML2AvatarTestModel.xml new file mode 100644 index 0000000000000000000000000000000000000000..05164f5ac3790c96b775f0baa37e6cbb800d0437 --- /dev/null +++ b/modeling/modelsForTestingTTool/TML2AvatarTestModel.xml @@ -0,0 +1,1070 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> + +<TURTLEGMODELING version="0.99-beta4"> + +<Modeling type="TML Component Design" nameTab="Design" > +<TMLComponentTaskDiagramPanel name="TML Component Task Diagram" minX="10" maxX="2500" minY="10" maxY="1500" channels="true" events="true" requests="true" zoom="1.0" > +<CONNECTOR type="126" id="1" > +<cdparam x="437" y="457" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="Connector between ports" /> +<P1 x="437" y="457" id="8" /> +<P2 x="539" y="459" id="51" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="126" id="2" > +<cdparam x="437" y="414" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="Connector between ports" /> +<P1 x="437" y="414" id="6" /> +<P2 x="539" y="414" id="49" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="126" id="3" > +<cdparam x="425" y="250" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="Connector between ports" /> +<P1 x="425" y="244" id="34" /> +<P2 x="562" y="244" id="21" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="126" id="4" > +<cdparam x="425" y="205" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="Connector between ports" /> +<P1 x="425" y="205" id="36" /> +<P2 x="562" y="204" id="19" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="126" id="5" > +<cdparam x="562" y="153" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="Connector between ports" /> +<P1 x="562" y="155" id="23" /> +<P2 x="425" y="155" id="38" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<COMPONENT type="1200" id="70" > +<cdparam x="191" y="23" /> +<sizeparam width="691" height="537" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Composite component" value="System" /> +<TGConnectingPoint num="0" id="62" /> +<TGConnectingPoint num="1" id="63" /> +<TGConnectingPoint num="2" id="64" /> +<TGConnectingPoint num="3" id="65" /> +<TGConnectingPoint num="4" id="66" /> +<TGConnectingPoint num="5" id="67" /> +<TGConnectingPoint num="6" id="68" /> +<TGConnectingPoint num="7" id="69" /> +<extraparam> +<info hiddeni="false" /> +</extraparam> +</COMPONENT> +<SUBCOMPONENT type="1202" id="18" > +<father id="70" num="0" /> +<cdparam x="224" y="357" /> +<sizeparam width="200" height="150" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="0" maxX="491" minY="0" maxY="387" /> +<infoparam name="Primitive component" value="comp2" /> +<TGConnectingPoint num="0" id="10" /> +<TGConnectingPoint num="1" id="11" /> +<TGConnectingPoint num="2" id="12" /> +<TGConnectingPoint num="3" id="13" /> +<TGConnectingPoint num="4" id="14" /> +<TGConnectingPoint num="5" id="15" /> +<TGConnectingPoint num="6" id="16" /> +<TGConnectingPoint num="7" id="17" /> +<extraparam> +<Data isAttacker="No" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1203" id="7" > +<father id="18" num="0" /> +<cdparam x="411" y="401" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="187" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Event evt1" /> +<TGConnectingPoint num="0" id="6" /> +<extraparam> +<Prop commName="evt1" commType="1" origin="true" finite="false" blocking="false" maxSamples="8" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="uint_16" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" referenceReq="null" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1203" id="9" > +<father id="18" num="1" /> +<cdparam x="411" y="444" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="187" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Event evt2" /> +<TGConnectingPoint num="0" id="8" /> +<extraparam> +<Prop commName="evt2" commType="1" origin="true" finite="false" blocking="false" maxSamples="8" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="uint_16" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" referenceReq="null" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1202" id="33" > +<father id="70" num="1" /> +<cdparam x="575" y="121" /> +<sizeparam width="200" height="150" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="0" maxX="491" minY="0" maxY="387" /> +<infoparam name="Primitive component" value="comp1" /> +<TGConnectingPoint num="0" id="25" /> +<TGConnectingPoint num="1" id="26" /> +<TGConnectingPoint num="2" id="27" /> +<TGConnectingPoint num="3" id="28" /> +<TGConnectingPoint num="4" id="29" /> +<TGConnectingPoint num="5" id="30" /> +<TGConnectingPoint num="6" id="31" /> +<TGConnectingPoint num="7" id="32" /> +<extraparam> +<Data isAttacker="No" /> +<Attribute access="2" id="a" value="" type="0" typeOther="" /> +<Attribute access="2" id="b" value="" type="0" typeOther="" /> +<Attribute access="2" id="attr" value="" type="4" typeOther="" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1203" id="20" > +<father id="33" num="0" /> +<cdparam x="562" y="191" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="187" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Event evt" /> +<TGConnectingPoint num="0" id="19" /> +<extraparam> +<Prop commName="evt" commType="1" origin="false" finite="false" blocking="true" maxSamples="8" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="uint_16" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" referenceReq="null" /> +<Type type="2" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1203" id="22" > +<father id="33" num="1" /> +<cdparam x="562" y="231" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="187" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Request req" /> +<TGConnectingPoint num="0" id="21" /> +<extraparam> +<Prop commName="req" commType="2" origin="false" finite="false" blocking="true" maxSamples="8" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="uint_16" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" referenceReq="null" /> +<Type type="1" typeOther="" /> +<Type type="1" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1203" id="24" > +<father id="33" num="2" /> +<cdparam x="562" y="142" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="187" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Channel ch" /> +<TGConnectingPoint num="0" id="23" /> +<extraparam> +<Prop commName="ch" commType="0" origin="true" finite="false" blocking="true" maxSamples="1" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="uint_16" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" referenceReq="null" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1202" id="48" > +<father id="70" num="2" /> +<cdparam x="237" y="119" /> +<sizeparam width="175" height="150" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="0" maxX="516" minY="0" maxY="387" /> +<infoparam name="Primitive component" value="comp0" /> +<TGConnectingPoint num="0" id="40" /> +<TGConnectingPoint num="1" id="41" /> +<TGConnectingPoint num="2" id="42" /> +<TGConnectingPoint num="3" id="43" /> +<TGConnectingPoint num="4" id="44" /> +<TGConnectingPoint num="5" id="45" /> +<TGConnectingPoint num="6" id="46" /> +<TGConnectingPoint num="7" id="47" /> +<extraparam> +<Data isAttacker="No" /> +<Attribute access="2" id="a" value="10" type="0" typeOther="" /> +<Attribute access="2" id="b" value="11" type="0" typeOther="" /> +<Attribute access="2" id="attr" value="" type="4" typeOther="" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1203" id="35" > +<father id="48" num="0" /> +<cdparam x="399" y="231" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="162" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Request req" /> +<TGConnectingPoint num="0" id="34" /> +<extraparam> +<Prop commName="req" commType="2" origin="true" finite="false" blocking="false" maxSamples="8" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="uint_16" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" referenceReq="null" /> +<Type type="1" typeOther="" /> +<Type type="1" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1203" id="37" > +<father id="48" num="1" /> +<cdparam x="399" y="192" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="162" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Event evt" /> +<TGConnectingPoint num="0" id="36" /> +<extraparam> +<Prop commName="evt" commType="1" origin="true" finite="true" blocking="true" maxSamples="1" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="uint_16" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" referenceReq="null" /> +<Type type="2" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1203" id="39" > +<father id="48" num="2" /> +<cdparam x="399" y="142" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="162" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Channel ch" /> +<TGConnectingPoint num="0" id="38" /> +<extraparam> +<Prop commName="ch" commType="0" origin="false" finite="false" blocking="true" maxSamples="8" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="uint_16" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" referenceReq="null" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1202" id="61" > +<father id="70" num="3" /> +<cdparam x="552" y="359" /> +<sizeparam width="200" height="150" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="0" maxX="491" minY="0" maxY="387" /> +<infoparam name="Primitive component" value="comp3" /> +<TGConnectingPoint num="0" id="53" /> +<TGConnectingPoint num="1" id="54" /> +<TGConnectingPoint num="2" id="55" /> +<TGConnectingPoint num="3" id="56" /> +<TGConnectingPoint num="4" id="57" /> +<TGConnectingPoint num="5" id="58" /> +<TGConnectingPoint num="6" id="59" /> +<TGConnectingPoint num="7" id="60" /> +<extraparam> +<Data isAttacker="No" /> +<Attribute access="2" id="time1" value="10" type="0" typeOther="" /> +<Attribute access="2" id="time2" value="20" type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1203" id="50" > +<father id="61" num="0" /> +<cdparam x="539" y="401" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="187" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Event evt1" /> +<TGConnectingPoint num="0" id="49" /> +<extraparam> +<Prop commName="evt1" commType="1" origin="false" finite="false" blocking="true" maxSamples="8" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="uint_16" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" referenceReq="null" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1203" id="52" > +<father id="61" num="1" /> +<cdparam x="539" y="446" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="187" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Event evt2" /> +<TGConnectingPoint num="0" id="51" /> +<extraparam> +<Prop commName="evt2" commType="1" origin="false" finite="false" blocking="true" maxSamples="8" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="uint_16" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" referenceReq="null" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> + + +</TMLComponentTaskDiagramPanel> + +<TMLActivityDiagramPanel name="comp3" minX="10" maxX="2500" minY="10" maxY="1500" > +<COMPONENT type="1001" id="72" > +<cdparam x="487" y="335" /> +<sizeparam width="20" height="20" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="stop state" value="null" /> +<TGConnectingPoint num="0" id="71" /> +</COMPONENT> + +<COMPONENT type="1013" id="76" > +<cdparam x="495" y="268" /> +<sizeparam width="10" height="30" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="execI" value="null" /> +<TGConnectingPoint num="0" id="74" /> +<TGConnectingPoint num="1" id="75" /> +</COMPONENT> +<SUBCOMPONENT type="-1" id="73" > +<father id="76" num="0" /> +<cdparam x="510" y="288" /> +<sizeparam width="35" height="15" minWidth="10" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-75" maxX="30" minY="10" maxY="30" /> +<infoparam name="value of the delay" value="time2" /> +</SUBCOMPONENT> + +<COMPONENT type="1001" id="78" > +<cdparam x="307" y="337" /> +<sizeparam width="20" height="20" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="stop state" value="null" /> +<TGConnectingPoint num="0" id="77" /> +</COMPONENT> + +<COMPONENT type="1013" id="82" > +<cdparam x="312" y="262" /> +<sizeparam width="10" height="30" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="execI" value="null" /> +<TGConnectingPoint num="0" id="80" /> +<TGConnectingPoint num="1" id="81" /> +</COMPONENT> +<SUBCOMPONENT type="-1" id="79" > +<father id="82" num="0" /> +<cdparam x="327" y="282" /> +<sizeparam width="35" height="15" minWidth="10" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-75" maxX="30" minY="10" maxY="30" /> +<infoparam name="value of the delay" value="time1" /> +</SUBCOMPONENT> + +<COMPONENT type="1010" id="85" > +<cdparam x="476" y="217" /> +<sizeparam width="51" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="wait event" value="evt2() " /> +<TGConnectingPoint num="0" id="83" /> +<TGConnectingPoint num="1" id="84" /> +<extraparam> +<Data eventName="evt2" nbOfParams="5" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1010" id="88" > +<cdparam x="291" y="213" /> +<sizeparam width="51" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="wait event" value="evt1() " /> +<TGConnectingPoint num="0" id="86" /> +<TGConnectingPoint num="1" id="87" /> +<extraparam> +<Data eventName="evt1" nbOfParams="5" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1018" id="99" > +<cdparam x="389" y="145" /> +<sizeparam width="30" height="30" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="select" value="null" /> +<TGConnectingPoint num="0" id="89" /> +<TGConnectingPoint num="1" id="90" /> +<TGConnectingPoint num="2" id="91" /> +<TGConnectingPoint num="3" id="92" /> +<TGConnectingPoint num="4" id="93" /> +<TGConnectingPoint num="5" id="94" /> +<TGConnectingPoint num="6" id="95" /> +<TGConnectingPoint num="7" id="96" /> +<TGConnectingPoint num="8" id="97" /> +<TGConnectingPoint num="9" id="98" /> +</COMPONENT> + +<COMPONENT type="1000" id="101" > +<cdparam x="400" y="50" /> +<sizeparam width="15" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="start state" value="null" /> +<TGConnectingPoint num="0" id="100" /> +</COMPONENT> + +<CONNECTOR type="115" id="102" > +<cdparam x="407" y="70" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="407" y="70" id="100" /> +<P2 x="404" y="135" id="89" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="103" > +<cdparam x="364" y="160" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="364" y="160" id="90" /> +<P2 x="316" y="208" id="86" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="104" > +<cdparam x="444" y="160" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="444" y="160" id="91" /> +<P2 x="501" y="212" id="83" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="105" > +<cdparam x="316" y="238" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="316" y="238" id="87" /> +<P2 x="317" y="257" id="80" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="106" > +<cdparam x="315" y="316" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="317" y="297" id="81" /> +<P2 x="317" y="332" id="77" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="107" > +<cdparam x="501" y="242" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="501" y="242" id="84" /> +<P2 x="500" y="263" id="74" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="108" > +<cdparam x="490" y="317" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="500" y="303" id="75" /> +<P2 x="497" y="330" id="71" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> + +</TMLActivityDiagramPanel> + +<TMLActivityDiagramPanel name="comp0" minX="10" maxX="2500" minY="10" maxY="1500" > +<COMPONENT type="1001" id="110" > +<cdparam x="405" y="379" /> +<sizeparam width="20" height="20" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="stop state" value="null" /> +<TGConnectingPoint num="0" id="109" /> +</COMPONENT> + +<COMPONENT type="1009" id="113" > +<cdparam x="405" y="304" /> +<sizeparam width="47" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="read channel" value="ch(1) " /> +<TGConnectingPoint num="0" id="111" /> +<TGConnectingPoint num="1" id="112" /> +<extraparam> +<Data channelName="ch" nbOfSamples="1" secPattern="" isAttacker="No" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1008" id="116" > +<cdparam x="383" y="196" /> +<sizeparam width="62" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="send event" value="evt(attr)" /> +<TGConnectingPoint num="0" id="114" /> +<TGConnectingPoint num="1" id="115" /> +<extraparam> +<Data eventName="evt" nbOfParams="5" /> +<Param index="0" value="attr" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1007" id="119" > +<cdparam x="378" y="124" /> +<sizeparam width="65" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="send request" value="req(a, b)" /> +<TGConnectingPoint num="0" id="117" /> +<TGConnectingPoint num="1" id="118" /> +<extraparam> +<Data requestName="req" nbOfParams="5" /> +<Param index="0" value="a" /> +<Param index="1" value="b" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1000" id="121" > +<cdparam x="400" y="50" /> +<sizeparam width="15" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="start state" value="null" /> +<TGConnectingPoint num="0" id="120" /> +</COMPONENT> + +<CONNECTOR type="115" id="122" > +<cdparam x="407" y="70" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="407" y="70" id="120" /> +<P2 x="410" y="119" id="117" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="123" > +<cdparam x="410" y="149" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="410" y="149" id="118" /> +<P2 x="414" y="191" id="114" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="124" > +<cdparam x="414" y="221" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="414" y="221" id="115" /> +<P2 x="428" y="299" id="111" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="125" > +<cdparam x="428" y="329" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="428" y="329" id="112" /> +<P2 x="415" y="374" id="109" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> + +</TMLActivityDiagramPanel> + +<TMLActivityDiagramPanel name="comp1" minX="10" maxX="2500" minY="10" maxY="1500" > +<COMPONENT type="1034" id="128" > +<cdparam x="346" y="64" /> +<sizeparam width="114" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="read args" value="getReqArg (a, b)" /> +<TGConnectingPoint num="0" id="126" /> +<TGConnectingPoint num="1" id="127" /> +<extraparam> +<Data nbOfParams="5" /> +<Param index="0" value="a" /> +<Param index="1" value="b" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1001" id="130" > +<cdparam x="395" y="275" /> +<sizeparam width="20" height="20" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="stop state" value="null" /> +<TGConnectingPoint num="0" id="129" /> +</COMPONENT> + +<COMPONENT type="1006" id="133" > +<cdparam x="385" y="188" /> +<sizeparam width="43" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="write channel" value="ch(1)" /> +<TGConnectingPoint num="0" id="131" /> +<TGConnectingPoint num="1" id="132" /> +<extraparam> +<Data channelName="ch" nbOfSamples="1" secPattern="" isAttacker="No" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1010" id="136" > +<cdparam x="373" y="116" /> +<sizeparam width="66" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="wait event" value="evt(attr) " /> +<TGConnectingPoint num="0" id="134" /> +<TGConnectingPoint num="1" id="135" /> +<extraparam> +<Data eventName="evt" nbOfParams="5" /> +<Param index="0" value="attr" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1000" id="138" > +<cdparam x="396" y="10" /> +<sizeparam width="15" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="start state" value="null" /> +<TGConnectingPoint num="0" id="137" /> +</COMPONENT> + +<CONNECTOR type="115" id="139" > +<cdparam x="403" y="89" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="403" y="89" id="127" /> +<P2 x="406" y="111" id="134" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="140" > +<cdparam x="407" y="70" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="403" y="30" id="137" /> +<P2 x="403" y="59" id="126" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="141" > +<cdparam x="454" y="149" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="406" y="141" id="135" /> +<P2 x="406" y="183" id="131" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="142" > +<cdparam x="406" y="213" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="406" y="213" id="132" /> +<P2 x="405" y="270" id="129" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> + +</TMLActivityDiagramPanel> + +<TMLActivityDiagramPanel name="comp2" minX="10" maxX="2500" minY="10" maxY="1500" > +<COMPONENT type="1032" id="150" > +<cdparam x="387" y="159" /> +<sizeparam width="150" height="5" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="random sequence" value="null" /> +<TGConnectingPoint num="0" id="144" /> +<TGConnectingPoint num="1" id="145" /> +<TGConnectingPoint num="2" id="146" /> +<TGConnectingPoint num="3" id="147" /> +<TGConnectingPoint num="4" id="148" /> +<TGConnectingPoint num="5" id="149" /> +</COMPONENT> +<SUBCOMPONENT type="-1" id="143" > +<father id="150" num="0" /> +<cdparam x="541" y="166" /> +<sizeparam width="20" height="15" minWidth="10" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="154" maxX="154" minY="7" maxY="7" /> +<infoparam name="Random sequence" value="<>" /> +</SUBCOMPONENT> + +<COMPONENT type="1001" id="152" > +<cdparam x="473" y="282" /> +<sizeparam width="20" height="20" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="stop state" value="null" /> +<TGConnectingPoint num="0" id="151" /> +</COMPONENT> + +<COMPONENT type="1001" id="154" > +<cdparam x="378" y="251" /> +<sizeparam width="20" height="20" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="stop state" value="null" /> +<TGConnectingPoint num="0" id="153" /> +</COMPONENT> + +<COMPONENT type="1008" id="157" > +<cdparam x="446" y="232" /> +<sizeparam width="47" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="send event" value="evt2()" /> +<TGConnectingPoint num="0" id="155" /> +<TGConnectingPoint num="1" id="156" /> +<extraparam> +<Data eventName="evt2" nbOfParams="5" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1008" id="160" > +<cdparam x="360" y="189" /> +<sizeparam width="47" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="send event" value="evt1()" /> +<TGConnectingPoint num="0" id="158" /> +<TGConnectingPoint num="1" id="159" /> +<extraparam> +<Data eventName="evt1" nbOfParams="5" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1026" id="164" > +<cdparam x="402" y="100" /> +<sizeparam width="10" height="30" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="delay" value="null" /> +<TGConnectingPoint num="0" id="162" /> +<TGConnectingPoint num="1" id="163" /> +</COMPONENT> +<SUBCOMPONENT type="-1" id="161" > +<father id="164" num="0" /> +<cdparam x="417" y="120" /> +<sizeparam width="39" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-75" maxX="30" minY="10" maxY="30" /> +<infoparam name="value of the delay" value="10 ms" /> +<extraparam> +<TimeDelay minDelay="10" maxDelay="nope" hasMaxDelay="false" unit="ms" /> +</extraparam> +</SUBCOMPONENT> + +<COMPONENT type="1001" id="166" > +<cdparam x="570" y="331" /> +<sizeparam width="20" height="20" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="stop state" value="null" /> +<TGConnectingPoint num="0" id="165" /> +</COMPONENT> + +<COMPONENT type="1000" id="168" > +<cdparam x="400" y="50" /> +<sizeparam width="15" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="start state" value="null" /> +<TGConnectingPoint num="0" id="167" /> +</COMPONENT> + +<CONNECTOR type="115" id="169" > +<cdparam x="462" y="164" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="462" y="164" id="147" /> +<P2 x="580" y="326" id="165" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="170" > +<cdparam x="407" y="70" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="407" y="70" id="167" /> +<P2 x="407" y="95" id="162" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="171" > +<cdparam x="383" y="214" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="383" y="214" id="159" /> +<P2 x="388" y="246" id="153" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="172" > +<cdparam x="469" y="257" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="469" y="257" id="156" /> +<P2 x="483" y="277" id="151" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="173" > +<cdparam x="407" y="135" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="407" y="135" id="163" /> +<P2 x="462" y="159" id="144" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="174" > +<cdparam x="412" y="164" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="412" y="164" id="145" /> +<P2 x="383" y="184" id="158" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="175" > +<cdparam x="436" y="164" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="436" y="164" id="146" /> +<P2 x="469" y="227" id="155" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> + +</TMLActivityDiagramPanel> + +</Modeling> + + + + +<Modeling type="TML Architecture" nameTab="Architecture" > +<TMLArchiDiagramPanel name="DIPLODOCUS architecture and mapping Diagram" minX="10" maxX="2500" minY="10" maxY="1500" attributes="0" masterClockFrequency="200" > +<COMPONENT type="1102" id="200" > +<cdparam x="367" y="11" /> +<sizeparam width="250" height="50" minWidth="100" minHeight="50" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Bus0" value="name" /> +<TGConnectingPoint num="0" id="176" /> +<TGConnectingPoint num="1" id="177" /> +<TGConnectingPoint num="2" id="178" /> +<TGConnectingPoint num="3" id="179" /> +<TGConnectingPoint num="4" id="180" /> +<TGConnectingPoint num="5" id="181" /> +<TGConnectingPoint num="6" id="182" /> +<TGConnectingPoint num="7" id="183" /> +<TGConnectingPoint num="8" id="184" /> +<TGConnectingPoint num="9" id="185" /> +<TGConnectingPoint num="10" id="186" /> +<TGConnectingPoint num="11" id="187" /> +<TGConnectingPoint num="12" id="188" /> +<TGConnectingPoint num="13" id="189" /> +<TGConnectingPoint num="14" id="190" /> +<TGConnectingPoint num="15" id="191" /> +<TGConnectingPoint num="16" id="192" /> +<TGConnectingPoint num="17" id="193" /> +<TGConnectingPoint num="18" id="194" /> +<TGConnectingPoint num="19" id="195" /> +<TGConnectingPoint num="20" id="196" /> +<TGConnectingPoint num="21" id="197" /> +<TGConnectingPoint num="22" id="198" /> +<TGConnectingPoint num="23" id="199" /> +<extraparam> +<info stereotype="Bus" nodeName="Bus0" /> +<attributes byteDataSize="4" arbitrationPolicy="0" sliceTime="10000" pipelineSize="1" clockRatio="1" privacy="0" referenceAttack="null" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1100" id="243" > +<cdparam x="506" y="90" /> +<sizeparam width="250" height="200" minWidth="150" minHeight="100" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="CPU1" value="name" /> +<TGConnectingPoint num="0" id="219" /> +<TGConnectingPoint num="1" id="220" /> +<TGConnectingPoint num="2" id="221" /> +<TGConnectingPoint num="3" id="222" /> +<TGConnectingPoint num="4" id="223" /> +<TGConnectingPoint num="5" id="224" /> +<TGConnectingPoint num="6" id="225" /> +<TGConnectingPoint num="7" id="226" /> +<TGConnectingPoint num="8" id="227" /> +<TGConnectingPoint num="9" id="228" /> +<TGConnectingPoint num="10" id="229" /> +<TGConnectingPoint num="11" id="230" /> +<TGConnectingPoint num="12" id="231" /> +<TGConnectingPoint num="13" id="232" /> +<TGConnectingPoint num="14" id="233" /> +<TGConnectingPoint num="15" id="234" /> +<TGConnectingPoint num="16" id="235" /> +<TGConnectingPoint num="17" id="236" /> +<TGConnectingPoint num="18" id="237" /> +<TGConnectingPoint num="19" id="238" /> +<TGConnectingPoint num="20" id="239" /> +<TGConnectingPoint num="21" id="240" /> +<TGConnectingPoint num="22" id="241" /> +<TGConnectingPoint num="23" id="242" /> +<extraparam> +<info stereotype="CPURR" nodeName="CPU1" /> +<attributes nbOfCores="1" byteDataSize="4" schedulingPolicy="0" sliceTime="10000" goIdleTime="10" maxConsecutiveIdleCycles="10" pipelineSize="5" taskSwitchingTime="20" branchingPredictionPenalty="2" cacheMiss="5" execiTime="1" execcTime="1" clockRatio="1" MECType="0" encryption="0"/> +</extraparam> +</COMPONENT> +<SUBCOMPONENT type="1101" id="209" > +<father id="243" num="0" /> +<cdparam x="592" y="236" /> +<sizeparam width="128" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="0" maxX="122" minY="0" maxY="160" /> +<infoparam name="TGComponent" value="Design::comp2" /> +<TGConnectingPoint num="0" id="201" /> +<TGConnectingPoint num="1" id="202" /> +<TGConnectingPoint num="2" id="203" /> +<TGConnectingPoint num="3" id="204" /> +<TGConnectingPoint num="4" id="205" /> +<TGConnectingPoint num="5" id="206" /> +<TGConnectingPoint num="6" id="207" /> +<TGConnectingPoint num="7" id="208" /> +<extraparam> +<info value="Design::comp2" taskName="comp2" referenceTaskName="Design" priority="0" operation="comp2" fatherComponentMECType="0" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1101" id="218" > +<father id="243" num="1" /> +<cdparam x="626" y="169" /> +<sizeparam width="128" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="0" maxX="122" minY="0" maxY="160" /> +<infoparam name="TGComponent" value="Design::comp1" /> +<TGConnectingPoint num="0" id="210" /> +<TGConnectingPoint num="1" id="211" /> +<TGConnectingPoint num="2" id="212" /> +<TGConnectingPoint num="3" id="213" /> +<TGConnectingPoint num="4" id="214" /> +<TGConnectingPoint num="5" id="215" /> +<TGConnectingPoint num="6" id="216" /> +<TGConnectingPoint num="7" id="217" /> +<extraparam> +<info value="Design::comp1" taskName="comp1" referenceTaskName="Design" priority="0" operation="comp2" fatherComponentMECType="0" /> +</extraparam> +</SUBCOMPONENT> + +<COMPONENT type="1100" id="286" > +<cdparam x="198" y="104" /> +<sizeparam width="250" height="200" minWidth="150" minHeight="100" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="CPU0" value="name" /> +<TGConnectingPoint num="0" id="262" /> +<TGConnectingPoint num="1" id="263" /> +<TGConnectingPoint num="2" id="264" /> +<TGConnectingPoint num="3" id="265" /> +<TGConnectingPoint num="4" id="266" /> +<TGConnectingPoint num="5" id="267" /> +<TGConnectingPoint num="6" id="268" /> +<TGConnectingPoint num="7" id="269" /> +<TGConnectingPoint num="8" id="270" /> +<TGConnectingPoint num="9" id="271" /> +<TGConnectingPoint num="10" id="272" /> +<TGConnectingPoint num="11" id="273" /> +<TGConnectingPoint num="12" id="274" /> +<TGConnectingPoint num="13" id="275" /> +<TGConnectingPoint num="14" id="276" /> +<TGConnectingPoint num="15" id="277" /> +<TGConnectingPoint num="16" id="278" /> +<TGConnectingPoint num="17" id="279" /> +<TGConnectingPoint num="18" id="280" /> +<TGConnectingPoint num="19" id="281" /> +<TGConnectingPoint num="20" id="282" /> +<TGConnectingPoint num="21" id="283" /> +<TGConnectingPoint num="22" id="284" /> +<TGConnectingPoint num="23" id="285" /> +<extraparam> +<info stereotype="CPU" nodeName="CPU0" /> +<attributes nbOfCores="1" byteDataSize="4" schedulingPolicy="0" sliceTime="10000" goIdleTime="10" maxConsecutiveIdleCycles="10" pipelineSize="5" taskSwitchingTime="20" branchingPredictionPenalty="2" cacheMiss="5" execiTime="1" execcTime="1" clockRatio="1" MECType="0" encryption="0"/> +</extraparam> +</COMPONENT> +<SUBCOMPONENT type="1101" id="252" > +<father id="286" num="0" /> +<cdparam x="281" y="264" /> +<sizeparam width="128" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="0" maxX="122" minY="0" maxY="160" /> +<infoparam name="TGComponent" value="Design::comp3" /> +<TGConnectingPoint num="0" id="244" /> +<TGConnectingPoint num="1" id="245" /> +<TGConnectingPoint num="2" id="246" /> +<TGConnectingPoint num="3" id="247" /> +<TGConnectingPoint num="4" id="248" /> +<TGConnectingPoint num="5" id="249" /> +<TGConnectingPoint num="6" id="250" /> +<TGConnectingPoint num="7" id="251" /> +<extraparam> +<info value="Design::comp3" taskName="comp3" referenceTaskName="Design" priority="0" operation="comp3" fatherComponentMECType="0" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1101" id="261" > +<father id="286" num="1" /> +<cdparam x="251" y="160" /> +<sizeparam width="128" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="0" maxX="122" minY="0" maxY="160" /> +<infoparam name="TGComponent" value="Design::comp0" /> +<TGConnectingPoint num="0" id="253" /> +<TGConnectingPoint num="1" id="254" /> +<TGConnectingPoint num="2" id="255" /> +<TGConnectingPoint num="3" id="256" /> +<TGConnectingPoint num="4" id="257" /> +<TGConnectingPoint num="5" id="258" /> +<TGConnectingPoint num="6" id="259" /> +<TGConnectingPoint num="7" id="260" /> +<extraparam> +<info value="Design::comp0" taskName="comp0" referenceTaskName="Design" priority="0" operation="comp2" fatherComponentMECType="0" /> +</extraparam> +</SUBCOMPONENT> + +<CONNECTOR type="125" id="287" > +<cdparam x="568" y="90" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="{info}" /> +<P1 x="568" y="90" id="227" /> +<P2 x="554" y="61" id="191" /> +<AutomaticDrawing data="true" /> +<extraparam> +<info priority="0" /> +<spy value="false" /> +</extraparam> +</CONNECTOR> +<CONNECTOR type="125" id="288" > +<cdparam x="385" y="104" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="{info}" /> +<P1 x="385" y="104" id="271" /> +<P2 x="429" y="61" id="190" /> +<AutomaticDrawing data="true" /> +<extraparam> +<info priority="0" /> +<spy value="false" /> +</extraparam> +</CONNECTOR> + +</TMLArchiDiagramPanel> + +</Modeling> + + + + +</TURTLEGMODELING> \ No newline at end of file diff --git a/src/main/java/tmltranslator/toavatar/TML2Avatar.java b/src/main/java/tmltranslator/toavatar/TML2Avatar.java index 21fa241aa0f089d044f7778840515bc5b11f67da..c0c7aad7b03433e183c12108caadae467befd80b 100644 --- a/src/main/java/tmltranslator/toavatar/TML2Avatar.java +++ b/src/main/java/tmltranslator/toavatar/TML2Avatar.java @@ -530,27 +530,62 @@ outerloop: } else { - //This gets really complicated in ProVerif + //This gets really complicated in Avatar... for (int i=0; i< ae.getNbNext(); i++){ //For each of the possible state blocks, translate 1 and recurse on the remaining random sequence tran = new AvatarTransition(block, "__after_"+ae.getName()+"_"+i, ae.getReferenceObject()); choiceState.addNext(tran); List<AvatarStateMachineElement> tmp = translateState(ae.getNextElement(i), block); + + + AvatarState choiceStateEnd = new AvatarState("seqchoiceend__"+ i + "_"+ae.getName().replaceAll(" ",""), ae.getReferenceObject()); + elementList.add(choiceStateEnd); + + + //Remove stop states from the first generated set + for (AvatarStateMachineElement e: tmp){ + if (e instanceof AvatarStopState){ + //ignore + } + else if (e.getNexts().size()==0){ + //e.addNext(set1.get(0)); + e.addNext(choiceStateEnd); + elementList.add(e); + } + else if (e.getNext(0) instanceof AvatarStopState){ + //Remove the transition to AvatarStopState + e.removeNext(0); + e.addNext(choiceStateEnd); + //e.addNext(set1.get(0)); + elementList.add(e); + } + else { + elementList.add(e); + } + } + + + tran.addNext(tmp.get(0)); + TMLRandomSequence newSeq = new TMLRandomSequence("seqchoice__"+i+"_"+ae.getNbNext()+"_"+ae.getName(), ae.getReferenceObject()); for (int j=0; j< ae.getNbNext(); j++){ if (j!=i){ newSeq.addNext(ae.getNextElement(j)); } } + + tran = new AvatarTransition(block, "__after_"+ae.getNextElement(i).getName(), ae.getReferenceObject()); - tmp.get(tmp.size()-1).addNext(tran); - elementList.addAll(tmp); + choiceStateEnd.addNext(tran); elementList.add(tran); + List<AvatarStateMachineElement> nexts = translateState(newSeq, block); elementList.addAll(nexts); tran.addNext(nexts.get(0)); + // System.out.println(elementList); } + } return elementList; } @@ -1225,7 +1260,7 @@ outerloop: } else { //No security pattern - System.out.println("no security pattern for " + ch.getName()); + // System.out.println("no security pattern for " + ch.getName()); as.addValue(getName(ch.getName())+"_chData"); } @@ -1518,7 +1553,7 @@ outerloop: distributeKeys(); - System.out.println("ALL KEYS " +accessKeys); + TraceManager.addDev("ALL KEYS " +accessKeys); /*for (TMLTask t: accessKeys.keySet()){ System.out.println("TASK " +t.getName()); for (SecurityPattern sp: accessKeys.get(t)){ diff --git a/src/main/java/ui/GTURTLEModeling.java b/src/main/java/ui/GTURTLEModeling.java index a4d29af82b66f20cc8e6822ff75dbd640d79d16a..8c5a550861c1e379cebb46ecfe51f266f6634a39 100755 --- a/src/main/java/ui/GTURTLEModeling.java +++ b/src/main/java/ui/GTURTLEModeling.java @@ -9445,7 +9445,7 @@ public class GTURTLEModeling { } } if (!SMDMap.containsKey(el)){ - addStates(el, x+diff*(i-num/2), y+ydiff, smp, bl, SMDMap, locMap, tranDestMap, tranSourceMap); + addStates(el, x+diff*i, y+ydiff, smp, bl, SMDMap, locMap, tranDestMap, tranSourceMap); } i++; } @@ -9746,8 +9746,8 @@ public class GTURTLEModeling { // TGConnectingPoint p1 = tranSourceMap.get(t).findFirstFreeTGConnectingPoint(true,false); TGConnectingPoint p1 = tranSourceMap.get(t).closerFreeTGConnectingPoint(x, y, true, false); if (p1==null){ - // p1= tranSourceMap.get(t).findFirstFreeTGConnectingPoint(true,true); - p1=tranSourceMap.get(t).closerFreeTGConnectingPoint(x,y,true, true); + p1= tranSourceMap.get(t).findFirstFreeTGConnectingPoint(true,true); + //p1=tranSourceMap.get(t).closerFreeTGConnectingPoint(x,y,true, true); } x= locMap.get(tranDestMap.get(t)).getX()+ locMap.get(tranDestMap.get(t)).getWidth()/2; y = locMap.get(tranDestMap.get(t)).getY();