28.12.2014 Views

Sample Exam on Petri Nets

Sample Exam on Petri Nets

Sample Exam on Petri Nets

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<str<strong>on</strong>g>Sample</str<strong>on</strong>g> <str<strong>on</strong>g>Exam</str<strong>on</strong>g> <strong>on</strong> <strong>Petri</strong> <strong>Nets</strong><br />

Exercise 1<br />

Let us c<strong>on</strong>sider the <strong>Petri</strong> net in figure 1. We c<strong>on</strong>sider a communicati<strong>on</strong> system between<br />

a satellite and c<strong>on</strong>trol stati<strong>on</strong> located <strong>on</strong> the ground. We assume there are two<br />

classes of messages that must be transmitted: (i) messages that c<strong>on</strong>tain data related to<br />

scientific experiences and (ii) messages that c<strong>on</strong>tain data related to satellite c<strong>on</strong>trol and<br />

m<strong>on</strong>itoring.<br />

For the first class, a computer program F 1 is in charge of writting and formatting<br />

the message. Then if the channel C 1 is free, the message is sent.<br />

For the sec<strong>on</strong>d class, two cases can occur. The first case is the transmitti<strong>on</strong> of<br />

regular messages, while the sec<strong>on</strong>d case is the transmitti<strong>on</strong> of alarm messages. The<br />

regular messages are written and formatted by a computer program called F 2 . They<br />

are sent through channel C 1 when it is free. The alarm messages are formatted by a<br />

program called F 3 and are transmitted through a special channel, called C a .<br />

1. Show that the system can be modeled by the <strong>Petri</strong> net, given in figure 1, by<br />

linking the processes related to programs F 1 , F 2 and F 3 to places and by linking<br />

the state of the channels C 1 and C a to other places.<br />

2. Analyse the network, using the method of reducti<strong>on</strong> (clearly justify the rules).<br />

Exercise 2<br />

Let us c<strong>on</strong>sider the <strong>Petri</strong> net in figure 2 (it is a simplified piece of the previous <strong>on</strong>e).<br />

1. Write the incidecne matrix C of the this network and compute P-invariance vectors.<br />

Figure 1: <strong>Petri</strong> Net A.<br />

1


Figure 2: <strong>Petri</strong> Net B.<br />

2. If we assume that this piece is just related to the management of channel C 1 , do<br />

you think this is correctly managed<br />

2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!