
-- How to simulate a Petri net:

        global keys_pressed; keys_pressed= []; % select default simulation

        [Pre, Post, M0] = RDP('KB_READ.RDP');
        [t, M, yout]= PN_sim(Pre, Post, M0, [1 10]);

        figure(201), clf;
        subplot(121); mesh(M); xlabel('place number'); ylabel('time'); view([43 54])
        subplot(122); mesh(yout); xlabel('key number'); ylabel('time'); view([43 54])


% RDP.m requires a Petri net file, e.g.:
%  KB_READ.RDP

% PN_sim.m requires the following auxiliary functions:
%  function act=  PN_s2act(MP)
%  function yout= PN_s2yout(MP)
%  function qk=   PN_tfire(MP, t)

% PN_tfire.m requires the following auxiliary function:
%  function lines= PN_device_kb_IO(act, t)


-- Note: functions
	PN_s2act.m
	PN_s2yout.m
	PN_tfire.m
are NOT implemented.
