NetSim Source Code Help
Loading...
Searching...
No Matches
FileBasedMobility.c File Reference
#include "main.h"
#include "Mobility.h"
#include "NetSim_utility.h"
Include dependency graph for FileBasedMobility.c:

Go to the source code of this file.

Data Structures

struct  stru_filebasedmobilityinfo
 

Typedefs

typedef struct stru_filebasedmobilityinfo INFO
 
typedef struct stru_filebasedmobilityinfoptrINFO
 

Functions

static void add_mobility_info (NETSIM_ID d, double time, double x, double y, double z)
 
static void add_mobility_event ()
 
void process_filebased_mobility_event ()
 
int FileBasedMobilityPointersFree ()
 
NETSIM_ID find_DeviceID_From_ConfigID (NETSIM_ID d)
 
int FileBasedMobilityReadingFile ()
 

Variables

ptrINFOmobilityInfo
 
ptrINFOlastInfo
 

Typedef Documentation

◆ INFO

◆ ptrINFO

Function Documentation

◆ add_mobility_event()

static void add_mobility_event ( )
static

Definition at line 73 of file FileBasedMobility.c.

Here is the caller graph for this function:

◆ add_mobility_info()

static void add_mobility_info ( NETSIM_ID  d,
double  time,
double  x,
double  y,
double  z 
)
static

Definition at line 40 of file FileBasedMobility.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:

◆ find_DeviceID_From_ConfigID()

NETSIM_ID find_DeviceID_From_ConfigID ( NETSIM_ID  d)

Definition at line 158 of file FileBasedMobility.c.

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:

Variable Documentation

◆ lastInfo

ptrINFO* lastInfo

Definition at line 38 of file FileBasedMobility.c.

◆ mobilityInfo

ptrINFO* mobilityInfo

Definition at line 37 of file FileBasedMobility.c.