NetSim Source Code Help
Loading...
Searching...
No Matches
Mobility.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  stru_NetSim_Mobility
 
struct  stru_NetSim_MobilityVar
 

Macros

#define Mobility_MODEL_DEFAULT   _strdup("NO_MOBILITY")
 
#define Mobility_GROUP_ID_DEFAULT   1
 
#define Mobility_FILE_NAME_DEFAULT   _strdup("")
 
#define Mobility_STEP_SIZE_DEFAULT   1
 
#define Mobility_CALCULATION_INTERVAL_DEFAULT   1
 
#define Mobility_MAX_SPEED_M_S_DEFAULT   3
 
#define Mobility_MIN_SPEED_M_S_DEFAULT   1
 
#define Mobility_STOP_PROBABILITY_DEFAULT   0.5
 
#define Mobility_STOP_DURATION_S_DEFAULT   5
 

Typedefs

typedef enum enum_MobilityModel MOBILITY_MODEL
 
typedef struct stru_NetSim_Mobility NetSim_MOBILITY
 
typedef struct stru_NetSim_MobilityVar MOBILITY_VAR
 

Enumerations

enum  MOBILTY_SUBEVNET { MOVE_GROUP =PROTOCOL_MOBILITY*100+1 , NODE_JOIN , NODE_LEAVE }
 
enum  enum_MobilityModel {
  MobilityModel_NOMOBILITY , MobilityModel_RANDOMWAYPOINT , MobilityModel_RANDOMWALK , MobilityModel_FILEBASEDMOBILITY ,
  MobilityModel_GROUP , MobilityModel_SUMO , MobilityModel_PEDESTRAIN
}
 

Functions

void add_mobility_animation (NETSIM_ID d, double t, double x, double y, double z)
 
int FileBasedMobilityPointersFree ()
 
int fn_NMo_RandomPoint (double *X, double *Y, double velocity, double interval, unsigned long *pulSeed1, unsigned long *pulSeed2)
 
int fn_NetSim_MoveGroup ()
 
int fn_NetSim_Mobility_Group_init ()
 
int add_to_group (NETSIM_ID group_id, NETSIM_ID dev_id)
 
void mobility_pass_position_to_animation (NETSIM_ID devId, double time, NetSim_COORDINATES *coor)
 
double * corr (char *id)
 
void pipes_init ()
 
void init_sumo ()
 
void sumo_run ()
 
int FileBasedMobilityReadingFile ()
 
void process_filebased_mobility_event ()
 
void fn_NetSim_MObility_configureOffice (void *xmlNetSimNode)
 

Variables

double dSimulationArea_X
 
double dSimulationArea_Y
 

Macro Definition Documentation

◆ Mobility_CALCULATION_INTERVAL_DEFAULT

#define Mobility_CALCULATION_INTERVAL_DEFAULT   1

Definition at line 24 of file Mobility.h.

◆ Mobility_FILE_NAME_DEFAULT

#define Mobility_FILE_NAME_DEFAULT   _strdup("")

Definition at line 22 of file Mobility.h.

◆ Mobility_GROUP_ID_DEFAULT

#define Mobility_GROUP_ID_DEFAULT   1

Definition at line 21 of file Mobility.h.

◆ Mobility_MAX_SPEED_M_S_DEFAULT

#define Mobility_MAX_SPEED_M_S_DEFAULT   3

Definition at line 25 of file Mobility.h.

◆ Mobility_MIN_SPEED_M_S_DEFAULT

#define Mobility_MIN_SPEED_M_S_DEFAULT   1

Definition at line 26 of file Mobility.h.

◆ Mobility_MODEL_DEFAULT

#define Mobility_MODEL_DEFAULT   _strdup("NO_MOBILITY")

Definition at line 20 of file Mobility.h.

◆ Mobility_STEP_SIZE_DEFAULT

#define Mobility_STEP_SIZE_DEFAULT   1

Definition at line 23 of file Mobility.h.

◆ Mobility_STOP_DURATION_S_DEFAULT

#define Mobility_STOP_DURATION_S_DEFAULT   5

Definition at line 28 of file Mobility.h.

◆ Mobility_STOP_PROBABILITY_DEFAULT

#define Mobility_STOP_PROBABILITY_DEFAULT   0.5

Definition at line 27 of file Mobility.h.

Typedef Documentation

◆ MOBILITY_MODEL

Definition at line 31 of file Mobility.h.

◆ MOBILITY_VAR

Definition at line 34 of file Mobility.h.

◆ NetSim_MOBILITY

Definition at line 33 of file Mobility.h.

Enumeration Type Documentation

◆ enum_MobilityModel

Enumerator
MobilityModel_NOMOBILITY 
MobilityModel_RANDOMWAYPOINT 
MobilityModel_RANDOMWALK 
MobilityModel_FILEBASEDMOBILITY 
MobilityModel_GROUP 
MobilityModel_SUMO 
MobilityModel_PEDESTRAIN 

Definition at line 44 of file Mobility.h.

◆ MOBILTY_SUBEVNET

Structure to store the mobility variables

Enumerator
MOVE_GROUP 
NODE_JOIN 
NODE_LEAVE 

Definition at line 37 of file Mobility.h.

Function Documentation

◆ add_mobility_animation()

void add_mobility_animation ( NETSIM_ID  d,
double  t,
double  x,
double  y,
double  z 
)

Definition at line 38 of file Mobility.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ add_to_group()

int add_to_group ( NETSIM_ID  group_id,
NETSIM_ID  dev_id 
)

Definition at line 53 of file GroupMobility.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ corr()

double * corr ( char *  id)

Definition at line 162 of file Sumo_interface.c.

Here is the caller graph for this function:

◆ FileBasedMobilityPointersFree()

int FileBasedMobilityPointersFree ( )

This function is to free the file pointers

Definition at line 138 of file FileBasedMobility.c.

Here is the caller graph for this function:

◆ FileBasedMobilityReadingFile()

int FileBasedMobilityReadingFile ( )

This function is to open the file, to define position pointers and to set the initial positions for all the nodes

Definition at line 169 of file FileBasedMobility.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_MObility_configureOffice()

void fn_NetSim_MObility_configureOffice ( void *  xmlNetSimNode)

Definition at line 59 of file Building.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_Mobility_Group_init()

int fn_NetSim_Mobility_Group_init ( )

Definition at line 64 of file GroupMobility.c.

Here is the caller graph for this function:

◆ fn_NetSim_MoveGroup()

int fn_NetSim_MoveGroup ( )

Definition at line 107 of file GroupMobility.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NMo_RandomPoint()

int fn_NMo_RandomPoint ( double *  X,
double *  Y,
double  velocity,
double  interval,
unsigned long *  pulSeed1,
unsigned long *  pulSeed2 
)

This function is used to generate the random point

Definition at line 547 of file Mobility.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_sumo()

void init_sumo ( )

Definition at line 33 of file Sumo_interface.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mobility_pass_position_to_animation()

void mobility_pass_position_to_animation ( NETSIM_ID  devId,
double  time,
NetSim_COORDINATES coor 
)

Definition at line 347 of file Mobility.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pipes_init()

void pipes_init ( )

Definition at line 91 of file Sumo_interface.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ process_filebased_mobility_event()

void process_filebased_mobility_event ( )

Definition at line 101 of file FileBasedMobility.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sumo_run()

void sumo_run ( )

Definition at line 50 of file Sumo_interface.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ dSimulationArea_X

double dSimulationArea_X

Definition at line 55 of file Mobility.h.

◆ dSimulationArea_Y

double dSimulationArea_Y

Definition at line 56 of file Mobility.h.