astyle --recursive --indent=spaces=2 --style=kr --indent-col1-comments --break-blocks --convert-tabs --max-code-length=200
This is done for better merging branch/LG_PRE_RELEASE_0.3 into trunk (same process is applied on this branch) git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7073 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
* \file rwp.h
|
||||
* \brief Functions used for the Random WayPoint Model
|
||||
* \date 22 May 2011
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef RWP_H_
|
||||
@@ -49,7 +49,7 @@ int start_rwp_generator(omg_global_param omg_param_list) ;
|
||||
|
||||
/**
|
||||
* \fn void place_rwp_node(NodePtr node)
|
||||
* \brief Called by the function start_rwp_generator(), it generates a random position ((X,Y) coordinates) for a node and add it to the Node_Vector_Rwp
|
||||
* \brief Called by the function start_rwp_generator(), it generates a random position ((X,Y) coordinates) for a node and add it to the Node_Vector_Rwp
|
||||
* \param node a pointer of type NodePtr that represents the node to which the random position is assigned
|
||||
*/
|
||||
void place_rwp_node(node_struct* node);
|
||||
@@ -57,7 +57,7 @@ void place_rwp_node(node_struct* node);
|
||||
/**
|
||||
* \fn Pair sleep_rwp_node(NodePtr node, double cur_time)
|
||||
* \brief Called by the function start_rwp_generator(omg_global_param omg_param_list) and update_rwp_nodes(double cur_time), it allows the node to sleep for a random duration starting
|
||||
* from the current time
|
||||
* from the current time
|
||||
* \param node a pointer of type NodePtr that represents the node to which the random sleep duration is assigned
|
||||
* \param cur_time a variable of type double that represents the current time
|
||||
* \return A Pair structure containing the node and the time when it is reaching the destination
|
||||
@@ -67,7 +67,7 @@ void sleep_rwp_node(pair_struct* pair, double cur_time) ;
|
||||
/**
|
||||
* \fn Pair move_rwp_node(NodePtr node, double cur_time)
|
||||
* \brief Called by the function update_rwp_nodes(double cur_time), it computes the next destination of a node ((X,Y) coordinates and the arrival
|
||||
* time at the destination)
|
||||
* time at the destination)
|
||||
* \param node a variable of type NodePtr that represents the node that has to move
|
||||
* \param cur_time a variable of type double that represents the current time
|
||||
* \return A Pair structure containing the node structure and the arrival time at the destination
|
||||
@@ -77,15 +77,15 @@ void move_rwp_node(pair_struct* pair, double cur_time);
|
||||
/**
|
||||
* \fn void update_rwp_nodes(double cur_time)
|
||||
* \brief Update the positions of the nodes. After comparing the current time to the first job_time, it is decided wether to start
|
||||
* \ a new job or to keep the current job
|
||||
* \ a new job or to keep the current job
|
||||
* \param cur_time a variable of type double that represents the current time
|
||||
*/
|
||||
void update_rwp_nodes(double cur_time) ;
|
||||
|
||||
/**
|
||||
* \fn void get_rwp_positions_updated(double cur_time)
|
||||
* \brief Compute the positions of the nodes at a given time in case they are moving (intermediate positions). Otherwise, generate a message saying that
|
||||
* the nodes are still sleeping
|
||||
* \brief Compute the positions of the nodes at a given time in case they are moving (intermediate positions). Otherwise, generate a message saying that
|
||||
* the nodes are still sleeping
|
||||
* \param cur_time a variable of type double that represents the current time
|
||||
*/
|
||||
void get_rwp_positions_updated(double cur_time);
|
||||
|
||||
Reference in New Issue
Block a user