Introduction to Petri Net

Source: Internet
Author: User
ArticleDirectory
    • Structure
    • Action

Petri NetIs a mathematical representation of a discrete parallel system. Petri Net was invented by C. A. Petley in the 1960 s and is suitable for describing asynchronous and concurrent computer system models. Petri Net has both strict mathematical expressions and intuitive graphical expressions.

Because Petri Net can express concurrent events, it is considered as an Automation Theory. The research field tends to think that petri net is the mother of all process definition languages.

Classical Petri Net

The classic Petri Net is a simple process model with two types of nodes: library and change, directed arc, and Token.Element.

Structure

Elements of Petri Net:

    • Library(Place) Circular Node
    • Change(Transition) Square Node
    • Directed arc(Connection) is the directed arc between the database and the change
    • Token(Token) is a dynamic object in the database. It can be moved from one database to another.

Petri NetRulesYes:

    • Directed arc
    • There is no arc between two libraries or transitions
    • The library can have any number of tokens

Action

If every changeInput Library(Input place) all have tokens, and the change isEnable). When a change is allowed, the change willOccurred(Fire ),Input Library(Input place) token is consumedOutput Library(Output place) generates a token.

Note:

    • Changes occur as atoms;
    • Two changes are allowed, but only one change can occur at a time;
    • If a change occurs, the number of tokens in the input database is different from that in the output database;
    • The Petri net is static;
    • Petri NetStatusDetermined by the distribution of tokens in the database.

Two changes compete for a token.Conflict

Multiple arcs are connected to two nodes. The number of arcs between the input database and the change determines the number of tokens required for the change. The number of arcs determines the number of consumed/generated tokens.

Refer to the blog of yinhu 999

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.