* adding additional tests for 10MHz and 20MHz channel BW
* applying patches 8 and 9 contributed from S. Held git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6536 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
*/
|
||||
|
||||
#include "id_manager.h"
|
||||
#include "assertions.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -135,13 +136,8 @@ void remove_oaiID_by_SUMO(char *sumo_id, IDManagerPtr ID_manager) {
|
||||
char* get_sumo_entry(int oai_id, Map_list Map_Vector) {
|
||||
Map_list tmp = Map_Vector;
|
||||
|
||||
if(Map_Vector == NULL) {
|
||||
printf("bug here..should not be NULL");
|
||||
}
|
||||
|
||||
if(Map_Vector->map == NULL) {
|
||||
printf("bug here..map should have been initialized");
|
||||
}
|
||||
AssertFatal( Map_Vector, "bug here..should not be NULL" );
|
||||
AssertFatal( Map_Vector->map, "bug here..map should have been initialized" );
|
||||
|
||||
if (tmp->map->oai_id == oai_id) {
|
||||
//printf("got it...at the head and value is %s \n",tmp->map->sumo_id);
|
||||
|
||||
@@ -78,7 +78,7 @@ init_omg_global_params (void)
|
||||
job_vector_end[mob_t] = NULL;
|
||||
}
|
||||
|
||||
for (node_t = eNB; node_t < MAX_NUM_MOB_TYPES; node_t++)
|
||||
for (node_t = eNB; node_t < MAX_NUM_NODE_TYPES; node_t++)
|
||||
{
|
||||
node_vector[node_t] = NULL;
|
||||
node_vector_end[node_t] = NULL;
|
||||
|
||||
@@ -345,13 +345,12 @@ update_rwalk_nodes (double cur_time)
|
||||
node_struct *my_node;
|
||||
while (tmp != NULL && done == 0)
|
||||
{
|
||||
my_node = (node_struct *) tmp->pair->b;
|
||||
|
||||
//case1:time to next event equals to current time
|
||||
if (tmp->pair != NULL
|
||||
&& ((double) tmp->pair->next_event_t >= cur_time - omg_eps)
|
||||
&& ((double) tmp->pair->next_event_t <= cur_time + omg_eps))
|
||||
{
|
||||
my_node = tmp->pair->b;
|
||||
if (my_node->mobile == 1)
|
||||
sleep_rwalk_node (tmp->pair, cur_time);
|
||||
else
|
||||
@@ -364,6 +363,7 @@ update_rwalk_nodes (double cur_time)
|
||||
&& (cur_time - omg_eps) > tmp->pair->next_event_t)
|
||||
{
|
||||
|
||||
my_node = tmp->pair->b;
|
||||
while (cur_time >= tmp->pair->next_event_t)
|
||||
{
|
||||
if (my_node->mobile == 1)
|
||||
|
||||
@@ -320,13 +320,12 @@ update_rwp_nodes (double cur_time)
|
||||
node_struct *my_node;
|
||||
while (tmp != NULL && done == 0)
|
||||
{
|
||||
my_node = (node_struct *) tmp->pair->b;
|
||||
|
||||
//case1:time to next event equals to current time
|
||||
if (tmp->pair != NULL
|
||||
&& ((double) tmp->pair->next_event_t >= cur_time - omg_eps)
|
||||
&& ((double) tmp->pair->next_event_t <= cur_time + omg_eps))
|
||||
{
|
||||
my_node = tmp->pair->b;
|
||||
if (my_node->mobile == 1)
|
||||
sleep_rwp_node (tmp->pair, cur_time);
|
||||
else
|
||||
@@ -339,6 +338,7 @@ update_rwp_nodes (double cur_time)
|
||||
&& (cur_time - omg_eps) > tmp->pair->next_event_t)
|
||||
{
|
||||
|
||||
my_node = tmp->pair->b;
|
||||
while (cur_time >= tmp->pair->next_event_t)
|
||||
{
|
||||
if (my_node->mobile == 1)
|
||||
|
||||
@@ -525,13 +525,12 @@ update_steadystaterwp_nodes (double cur_time)
|
||||
node_struct *my_node;
|
||||
while (tmp != NULL && done == 0)
|
||||
{
|
||||
my_node = (node_struct *) tmp->pair->b;
|
||||
|
||||
//case1:time to next event equals to current time
|
||||
if (tmp->pair != NULL
|
||||
&& ((double) tmp->pair->next_event_t >= cur_time - omg_eps)
|
||||
&& ((double) tmp->pair->next_event_t <= cur_time + omg_eps))
|
||||
{
|
||||
my_node = tmp->pair->b;
|
||||
if (my_node->mobile == 1)
|
||||
sleep_rwp_node (tmp->pair, cur_time);
|
||||
else
|
||||
@@ -544,6 +543,7 @@ update_steadystaterwp_nodes (double cur_time)
|
||||
&& (cur_time - omg_eps) > tmp->pair->next_event_t)
|
||||
{
|
||||
|
||||
my_node = tmp->pair->b;
|
||||
while (cur_time >= tmp->pair->next_event_t)
|
||||
{
|
||||
if (my_node->mobile == 1)
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
#include "sumo.h"
|
||||
|
||||
#include "client_traci_OMG.h"
|
||||
#include "assertions.h"
|
||||
|
||||
|
||||
int
|
||||
@@ -170,6 +171,9 @@ start_sumo_generator (omg_global_param omg_param_list)
|
||||
node->generator = SUMO; // SUMO
|
||||
node->mob = mobility;
|
||||
|
||||
DevAssert( SUMO >= sizeof(node_vector_end) ); // FIXME node_vector_end is declared with MAX_NUM_NODE_TYPES elements, but here we are indexing with SUMO from enum mobility_types
|
||||
DevAssert( SUMO >= sizeof(node_vector) ); // FIXME node_vector is declared with MAX_NUM_NODE_TYPES elements, but here we are indexing with SUMO from enum mobility_types
|
||||
|
||||
node_vector_end[SUMO] =
|
||||
(node_list *) add_entry (node, node_vector_end[SUMO]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user