Petri Nets Flashcards

1
Q

What are Petri Nets used for?

A

Used to rigorously define a system, reducing ambiguity.
Often used in distributed systems and for systems with resource sharing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Deterministic or non-deterministic?

A

Non-deterministic, since we do not know which one of the transitions will fire first.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

High-level Petri Net attributes

A
  • Colour
  • Time
  • Hierarchy
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Active and passive.

A

Transitions are active.
Tokens are passive.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How are transitions enabled?

A

All inputs connected to the transition require a token.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Atomicity

A

Firing is atomic, consuming tokens from input and then generating on output.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Deadlock

A

The system cannot go through anymore transitions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Transitions without inputs.

A

Can fire at any time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Sinks

A

A transition without outputs, and is used just to consume tokens.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Conflicts

A

Two transitions fighting for the same token on an input, leading to a non-deterministic input.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Arcs

A

Arcs are the connections between transitions and inputs.
We can have many arcs for one connection, indicating multiple token consumptions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Current State v Reachable State

A

Current state -> current configuration of tokens.
Reachable State -> reachable form by firing a sequence of enabled transitions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Colour

A

Adding colour to the tokens is adding value to them. For example, a token could represent a person.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Transition Specifications

A
  • number of tokens produced
  • value of the tokens
  • preconditions (optional), like if statements.
    Preconditions can be used to help solve non-deterministic issues with conflicts of transitions.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Time

A

Allows a minimum and maximum amount of time with each transition.
So lets say that a transition has been enabled, and is ready to fire. We can have values Tmin and Tmax which determine the minimum amount of time it could take to fire and the maximum amount of time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Hierarchy

A

Subnets are composed, which allows subsections in the petri net which can be expanded.