27#define GROUP_ALLOC() (GROUP_MOBILITY*)list_alloc(sizeof(GROUP_MOBILITY),offsetof(GROUP_MOBILITY,ele))
28#define GROUP_NEXT(var) var=(GROUP_MOBILITY*)LIST_NEXT(var)
112 double x,y,diff_x,diff_y;
GROUP_MOBILITY * get_group_ptr(NETSIM_ID nGroupId)
int fn_NetSim_Mobility_Group_init()
int fn_NetSim_MoveGroup()
int fnValidateposition(GROUP_MOBILITY *group, double diff_x, double diff_y, bool *flag)
int add_to_group(NETSIM_ID group_id, NETSIM_ID dev_id)
GROUP_MOBILITY * group_add_new(NETSIM_ID group_id)
struct stru_Group_Mobility GROUP_MOBILITY
unsigned int nCallBackCount
#define LIST_ADD_LAST(ls, mem)
_fnMobilityCallBack * fnMobilityCallBack
int fn_NMo_RandomPoint(double *X, double *Y, double velocity, double interval, unsigned long *pulSeed1, unsigned long *pulSeed2)
void add_mobility_animation(NETSIM_ID d, double t, double x, double y, double z)
#define DEVICE_MOBILITY(DeviceId)
int(* _fnMobilityCallBack)(NETSIM_ID nDeviceId)
EXPORTED struct stru_NetSim_EventDetails * pstruEventDetails
#define PROTOCOL_MOBILITY
#define DEVICE_POSITION(DeviceId)
#define fnpAddEvent(pstruEvent)
unsigned int nDeviceCount
struct stru_NetSim_Packet * pPacket
netsimDEVICE_TYPE nDeviceType
double dCalculationInterval
double dLastTime
Represent the devices last move time.
unsigned long ulSeed1
Used to generate random point.
unsigned long ulSeed2
Used to generate random point
double dVelocity
To store the velocity.