INET Framework for OMNeT++/OMNEST
|
to store the specification of a posture on the MoBAN mobility model. More...
#include <Posture.h>
Public Member Functions | |
Posture (unsigned int, unsigned int) | |
Construct a posture object with the given ID and number of nodes, respectively. More... | |
~Posture () | |
int | getNumNodes () const |
Return the number of nodes existing in the WBAN. More... | |
bool | setPostureName (char *) |
Set the given name for the posture. More... | |
bool | setPostureSpeed (double, double) |
Set the minimum and maximum value for the speed range of the whole WBAN (global movement) in this posture. More... | |
bool | setRadius (unsigned int, double) |
Set the radius of the sphere for movement of a singular node in this posture. More... | |
bool | setSpeed (unsigned int, double) |
Set the velocity for movement of a singular node in this posture. More... | |
bool | setPs (unsigned int, Coord) |
Set the relative position of a node in this posture. More... | |
bool | setAlphaMean (unsigned int, unsigned int, double) |
Set the mean value of a normal distribution for path lost coefficient of wave propagation between two nodes in this posture. More... | |
bool | setAlphaSD (unsigned int, unsigned int, double) |
Set the standard deviation of a normal distribution for path lost coefficient of wave propagation between two nodes in this posture. More... | |
bool | isMobile () |
Check if this posture is mobile by checking the maximum possible speed. More... | |
int | getPostureID () |
Returns the unique Id (index) of this posture. More... | |
char * | getPostureName () |
Returns posture name. More... | |
double | getMaxSpeed () |
Returns maximum value of the speed range of this posture. More... | |
double | getMinSpeed () |
Returns minimum value of the speed range of this posture. More... | |
double | getRadius (unsigned int) |
Returns the singular movement radius of a node in this posture. More... | |
double | getSpeed (unsigned int) |
Returns the singular movement speed of a node in this posture. More... | |
Coord | getPs (unsigned int) |
Returns the relative position of a node in this posture. More... | |
double | getAlphaMean (unsigned int, unsigned int) |
Returns the mean value of a normal distribution for path lost coefficient of wave propagation between two nodes in this posture. More... | |
double | getAlphaSD (unsigned int, unsigned int) |
Returns the standard deviation of a normal distribution for path lost coefficient of wave propagation between two nodes in this posture. More... | |
Protected Attributes | |
unsigned int | numNodes = 0 |
Number of nodes existing in the WBAN. More... | |
unsigned int | postureID = 0 |
The unique ID of the posture. More... | |
Coord * | nodePs = nullptr |
The relative reference position of each node in this posture. More... | |
char * | posture_name = nullptr |
A given name to the posture like walking, sitting. More... | |
double ** | alphaMean = nullptr |
Mean value of the normal distribution for the path lost coefficient (alpha) for any pair of nodes (numNodes by numNodes matrix) More... | |
double ** | alphaSD = nullptr |
Mean value of the normal distribution for the path lost coefficient (alpha) for any pair of nodes (numNodes by numNodes matrix) More... | |
double * | nodeRadius = nullptr |
Radious of the sphere around each node for individual mobility. More... | |
double * | nodeSpeed = nullptr |
Movement speed of the node for individual mobility. More... | |
double | maxSpeed = NaN |
Maximum value of the speed range for the global movement in this posture. More... | |
double | minSpeed = NaN |
Minimum value of the speed range for the global movement in this posture. More... | |
to store the specification of a posture on the MoBAN mobility model.
inet::Posture::Posture | ( | unsigned int | ID, |
unsigned int | num | ||
) |
Construct a posture object with the given ID and number of nodes, respectively.
inet::Posture::~Posture | ( | ) |
double inet::Posture::getAlphaMean | ( | unsigned int | i, |
unsigned int | j | ||
) |
Returns the mean value of a normal distribution for path lost coefficient of wave propagation between two nodes in this posture.
double inet::Posture::getAlphaSD | ( | unsigned int | i, |
unsigned int | j | ||
) |
Returns the standard deviation of a normal distribution for path lost coefficient of wave propagation between two nodes in this posture.
double inet::Posture::getMaxSpeed | ( | ) |
Returns maximum value of the speed range of this posture.
Referenced by inet::MoBANCoordinator::selectSpeed().
double inet::Posture::getMinSpeed | ( | ) |
Returns minimum value of the speed range of this posture.
Referenced by inet::MoBANCoordinator::selectSpeed().
|
inline |
Return the number of nodes existing in the WBAN.
int inet::Posture::getPostureID | ( | ) |
Returns the unique Id (index) of this posture.
Referenced by inet::MoBANCoordinator::selectPosture(), and inet::MoBANCoordinator::setTargetPosition().
char * inet::Posture::getPostureName | ( | ) |
Returns posture name.
Referenced by inet::MoBANCoordinator::readConfigurationFile(), inet::MoBANCoordinator::refreshDisplay(), and inet::MoBANCoordinator::setTargetPosition().
Coord inet::Posture::getPs | ( | unsigned int | i | ) |
Returns the relative position of a node in this posture.
Referenced by inet::MoBANCoordinator::isInsideWorld(), and inet::MoBANCoordinator::publishToNodes().
double inet::Posture::getRadius | ( | unsigned int | i | ) |
Returns the singular movement radius of a node in this posture.
Referenced by inet::MoBANCoordinator::publishToNodes().
double inet::Posture::getSpeed | ( | unsigned int | i | ) |
Returns the singular movement speed of a node in this posture.
Referenced by inet::MoBANCoordinator::publishToNodes().
bool inet::Posture::isMobile | ( | ) |
Check if this posture is mobile by checking the maximum possible speed.
Referenced by inet::MoBANCoordinator::setTargetPosition().
bool inet::Posture::setAlphaMean | ( | unsigned int | i, |
unsigned int | j, | ||
double | alpha_mean | ||
) |
Set the mean value of a normal distribution for path lost coefficient of wave propagation between two nodes in this posture.
bool inet::Posture::setAlphaSD | ( | unsigned int | i, |
unsigned int | j, | ||
double | alpha_sd | ||
) |
Set the standard deviation of a normal distribution for path lost coefficient of wave propagation between two nodes in this posture.
bool inet::Posture::setPostureName | ( | char * | str | ) |
Set the given name for the posture.
bool inet::Posture::setPostureSpeed | ( | double | min, |
double | max | ||
) |
Set the minimum and maximum value for the speed range of the whole WBAN (global movement) in this posture.
bool inet::Posture::setPs | ( | unsigned int | i, |
Coord | ps | ||
) |
Set the relative position of a node in this posture.
bool inet::Posture::setRadius | ( | unsigned int | i, |
double | radius | ||
) |
Set the radius of the sphere for movement of a singular node in this posture.
bool inet::Posture::setSpeed | ( | unsigned int | i, |
double | speed | ||
) |
Set the velocity for movement of a singular node in this posture.
|
protected |
Mean value of the normal distribution for the path lost coefficient (alpha) for any pair of nodes (numNodes by numNodes matrix)
Referenced by getAlphaMean(), Posture(), setAlphaMean(), and ~Posture().
|
protected |
Mean value of the normal distribution for the path lost coefficient (alpha) for any pair of nodes (numNodes by numNodes matrix)
Referenced by getAlphaSD(), Posture(), setAlphaSD(), and ~Posture().
|
protected |
Maximum value of the speed range for the global movement in this posture.
Referenced by getMaxSpeed(), isMobile(), and setPostureSpeed().
|
protected |
Minimum value of the speed range for the global movement in this posture.
Referenced by getMinSpeed(), and setPostureSpeed().
|
protected |
The relative reference position of each node in this posture.
Referenced by getPs(), Posture(), setPs(), and ~Posture().
|
protected |
Radious of the sphere around each node for individual mobility.
Referenced by getRadius(), Posture(), setRadius(), and ~Posture().
|
protected |
Movement speed of the node for individual mobility.
Referenced by getSpeed(), Posture(), setSpeed(), and ~Posture().
|
protected |
Number of nodes existing in the WBAN.
Referenced by getAlphaMean(), getAlphaSD(), getPs(), getRadius(), getSpeed(), Posture(), setAlphaMean(), setAlphaSD(), setPs(), setRadius(), setSpeed(), and ~Posture().
|
protected |
A given name to the posture like walking, sitting.
It might be used for showing the current posture in the graphical interface during the simulation run
Referenced by getPostureName(), setPostureName(), and ~Posture().
|
protected |
The unique ID of the posture.
Referenced by getPostureID(), and Posture().