
-- How to simulate a Petri net (see this in "kb_tst.m"):

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

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

        figure(201), clf;
        subplot(121); plot_z(t,M); ylabel('place number'); xlabel('time [sec]');
        subplot(122); plot_z(t,yout); ylabel('key number'); xlabel('time [sec]');


% 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.
