File Coverage

blib/lib/Simulation/Automate/Dictionary.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Simulation::Automate::Dictionary;
2              
3 1     1   4 use vars qw( $VERSION );
  1         2  
  1         47  
4             $VERSION = "1.0.1";
5              
6             #################################################################################
7             # #
8             # Copyright (C) 2000,2002 Wim Vanderbauwhede. All rights reserved. #
9             # This program is free software; you can redistribute it and/or modify it #
10             # under the same terms as Perl itself. #
11             # #
12             #################################################################################
13              
14             #=headers
15              
16             #Module to support SynSim simulation automation tool.
17             #Simple dictionary to have meaningful annotations on the plots generated by PostProcessors.pm.
18             #The contents of %make_nice is specific to the type of simulations.
19             #This module is only used by PostProcLib.pm
20              
21             #$Id$
22              
23             #=cut
24              
25 1     1   5 use Exporter;
  1         1  
  1         227  
26              
27             @Simulation::Automate::Dictionary::ISA = qw(Exporter);
28             @Simulation::Automate::Dictionary::EXPORT = qw(
29             %make_nice
30             );
31              
32             # Translate the parameter names and values into something meaningful
33             %Simulation::Automate::Dictionary::make_nice=(
34             _BUFTYPE => {
35             title=>'Buffer type',
36             0=>'Adjustable',
37             1=>'Fixed-length',
38             2=>'Multi-exit',
39             },
40             _TRAFDIST => {
41             title=>'Packet gap dist.',
42             0=>'Poisson',
43             1=>'Pareto',
44             2=>'Uniform',
45             },
46             _PLDIST => {
47             title=>'Packet length dist.',
48             2=>'IP',
49             1=>'Ethernet',
50             0=>'Uniform',
51             },
52             _KEEP_ORDER => {
53             title=>'Ordered',
54             0=>'No',
55             1=>'Yes',
56             },
57             _DEFLECTION => {
58             title=>'Deflection',
59             0=>'No',
60             1=>'Yes',
61             },
62             _NMAXGAP => {
63             title=>'Max. gap width',
64             },
65              
66             _NPACK => {
67             title=>'Number of packets',
68             100000=>'10^5',
69             200000=>'2.10^5',
70             500000=>'5.10^5',
71             1000000=>'10^6',
72             2000000=>'2.10^6',
73             5000000=>'5.10^6',
74             10000000=>'10^7',
75             },
76              
77             _AGGREGATE => {
78             title=>'Aggregate',
79             0=>'No',
80             12000=>'Yes',
81             },
82              
83             _RECIRC => {
84             title=>'Recirculate',
85             0=>'No',
86             #1000=>'Yes',
87             #2000=>'Yes',
88             #5000=>'Yes',
89             #10000=>'Yes',
90             },
91              
92             _NPORTS => {
93             title=>'Number of ports',
94             },
95             _K_PARETO => {
96             title=>'Pareto constant',
97             },
98              
99             _NBUFS => {
100             title => 'Number of buffers',
101             },
102              
103             _BLOCKING => {
104             title => 'Buffer output mux blocking or not',
105             },
106             _UNITPL => {
107             title => 'Unit packet length',
108             },
109              
110             _MINGW => {
111             title => 'Min. gap width',
112             },
113              
114             _FRACT_MIN => {
115             title => 'Fraction of 40 byte to 1500 byte packets',
116             },
117              
118             _NMAX => {
119             title => 'Max. number of units',
120             },
121             _SAMPL => {
122             title => 'Sampling freq.',
123             },
124              
125             );
126              
127             #==============================================================================