bcds.phison.sim
Class SimParams

java.lang.Object
  extended by bcds.phison.sim.SimParams

public class SimParams
extends java.lang.Object

Parameters that the user can pass to the simulator. Basically, a SimParams instance stores the values processed by ArgsParser in Sim.java. An instance of this class should be considered read-only.


Field Summary
 java.lang.String[] argv
          The user-provided list of command-line arguments.
 double capmult
           
 Consts.COST_TYPE costtype
           
 int cur_rep
          The current repetition number.
 java.util.Set<Consts.DEBUG> debug
          Set flags which might be used for debugging/extra verbosity.
 java.lang.String dtypes_file
          Name of file containing demand types definition.
 java.lang.String env_file
          Name of file containing environment values for processing modules.
 boolean iep_only
          Only process connection requests where both nodes are in iepairs.
 java.lang.String iepairs_file
          Name of the file containing the list of ingress and egress nodes.
 boolean load_std_modules
          Autoload "standard" processing modules.
 int maxconn
           
 java.lang.Integer maxtime
           
 java.lang.String mod_prefixes
          Module name prefixes.
 java.lang.String modules
          A comma-separated list of processing modules.
 int num_rep
          Number of repetitions/replicas.
 int num_workers
          Number of worker threads to be created.
 java.lang.Integer pl_limit
          opt_pl_limit: maximum acceptable the path length.
 boolean quiet
          Whether to print some extra messages, or be completely quiet.
 java.lang.String ra
           
 java.lang.String ra_prefixes
          Routing algorithms' name prefixes.
 java.lang.String rep_out_file
          File name where stdout will be sent, especially when num_workers is greater than 1.
 java.lang.String st_exporters
          A comma-separated list of statistics exporters.
 java.lang.String topol_file
           
 java.lang.String topol_name
           
 Consts.TRAF_TYPE traf_type
           
 java.lang.String trf_file
          Name of file containing "traffic" (in fact, events) in the .trf format.
 java.lang.String zonemap_file
          Name of the file containing the definition of "zones" within the topology.
 
Constructor Summary
SimParams()
          Default constructor.
SimParams(SimParams other)
          Copy constructor (shallow).
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ra

public java.lang.String ra

traf_type

public Consts.TRAF_TYPE traf_type

topol_file

public java.lang.String topol_file

topol_name

public java.lang.String topol_name

capmult

public double capmult

maxconn

public int maxconn

maxtime

public java.lang.Integer maxtime

costtype

public Consts.COST_TYPE costtype

zonemap_file

public java.lang.String zonemap_file
Name of the file containing the definition of "zones" within the topology.


iepairs_file

public java.lang.String iepairs_file
Name of the file containing the list of ingress and egress nodes. The format is defined by IEPReader. This field may be null.


trf_file

public java.lang.String trf_file
Name of file containing "traffic" (in fact, events) in the .trf format. See TrafficReader.


dtypes_file

public java.lang.String dtypes_file
Name of file containing demand types definition. See See DemandTypesReader. This field may be null.


pl_limit

public java.lang.Integer pl_limit
opt_pl_limit: maximum acceptable the path length. Default: null, which means no limit. A negative number indicates percentage of the network diameter.


iep_only

public boolean iep_only
Only process connection requests where both nodes are in iepairs. Requires iepairs_file != null.


debug

public java.util.Set<Consts.DEBUG> debug
Set flags which might be used for debugging/extra verbosity.


env_file

public java.lang.String env_file
Name of file containing environment values for processing modules. The simulator itself (the core) NEVER uses any of the values put there.


modules

public java.lang.String modules
A comma-separated list of processing modules.


load_std_modules

public boolean load_std_modules
Autoload "standard" processing modules.


mod_prefixes

public java.lang.String mod_prefixes
Module name prefixes.


ra_prefixes

public java.lang.String ra_prefixes
Routing algorithms' name prefixes.


num_rep

public int num_rep
Number of repetitions/replicas.


cur_rep

public int cur_rep
The current repetition number. This values does not come from the user (that is, from args) but should be completed by the simulation coordinator (Sim.java).


num_workers

public int num_workers
Number of worker threads to be created.


rep_out_file

public java.lang.String rep_out_file
File name where stdout will be sent, especially when num_workers is greater than 1.


st_exporters

public java.lang.String st_exporters
A comma-separated list of statistics exporters. Each component must be a fully-qualified class name that implements StatsExporter.


quiet

public boolean quiet
Whether to print some extra messages, or be completely quiet.


argv

public java.lang.String[] argv
The user-provided list of command-line arguments.

Constructor Detail

SimParams

public SimParams()
Default constructor. All fields are left with Java default values.


SimParams

public SimParams(SimParams other)
Copy constructor (shallow).