Appendix B: Configuration File for the PN Toolbox
The PN Toolbox uses a configuration file to store the global information needed for initialization. This file, called PNTconfig.txt, is stored in the folder where the PN Toolbox is installed. The user can modify the values of all the parameters; the modifications are effective the next time when the PN Toolbox is started
The options from PNTconfig.txt file used by PN Toolbox are:
Ø
Seed – the initial state of the random number generator version 5 from MATLAB. This parameter is called “Seed” for history reasons; first version of PN Toolbox used version 4 of the random number generator where the ‘seed’ option of the MATLAB rand function was used. The version 5 uses ‘state’ parameters of rand function. (this parameter can have any integer value);
Ø
DisplayMessages – boolean value that gives the status of the transitions’ messages visibility in the Message Box in Step and Run Slow simulation modes (1 – the messages are visible, 0 – the messages are invisible);
Ø
Background – the background color for all MATLAB figures opened by the PN Toolbox (a vector with three elements ranging from 0 to 1);
Ø
HTMLBackground –the background color for all HTM files opened by the PN Toolbox (this parameter is given in hexadecimal);
Ø
HTMLText– the text color for all HTML files opened by the PN Toolbox (given in hexadecimal);
Ø
Breakpoint – the default breakpoint for Run Fast simulation mode (1 – Number of events, 2 – Simulation time, 3 – Firings for transition, 4 – Tokens arrived in place);
Ø
Breakpoint_Event – default number of events, if breakpoint is selected on Number of events;
Ø
Breakpoint_Time – default simulation time, if breakpoint is selected on Simulation time;
Ø
Breakpoint_Transition – default index of the transition in the transitions array, if breakpoint is selected on Firings for transition;
Ø
Breakpoint_ServiceSum – – the number of firings for the Breakpoint_Transition;
Ø
Breakpoint_Place – default index of the place in the places array, if breakpoint is selected on Tokens arrived in place;
Ø
Breakpoint_ArrivalSum – the number of tokens arrived in the Breakpoint_Place;
Ø
Projects_Save – string with MATLAB expression that will be executed and returns the whole path of the folder where the PN Toolbox saves the new models;
Ø
Color_Wait_Token – MATLAB color used for the graphical representation of places that contain reserved tokens (only in the case of P-timed PNs);
Ø
Color_Fire_Transition – MATLAB color used for the graphical representation of firing transitions;
Ø
NewFileName – the default name of the new model, including extension (.xml);
Ø
ColorPlaces – MATLAB color used for drawing the places;
Ø
ColorTransitions – MATLAB color used for drawing the transitions;
Ø
ColorArcs – MATLAB color used for drawing the arcs.