UniTO/anno2/YearI/SecondSem/VPC/labs/MT-CPN/ReteE.PNPRO
Francesco Mecca 5e286062f8 MCAD 2019
2018-11-22 13:09:11 +01:00

131 lines
8 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- This project file has been saved by the New GreatSPN Editor, v.100 --><project name="ReteE" version="121">
<gspn name="CPN" show-fluid-cmd="false" show-timed-cmd="false" view-rates="false">
<nodes>
<place label-y="-2.0" marking="R1" name="Available1" x="13.0" y="15.0"/>
<place label-y="-2.0" marking="R2" name="Available2" x="59.0" y="15.0"/>
<place domain="Master" name="S1C1" x="7.0" y="22.0"/>
<place domain="Master" name="S1C2" x="19.0" y="22.0"/>
<place domain="Master" label-x="3.0" label-y="0.0" name="S2" x="59.0" y="24.0"/>
<place domain="Master" label-x="4.5" label-y="0.0" name="ResS2" x="59.0" y="32.0"/>
<place name="EndS2" x="59.0" y="40.0"/>
<place domain="Master" label-x="5.5" label-y="1.0" name="EndS1C2" x="19.0" y="32.0"/>
<place name="EndS1" x="13.0" y="39.0"/>
<place domain="Master" label-x="5.5" label-y="0.0" name="EndS1C1" x="7.0" y="32.0"/>
<transition label-x="-3.0" label-y="0.0" name="fork_S1" nservers-x="0.5" rotation="1.5707963267948966" type="EXP" x="13.55" y="19.0"/>
<transition label-x="3.5" label-y="0.0" name="ProcessC1" nservers-x="0.5" rotation="1.5707963267948966" type="EXP" x="7.55" y="27.0"/>
<transition label-x="-3.5" label-y="0.0" name="ProcessC2" nservers-x="0.5" rotation="1.5707963267948966" type="EXP" x="19.55" y="27.0"/>
<transition label-y="-2.0" name="Join" nservers-x="0.5" rotation="1.5707963267948966" type="EXP" x="13.55" y="36.0"/>
<transition label-x="3.0" label-y="0.0" name="Recv" nservers-x="0.5" rotation="1.5707963267948966" type="EXP" x="59.55" y="19.0"/>
<transition label-x="4.0" label-y="0.0" name="ProcessS2" nservers-x="0.5" rotation="1.5707963267948966" type="EXP" x="59.55" y="28.0"/>
<transition label-x="3.5" label-y="0.0" name="SendRes" nservers-x="0.5" rotation="1.5707963267948966" type="EXP" x="59.55" y="36.0"/>
<transition name="ResetS1" nservers-x="0.5" type="EXP" x="9.55" y="15.0"/>
<transition label-y="-2.0" name="ResetS2" nservers-x="0.5" type="EXP" x="64.55" y="15.0"/>
<place domain="Master" label-y="-2.0" name="InBuf1" x="18.0" y="17.0"/>
<place domain="Master" label-x="-2.5" label-y="2.0" name="InBuf2" x="54.0" y="17.0"/>
<transition label-x="1.0" label-y="-2.0" name="Dispatch" nservers-x="0.5" type="EXP" x="33.55" y="29.0"/>
<place domain="Master" label-x="-0.5" label-y="2.0" marking="N&lt;All&gt;" name="Req" x="29.0" y="29.0"/>
<place domain="Master" label-y="2.0" name="Wait" x="37.0" y="29.0"/>
<place domain="Master" label-y="2.0" name="Result" x="47.0" y="29.0"/>
<transition name="Retrieve" nservers-x="0.5" type="EXP" x="42.55" y="29.0"/>
<transition name="Build_req" nservers-x="0.5" type="EXP" x="25.55" y="29.0"/>
<place domain="Master" label-y="-2.0" name="InBuf" x="33.0" y="15.0"/>
<transition name="Choose1" nservers-x="0.5" type="EXP" x="23.55" y="15.0"/>
<transition name="Choose2" nservers-x="0.5" type="EXP" x="49.55" y="15.0"/>
<place domain="Master" name="OutBuf" x="42.0" y="45.0"/>
<color-class definition="m{1..k}" name="Master" x="28.3125" y="39.0"/>
<color-var domain="Master" name="m" x="28.9375" y="41.0"/>
<template last-binding="1" name="N" type="INTEGER" x="29.0" y="37.0"/>
<template last-binding="2" name="R1" type="INTEGER" x="31.0" y="37.0"/>
<template last-binding="2" name="R2" type="INTEGER" x="33.0" y="37.0"/>
<template last-binding="3" name="k" type="INTEGER" x="35.0" y="37.0"/>
</nodes>
<edges>
<arc head="fork_S1" kind="INPUT" tail="Available1"/>
<arc head="S1C1" kind="OUTPUT" mult="&lt;m&gt;" tail="fork_S1"/>
<arc head="EndS1C1" kind="OUTPUT" mult="&lt;m&gt;" tail="ProcessC1"/>
<arc head="ProcessC1" kind="INPUT" mult="&lt;m&gt;" tail="S1C1"/>
<arc head="Join" kind="INPUT" mult="&lt;m&gt;" tail="EndS1C1">
<point x="14.0" y="36.5"/>
</arc>
<arc head="S1C2" kind="OUTPUT" mult="&lt;m&gt;" tail="fork_S1"/>
<arc head="EndS1C2" kind="OUTPUT" mult="&lt;m&gt;" tail="ProcessC2"/>
<arc head="ProcessC2" kind="INPUT" mult="&lt;m&gt;" tail="S1C2"/>
<arc head="Join" kind="INPUT" mult="&lt;m&gt;" tail="EndS1C2"/>
<arc head="EndS1" kind="OUTPUT" tail="Join"/>
<arc head="Recv" kind="INPUT" tail="Available2"/>
<arc head="S2" kind="OUTPUT" mult="&lt;m&gt;" tail="Recv"/>
<arc head="ProcessS2" kind="INPUT" mult="&lt;m&gt;" tail="S2"/>
<arc head="ResS2" kind="OUTPUT" mult="&lt;m&gt;" tail="ProcessS2"/>
<arc head="SendRes" kind="INPUT" mult="&lt;m&gt;" tail="ResS2"/>
<arc head="EndS2" kind="OUTPUT" tail="SendRes"/>
<arc head="ResetS1" kind="INPUT" tail="EndS1">
<point x="6.5" y="39.5"/>
<point x="6.5" y="16.0"/>
</arc>
<arc head="Available1" kind="OUTPUT" tail="ResetS1"/>
<arc head="ResetS2" kind="INPUT" tail="EndS2">
<point x="68.0" y="41.0"/>
<point x="68.0" y="16.0"/>
</arc>
<arc head="Available2" kind="OUTPUT" tail="ResetS2"/>
<arc head="fork_S1" kind="INPUT" mult="&lt;m&gt;" tail="InBuf1"/>
<arc head="Recv" kind="INPUT" mult="&lt;m&gt;" tail="InBuf2"/>
<arc head="Req" kind="OUTPUT" mult="&lt;m&gt;" mult-x="0.0" tail="Build_req"/>
<arc head="Dispatch" kind="INPUT" mult="&lt;m&gt;" mult-x="0.5" tail="Req"/>
<arc head="Wait" kind="OUTPUT" mult="&lt;m&gt;" mult-k="1.2018554687500003" tail="Dispatch">
<point x="35.750390625" y="30.0"/>
</arc>
<arc head="Retrieve" kind="INPUT" mult="&lt;m&gt;" tail="Wait"/>
<arc head="Result" kind="OUTPUT" mult="&lt;m&gt;" tail="Retrieve"/>
<arc head="Build_req" kind="INPUT" mult="&lt;m&gt;" tail="Result">
<point x="50.0" y="30.0"/>
<point x="50.0" y="27.0"/>
<point x="23.5" y="27.0"/>
<point x="23.5" y="30.0"/>
</arc>
<arc head="Choose1" kind="INPUT" mult="&lt;m&gt;" tail="InBuf"/>
<arc head="Choose2" kind="INPUT" mult="&lt;m&gt;" tail="InBuf"/>
<arc head="InBuf1" kind="OUTPUT" mult="&lt;m&gt;" tail="Choose1"/>
<arc head="InBuf2" kind="OUTPUT" mult="&lt;m&gt;" tail="Choose2"/>
<arc head="InBuf" kind="OUTPUT" mult="&lt;m&gt;" tail="Dispatch"/>
<arc head="Retrieve" kind="INPUT" mult="&lt;m&gt;" tail="OutBuf"/>
<arc head="OutBuf" kind="OUTPUT" mult="&lt;m&gt;" mult-k="0.8393554687500001" tail="Join">
<point x="20.436713151080767" y="37.0"/>
<point x="25.0" y="37.0"/>
<point x="25.0" y="46.0"/>
</arc>
<arc head="OutBuf" kind="OUTPUT" mult="&lt;m&gt;" mult-k="0.9325195312500001" tail="SendRes">
<point x="54.68789937897453" y="37.0"/>
<point x="50.0" y="37.0"/>
<point x="50.0" y="46.0"/>
</arc>
</edges>
</gspn>
<measures gspn-name="CPN" name="RG of CPN" rapid-type="BUILD_RG" simplified-UI="true">
<assignments>
<assignment bind-model="SINGLE_VALUE" single-val="1" type="INTEGER" varname="N"/>
<assignment bind-model="SINGLE_VALUE" single-val="1" type="INTEGER" varname="R1"/>
<assignment bind-model="SINGLE_VALUE" single-val="1" type="INTEGER" varname="R2"/>
<assignment bind-model="SINGLE_VALUE" single-val="1" type="INTEGER" varname="k"/>
</assignments>
<greatspn/>
<formulas>
<formula language="STAT"/>
<formula language="RG"/>
</formulas>
</measures>
<measures gspn-name="CPN" name="SRG of CPN" rapid-type="BUILD_SYMRG" simplified-UI="true">
<assignments>
<assignment bind-model="SINGLE_VALUE" single-val="1" type="INTEGER" varname="N"/>
<assignment bind-model="SINGLE_VALUE" single-val="1" type="INTEGER" varname="R1"/>
<assignment bind-model="SINGLE_VALUE" single-val="1" type="INTEGER" varname="R2"/>
<assignment bind-model="SINGLE_VALUE" single-val="6" type="INTEGER" varname="k"/>
</assignments>
<greatspn mode="SWN_SYM"/>
<formulas>
<formula language="STAT"/>
<formula language="RG"/>
</formulas>
</measures>
</project>