logo资料库

着色petri网CPN监视器monitor帮助文件.docx

第1页 / 共129页
第2页 / 共129页
第3页 / 共129页
第4页 / 共129页
第5页 / 共129页
第6页 / 共129页
第7页 / 共129页
第8页 / 共129页
资料共129页,剩余部分请下载后查看
Output management
Top output directory
Simulation output directory
Simulation log files directory
Replication output directory
Replication log files directory
Related pages
Output management functions
Examples of use
Related pages
Data collector monitors
Marking size monitors
Untimed nets
Timed nets
List length monitors
Untimed nets
Timed nets
Count transition occurrences monitors
Generic data collector monitors
Related pages
Data Collector Monitoring Functions
Generic data collector monitors
Examples of monitoring functions
Initialization functions
Example 1
Example 2
Predicate functions
Example 1
Example 2
Observation functions
Example 1
Example 2
Example 3
Stop functions
Example 1
Example 2
Related pages
Calculating statistics
Untimed statistics
Timed statistics
Related pages
Performance output
Data collector log files
Simulation performance reports
Replication log files
Replication performance reports
Confidence interval files
gnuplot scripts
Related pages
Data types for monitored subnets
Data type definitions for subnets
No places, no transitions
Some places, no transitions
No places, some transitions
Some places, some transitions
Data type examples
No places, no transitions
Some places, no transitions
No places, some transitions
Some places, some transitions
Related pages
Edit a monitor
Modifying a monitor
Edit monitor name
Edit monitor options
Edit monitoring functions
Add/remove places and transitions to a monitor
Moving a monitor or a monitor block
Enabling/disabling a monitor
Related pages
Errors in monitors
Errors in names
Errors in monitor names
Errors in node names
Errors in page names
Errors in nodes
Errors in monitoring functions
Errors in order in index
Related pages
Simulation replications
Replication output
Related pages
Monitoring functions
Predicate functions
Observation functions
Action functions
Initialization functions
Stop functions
Accessibility of monitoring functions
Examining nodes
Ordering of monitors
Example of ordering
Related pages
Known limitations of monitors
Files for disabled monitors
Monitors and state space tool
List length and marking size
Stalled syntax check
Monitor index entries
Monitor entries
Name
Type
Nodes ordered by pages
Monitoring functions
Related pages
Monitoring functions
Predicate functions
Observation functions
Action functions
Initialization functions
Stop functions
Accessibility of monitoring functions
Examining nodes
Ordering of monitors
Example of ordering
Related pages
Monitor template code
Automatic generation of template code
Errors in template code
Understanding template code
Changing monitored nodes
Generating template code
Related pages
User-defined monitors
Related pages
User-defined monitoring functions
Function types for the accessible functions
Examples of monitoring functions
Related pages
Write-in-file monitors
Related pages
Write-in-file monitoring functions
Generic Write-in-file monitors
Examples of monitoring functions
Initialization functions
Example 1
Example 2
Predicate functions
Example 1
Example 2
Observation functions
Example 1
Example 2
Stop functions
Example 1
Example 2
Related pages
Output management Several different kinds of files can be automatically generated during simulations, including:  Simulation reports  Simulation performance reports  Log files for Data collector monitors These files will be saved in directories determined by the output management facilities. The output management facilities are used to create and provide access to a number of different directories, such as:  Top output directory  Simulation output directory  Simulation log files directory  Replication output directory  Replication log files directory The different output directories are described below. Functions for accessing the names of output directories can be found on the help page for Output management functions. Top output directory
The top output directory for a given net is determined by the Output directory option for the net. The output directory option is found under the net overview for the net in the Index. All other output directories that are created by CPN Tools will be created as subdirectories of the top output directory. By default the top output directory will be a directory named output in the directory in which net is saved. Simulation output directory A simulation output directory is a directory in which all files from an individual simulation are saved.
Single simulations are run when the Fast forward, Play, Single step, or Bind manually tools are applied. When running single simulations, the default simulation output directory will be the same as the top output directory. When Simulation replications are run, a new simulation output directory is created for each of the individual simulations. The simulation output directories are created in replication output directories (see below). In this case, the simulation output directories will be named sim_n where n is an integer that is increased each time a new simulation is run. Simulation output directories will typically contain the files generated by Write-in-file monitors,performance reports, and a simulation log file directory. Simulation log files directory The data that is collected for Data collector monitors can be saved in log files. These log files are saved in a simulation log
files directory. The simulation log files directory is named logfiles and it can be found in a simulation output directory. Replication output directory When Simulation replications are run, one replication output directory will be created for each set of simulation replications. Replication output directories are created in the top output directory. The name of a replication output directory is reps_n where n is an integer that is increased each time a new set of simulations are run. Replication output directories typically contain replication status reports, simulation output directories, replication log file directories, and different kinds of Performance output, such as replication performance reports, confidence interval files, and gnuplot scripts.
Replication log files directory When multiple simulation replications are run for a net with Data collector monitors, a number of additional log files are generated. These log files are saved in the replication log files directory, and several log files will be created for each data collector monitor. Related pages Performance analysis, Simulation report, Performance output
Output management functions The facilities for Output management will automatically create different kinds of output directories in different situations, such as when a Simulation report is generated or when Data collector monitors are used. It is also possible for the user to create the output directories if necessary, and to access the names of the different output directories. The following functions can be used to access the names of the standard output directories for CPN Tools. When a function returns a path to a directory, the directory may or may not exist. If an attempt is made to read or write a file in a directory that cannot be accessed then aNotValidDirExn exception will be raised. Output.getModelDir() returns the path to the directory in which the model is saved Output.getModelName() returns the name of the file in which the model is saved Output.getTopOutputDir() returns the path to the top output directory Output.getSimOutputDir()
returns the path to the current simulation output directory Output.getSimLogfileDir() returns the path to the current simulation log files directory Output.getRepOutputDir() returns the path to the current replication output directory Output.getRepLogfileDir() returns the path to the current replication log files directory The following functions can be used to create the standard output directories. If an attempt to create a directory fails, then a NotValidDirExn s exception will be raised where s is a string describing the error. Output.initTopOutputDir() attempts to create the top output directory if the directory does not already exist Output.initSimOutputDir() calls Output.initTopOutputDir, and attempts to create a simulation output directory if the directory does not already exist Output.initSimLogfileDir()
calls Output.initSimOutputDir, and attempts to create a simulation log files directory if the directory does not already exist Output.initRepOutputDir() calls Output.initTopOutputDir, and attempts to create a replication output directory if the directory does not already exist Output.initRepLogfileDir() calls Output.initRepOutputDir, and attempts to create a replication log files directory if the directory does not already exist The simulator will automatically invoke the functions to initialize/create the output directories in the following situations:     initSimOutputDir: When a Simulation report is to be saved initSimLogfilesDir: When there are active Write-in-file monitors or Data collector monitors with the Logging option selected initRepOutputDir: When multiple simulation replications are run initRepLogfileDir: When multiple simulation replications are run, and there are Data collector monitors
分享到:
收藏