Presentation is loading. Please wait.

Presentation is loading. Please wait.

Fifth Workshop and Tutorial on Practical Use of Coloured Petri Nets and the CPN Tool Aarhus, Denmark, 08-11 October, 2004 A Unidirectional Transition Fusion.

Similar presentations


Presentation on theme: "Fifth Workshop and Tutorial on Practical Use of Coloured Petri Nets and the CPN Tool Aarhus, Denmark, 08-11 October, 2004 A Unidirectional Transition Fusion."— Presentation transcript:

1 Fifth Workshop and Tutorial on Practical Use of Coloured Petri Nets and the CPN Tool Aarhus, Denmark, 08-11 October, 2004 A Unidirectional Transition Fusion for Coloured Petri Nets and its Implementation for the CPNTools João Paulo Barros 1,2 Luís Gomes 1 jpb@uninova.pt lugo@uninova.pt 1 Universidade Nova de Lisboa Faculdade de Ciências e Tecnologia Dep. de Engenharia Electrotécnica Campus da FCT-UNL 2825 Monte de Caparica 2 Instituto Politécnico de Beja Escola Superior de Tecnologia e Gestão Área Departamental de Engenharia Rua Afonso III, n.º 1 7800-050 Beja PORTUGAL

2 Fifth Workshop and Tutorial on Practical Use of Coloured Petri Nets and the CPN Tool Aarhus, Denmark, 08-11 October, 2004 A Unidirectional Transition Fusion for Coloured Petri Nets and its Implementation for the CPNTools CPNs and objects On the Use of Coloured Petri Nets for Object- Oriented Design [Barros and Gomes, 2004] ----------------- Coloured Petri Nets with Synchronous Channels [Christensen and Hansen, 1992] Modular Coloured Petri nets [Christensen and Petrucci, 1992] Object Petri nets [Lakos, 1995] Object Coloured Petri Nets [Maier and Moldt, 2001]

3 Fifth Workshop and Tutorial on Practical Use of Coloured Petri Nets and the CPN Tool Aarhus, Denmark, 08-11 October, 2004 A Unidirectional Transition Fusion for Coloured Petri Nets and its Implementation for the CPNTools Synchronous requests/ Transition Fusion in a CPN p1p2 p3 p4p5 p6 (SEND, B, req, 2, IN a, OUT b) [a=1] (RECV, s, req, obj, IN c, OUT d) [d=0] p1p2 p3 p4p5 <2,b><2,b> <2><2> p6 <2,a+b><2,a+b> [a=1 AND b =0] A B

4 Fifth Workshop and Tutorial on Practical Use of Coloured Petri Nets and the CPN Tool Aarhus, Denmark, 08-11 October, 2004 A Unidirectional Transition Fusion for Coloured Petri Nets and its Implementation for the CPNTools Transition Fusion and the CPNTools 1.A model transformation approach; From SEND and RECV declarations inside comments in code segments to a new model with a new page for each request invocation. 2.The class/page name can be a variable, allowing polymorphic invocations/fusions.

5 Fifth Workshop and Tutorial on Practical Use of Coloured Petri Nets and the CPN Tool Aarhus, Denmark, 08-11 October, 2004 A Unidirectional Transition Fusion for Coloured Petri Nets and its Implementation for the CPNTools Request pages Final solution: SEND transition is deleted. RECV transition is deleted. A new transition is created in a new page. SEND transition as a substitution transition. RECV transition is deleted. A new transition is created in a new page. First tentative solution:

6 Fifth Workshop and Tutorial on Practical Use of Coloured Petri Nets and the CPN Tool Aarhus, Denmark, 08-11 October, 2004 A Unidirectional Transition Fusion for Coloured Petri Nets and its Implementation for the CPNTools Two examples...

7 Fifth Workshop and Tutorial on Practical Use of Coloured Petri Nets and the CPN Tool Aarhus, Denmark, 08-11 October, 2004 A Unidirectional Transition Fusion for Coloured Petri Nets and its Implementation for the CPNTools Instead of transformation integration...

8 Fifth Workshop and Tutorial on Practical Use of Coloured Petri Nets and the CPN Tool Aarhus, Denmark, 08-11 October, 2004 A Unidirectional Transition Fusion for Coloured Petri Nets and its Implementation for the CPNTools Integration in the CPNTools (1/2) 1.Same semantics but without model transformations. 2.Each transition should admit an extra inscription (separated from code segments) for the specification of a SEND or RECV request. 3.SEND requests with no corresponding RECV requests should be signalled as syntax errors. 4.The CPNTools left margin should show each receive transition and the respetive send transitions. One mouse click should take the modeller to the page (class) containing the respective send or receive transition.

9 Fifth Workshop and Tutorial on Practical Use of Coloured Petri Nets and the CPN Tool Aarhus, Denmark, 08-11 October, 2004 A Unidirectional Transition Fusion for Coloured Petri Nets and its Implementation for the CPNTools 5.Non-matching parameter types, or qualifiers, between send and receive transition pairs, should be signalled as syntax errors. 6.The mandatory occurrences of parameters in input arcs should be automatically checked. These bind IN parameters in SEND requests, and OUT parameters in RECV requests. 7.OUT parameters in SEND requests and IN parameters in RECV requests should be considered as possible ways to bind transition variables; (this makes “check places” useless); 8.To allow polymorphic invocations, the use of a variable targetClass parameter with class (page) names as domain should be supported Integration in the CPNTools (2/2)

10 Fifth Workshop and Tutorial on Practical Use of Coloured Petri Nets and the CPN Tool Aarhus, Denmark, 08-11 October, 2004 A Unidirectional Transition Fusion for Coloured Petri Nets and its Implementation for the CPNTools Concluding... Synchrony Groups Initially proposed in the broader context of object- oriented modelling with CPNs for modelling synchronous object requests. but... offer an general unidirectional transition fusion. Can be done through model transformation but would be better without model transformation!...

11 Fifth Workshop and Tutorial on Practical Use of Coloured Petri Nets and the CPN Tool Aarhus, Denmark, 08-11 October, 2004 A Unidirectional Transition Fusion for Coloured Petri Nets and its Implementation for the CPNTools João Paulo Barros 1,2 Luís Gomes 1 jpb@uninova.pt lugo@uninova.pt 1 Universidade Nova de Lisboa Faculdade de Ciências e Tecnologia Dep. de Engenharia Electrotécnica Campus da FCT-UNL 2825 Monte de Caparica 2 Instituto Politécnico de Beja Escola Superior de Tecnologia e Gestão Área Departamental de Engenharia Rua Afonso III, n.º 1 7800-050 Beja PORTUGAL Thanks for your attention!


Download ppt "Fifth Workshop and Tutorial on Practical Use of Coloured Petri Nets and the CPN Tool Aarhus, Denmark, 08-11 October, 2004 A Unidirectional Transition Fusion."

Similar presentations


Ads by Google