towards a methodology for modeling with petri nets
play

Towards a Methodology for Modeling with Petri Nets Christine Choppy - PowerPoint PPT Presentation

Towards a Methodology for Modeling with Petri Nets Christine Choppy Laure Petrucci LIPN, CNRS UMR 7030 Universit Paris 13 Villetaneuse FRANCE Towards a Methodology for Modeling with Petri Nets p.1 Motivation complex systems to model


  1. Towards a Methodology for Modeling with Petri Nets Christine Choppy Laure Petrucci LIPN, CNRS UMR 7030 Université Paris 13 Villetaneuse FRANCE Towards a Methodology for Modeling with Petri Nets – p.1

  2. Motivation complex systems to model writing formal specifications is difficult Towards a Methodology for Modeling with Petri Nets – p.2

  3. Motivation complex systems to model writing formal specifications is difficult ⇒ help and guidelines required Towards a Methodology for Modeling with Petri Nets – p.2

  4. Motivation complex systems to model writing formal specifications is difficult ⇒ help and guidelines required Method proposed in [CR03]: for software development using algebraic specifications in CASL extended to dynamic systems in CASL-LTL Towards a Methodology for Modeling with Petri Nets – p.2

  5. Motivation complex systems to model writing formal specifications is difficult ⇒ help and guidelines required Method proposed in [CR03]: for software development using algebraic specifications in CASL extended to dynamic systems in CASL-LTL ➠ Develop a similar method for Petri nets Towards a Methodology for Modeling with Petri Nets – p.2

  6. Outline Running example: model train system from [BP01] Specification method principles systems specifications systems properties Applying the specification principles to the train example parts and constituent features system properties Derive a coloured Petri net Conclusion and future work Towards a Methodology for Modeling with Petri Nets – p.3

  7. Train example switch 1 B3 B9 switch 4 B4 B10 B5 B11 B1 B15 crossing ST1 B2 B16 B6 B12 switch 2 switch 3 B7 B13 B8 B14 ST2 Towards a Methodology for Modeling with Petri Nets – p.4

  8. Specification method principles Design a software item : simple dynamic system structured dynamic system data structure Towards a Methodology for Modeling with Petri Nets – p.5

  9. Specification method principles Design a software item : simple dynamic system structured dynamic system data structure A simple system item is composed of: parts: data structures constituent features: states description elementary interactions definitions Towards a Methodology for Modeling with Petri Nets – p.5

  10. Property-oriented specifications Provide: abstract structure of the specification visual presentation formal specification properties expected at this stage The model must satisfy all properties defined. Towards a Methodology for Modeling with Petri Nets – p.6

  11. Simple systems No internal components cooperating together Towards a Methodology for Modeling with Petri Nets – p.7

  12. Simple systems No internal components cooperating together Labeled Transition System where: states: relevant intermediate situations in the life of the system transitions: ability of the system to evolve from one state to another transition labels: elementary interactions Towards a Methodology for Modeling with Petri Nets – p.7

  13. Constituent features and parts Constituent features : elementary interactions types: name arguments: elements of data structures states: described by states observers name arguments: elements of data structures observed value Towards a Methodology for Modeling with Petri Nets – p.8

  14. Constituent features and parts Constituent features : elementary interactions types: name arguments: elements of data structures states: described by states observers name arguments: elements of data structures observed value Parts : values of data structures Towards a Methodology for Modeling with Petri Nets – p.8

  15. Simple systems properties labels properties: incompatibility between elementary interactions state properties: conditions satisfied by the values returned by state observers properties of paths from/to the state transition properties: conditions on the state observers applied to the source and target states. Towards a Methodology for Modeling with Petri Nets – p.9

  16. Train specification Physical system ⇒ state observers: information on the layout contiguous track sections tracks connected via switches train presence train direction Towards a Methodology for Modeling with Petri Nets – p.10

  17. Train specification Physical system ⇒ state observers: information on the layout contiguous track sections tracks connected via switches train presence train direction Moves ⇒ elementary interactions Towards a Methodology for Modeling with Petri Nets – p.10

  18. Data structures TrackSection TRAINDATA B1 Switch B2 B3 switch1 switch2 ... TrainDirection TrainPresence B16 switch3 ST1 switch4 clockwise none ST2 crossing TrainDirection anticlockwise Towards a Methodology for Modeling with Petri Nets – p.11

  19. Constituent features TRAIN TRAINDATA (elementary interactions) changeTrackSec(TrainTrack, TrainTrack, History) : State STATE (state observers) HISTORY connected(TrackSection, TrackSection, TrainDirection) switched(List[TrackSection], List[TrackSection], Switch, TrainDirection) BASIC DATA train_present(TrackSection, TrainPresence, History) LIST, PAIR ... where TrainTrack is an auxiliary type defined as Pair[TrainPresence, TrackSection] Towards a Methodology for Modeling with Petri Nets – p.12

  20. STATE & HISTORY spec STATE = sort State ; initial : State ; %% There is an initial state op end Towards a Methodology for Modeling with Petri Nets – p.13

  21. STATE & HISTORY spec STATE = sort State ; initial : State ; %% There is an initial state op end spec HISTORY = STATE then History ::= initial | __ . __ ( History ; State ); type op last : History → State ; vars h : History ; s : State ; axioms last ( initial ) = initial ; last ( h . s ) = s ; end Towards a Methodology for Modeling with Petri Nets – p.13

  22. State properties connected(B1,B2,anticlockwise) connected(B2,B1,clockwise) switched((ST1,B1),(B3),switch1,clockwise) switched((B1),(B3,B4,B5),switch1,clockwise) switched((B3),(ST1,B1),switch1,anticlockwise) switched((B3,B4,B5),(B1),switch1,anticlockwise) train_present(B1,none,initial) Towards a Methodology for Modeling with Petri Nets – p.14

  23. changeTrackSec properties � pre-conditions as usual post-conditions incompatibility: simultaneous moves from a same train cannot occur Towards a Methodology for Modeling with Petri Nets – p.15

  24. Associated Petri net state observers ⇒ places, initial marking elementary interactions ⇒ transitions train presence ⇒ place colours pre-, post-conditions ⇒ arcs Towards a Methodology for Modeling with Petri Nets – p.16

  25. Coloured Petri Net ST1 TrainPresence t anticlockwise sidetrack1 none color TrainDirection = with clockwise | anticlockwise; color TrainPresence = union t:TrainDirection + none; t clockwise TrainPresence TrainPresence t1 1‘t clokwise B3 1‘t anticlockwise B9 switch4 switch1 B4 B10 TrainPresence TrainPresence t3 none 1‘t clockwise TrainPresence TrainPresence B15 B1 none TrainPresence none none TrainPresence 1‘t anticlockwise B11 B5 crossing t11 t6 B6 B12 TrainPresence TrainPresence B16 B2 TrainPresence none none TrainPresence none 1‘t anticlockwise TrainPresence TrainPresence t8 none none B7 B13 switch2 switch3 B8 B14 TrainPresence TrainPresence t10 none none TrainPresence t clockwise sidetrack2 none t anticlockwise ST2 Towards a Methodology for Modeling with Petri Nets – p.17

  26. Conclusion provide guidelines to specify simple systems using CPNs simple systems subparts: data structures → e.g. colours state decription features → layout, place colours elementary interactions → transitions firing specify expected properties [CR03] method applies to other formal languages Towards a Methodology for Modeling with Petri Nets – p.18

  27. Conclusion & Future work provide guidelines to specify simple systems using CPNs simple systems subparts: data structures → e.g. colours state decription features → layout, place colours elementary interactions → transitions firing specify expected properties [CR03] method applies to other formal languages extend the approach to structured systems including communication mechanisms between modules properties verification complex case study Towards a Methodology for Modeling with Petri Nets – p.18

  28. ✠ ✌ ☎ ✂ ✍ ✎ ✌ ✏ ☞ ☎ ✑ ✍ ✌ ✟ ✟ ✏ ✒ ☎ ✓ ✔ ✏ ✂ ✂ ✕ ✁ ✆ ✍ ☎ � ✞ ✂ ✆ ✘ ✖✗ � ✁ ✂ ✄ ☎ ✍ � ✁ ✏ ✞ ✟ ✟ ✆ ☛ ☞ ✌ ✑ References [BP01] G. Berthelot and L. Petrucci. Specification and validation of a concurrent system: An educational project. 3(4):372–381, 2001. [CR03] C. Choppy and G. Reggio. Towards a Formally Grounded Software Development Method. Technical Report DISI–TR–03–35, DISI, Università di Genova, Italy, 2003. Available at ✟✡✠ ✟✡✌ ✂✝✆ . Towards a Methodology for Modeling with Petri Nets – p.19

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend