IPv4UnderlayConfigurator.h File Reference

#include <vector>
#include <omnetpp.h>
#include <BasicModule.h>
#include <UnderlayConfigurator.h>
#include <InitStages.h>
#include "AccessNet.h"

Classes

class  IPv4UnderlayConfigurator
 Configurator module for the IPv4Underlay. More...

Functions

double uniform2 (double start, double end, double index, double new_calc)
double intuniform2 (double start, double end, double index, double new_calc)
 Define_Function (uniform2, 4)
 Define_Function (intuniform2, 4)


Function Documentation

Define_Function ( intuniform2  ,
 
)

Define_Function ( uniform2  ,
 
)

double intuniform2 ( double  start,
double  end,
double  index,
double  new_calc 
)

00092 {
00093     static std::vector<double> value;
00094     if ( (uint)index >= value.size() )
00095         value.resize((int)index + 1);
00096     if ( new_calc == 1 )
00097         value[(int)index] = (double)intuniform((int)start, (int)end);
00098     return value[(int)index];
00099 };

double uniform2 ( double  start,
double  end,
double  index,
double  new_calc 
)

00082 {
00083     static std::vector<double> value;
00084     if ( (uint)index >= value.size() )
00085         value.resize((int)index + 1);
00086     if ( new_calc == 1 )
00087         value[(int)index] = uniform(start, end);
00088     return value[(int)index];
00089 };


Generated on Wed Apr 4 13:37:05 2007 for ITM OverSim by  doxygen 1.4.7