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

Go to the source code of this file.

Data Structures

struct  stru_netsim_office
 

Macros

#define _NETSIM_MOBILITY_CODE_
 
#define MOBILITY_OFFICE_COUNT_DEFAULT   0
 
#define MOBILITY_OFFICE_ID_DEFAULT   0
 
#define MOBILITY_OFFICE_NAME_DEFAULT   _strdup("Office1")
 
#define MOBILITY_OFFICE_X1_DEFAULT   0
 
#define MOBILITY_OFFICE_Y1_DEFAULT   0
 
#define MOBILITY_OFFICE_X2_DEFAULT   0
 
#define MOBILITY_OFFICE_Y2_DEFAULT   0
 

Typedefs

typedef struct stru_netsim_office NETSIM_OFFICE
 
typedef struct stru_netsim_officeptrNETSIM_OFFICE
 

Functions

static void configure_office (void *xmlNode, ptrNETSIM_OFFICE office)
 
void fn_NetSim_MObility_configureOffice (void *xmlNetSimNode)
 
bool fnMobility_isPosInsideBuilding (NetSim_COORDINATES *pos, NETSIM_ID id)
 
UINT fnMobility_isPosInsideAnyBuilding (NetSim_COORDINATES *pos)
 
bool fnMobility_findIntersectionPointbyBuilding (NetSim_COORDINATES *p1, NetSim_COORDINATES *p2, UINT id, NetSim_COORDINATES *ret)
 
double fnMobility_findIndoorDistance (NetSim_COORDINATES *p1, NetSim_COORDINATES *p2)
 

Variables

static UINT officeCount = 0
 
static ptrNETSIM_OFFICEofficeList
 

Macro Definition Documentation

◆ _NETSIM_MOBILITY_CODE_

#define _NETSIM_MOBILITY_CODE_

Definition at line 24 of file Building.c.

◆ MOBILITY_OFFICE_COUNT_DEFAULT

#define MOBILITY_OFFICE_COUNT_DEFAULT   0

Definition at line 41 of file Building.c.

◆ MOBILITY_OFFICE_ID_DEFAULT

#define MOBILITY_OFFICE_ID_DEFAULT   0

Definition at line 42 of file Building.c.

◆ MOBILITY_OFFICE_NAME_DEFAULT

#define MOBILITY_OFFICE_NAME_DEFAULT   _strdup("Office1")

Definition at line 43 of file Building.c.

◆ MOBILITY_OFFICE_X1_DEFAULT

#define MOBILITY_OFFICE_X1_DEFAULT   0

Definition at line 44 of file Building.c.

◆ MOBILITY_OFFICE_X2_DEFAULT

#define MOBILITY_OFFICE_X2_DEFAULT   0

Definition at line 46 of file Building.c.

◆ MOBILITY_OFFICE_Y1_DEFAULT

#define MOBILITY_OFFICE_Y1_DEFAULT   0

Definition at line 45 of file Building.c.

◆ MOBILITY_OFFICE_Y2_DEFAULT

#define MOBILITY_OFFICE_Y2_DEFAULT   0

Definition at line 47 of file Building.c.

Typedef Documentation

◆ NETSIM_OFFICE

◆ ptrNETSIM_OFFICE

Function Documentation

◆ configure_office()

static void configure_office ( void *  xmlNode,
ptrNETSIM_OFFICE  office 
)
static

Definition at line 49 of file Building.c.

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:

◆ fnMobility_findIndoorDistance()

double fnMobility_findIndoorDistance ( NetSim_COORDINATES p1,
NetSim_COORDINATES p2 
)

Definition at line 135 of file Building.c.

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

◆ fnMobility_findIntersectionPointbyBuilding()

bool fnMobility_findIntersectionPointbyBuilding ( NetSim_COORDINATES p1,
NetSim_COORDINATES p2,
UINT  id,
NetSim_COORDINATES ret 
)

Definition at line 99 of file Building.c.

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

◆ fnMobility_isPosInsideAnyBuilding()

UINT fnMobility_isPosInsideAnyBuilding ( NetSim_COORDINATES pos)

Definition at line 88 of file Building.c.

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

◆ fnMobility_isPosInsideBuilding()

bool fnMobility_isPosInsideBuilding ( NetSim_COORDINATES pos,
NETSIM_ID  id 
)

Definition at line 80 of file Building.c.

Here is the caller graph for this function:

Variable Documentation

◆ officeCount

UINT officeCount = 0
static

Definition at line 38 of file Building.c.

◆ officeList

ptrNETSIM_OFFICE* officeList
static

Definition at line 39 of file Building.c.