#include <uwdriftposition.h>
|
| virtual void | update (const double &) |
| |
| virtual double | getX () |
| |
| virtual double | getY () |
| |
| virtual double | getZ () |
| |
| virtual short | getSign () const |
| |
UwDriftPosition class implements the drift mobility model.
◆ UwDriftPosition()
| UwDriftPosition::UwDriftPosition |
( |
| ) |
|
Constructor of UwDriftPosition class.
References alpha_, boundx_, boundy_, boundz_, debug_, deltax_, deltay_, deltaz_, old_speed_x_, old_speed_y_, old_speed_z_, speed_horizontal_, speed_longitudinal_, speed_vertical_, starting_speed_x_, starting_speed_y_, starting_speed_z_, updateTime_, xFieldWidth_, yFieldWidth_, and zFieldWidth_.
◆ ~UwDriftPosition()
| UwDriftPosition::~UwDriftPosition |
( |
| ) |
|
|
virtual |
◆ command()
| int UwDriftPosition::command |
( |
int |
argc, |
|
|
const char *const * |
argv |
|
) |
| |
|
virtual |
TCL command interpreter. It implements the following OTcl methods:
- Parameters
-
| argc | Number of arguments in argv. |
| argv | Array of strings which are the command parameters (Note that argv[0] is the name of the object). |
- Returns
- TCL_OK or TCL_ERROR whether the command has been dispatched successfully or not.
◆ getSign()
| short UwDriftPosition::getSign |
( |
| ) |
const |
|
protectedvirtual |
Returns a randomly 1 or -.
- Returns
Referenced by update().
◆ getX()
| double UwDriftPosition::getX |
( |
| ) |
|
|
protectedvirtual |
Returns the current projection of the node on the x-axis. If it's necessary (updating time ia expired), update the position values before returns it.
- Returns
- The new x-axis position value of the node.
References nextUpdateTime_, and update().
◆ getY()
| double UwDriftPosition::getY |
( |
| ) |
|
|
protectedvirtual |
Returns the current projection of the node on the y-axis. If it's necessary (updating time ia expired), update the position values before returns it.
- Returns
- The new y-axis position value of the node.
References nextUpdateTime_, and update().
◆ getZ()
| double UwDriftPosition::getZ |
( |
| ) |
|
|
protectedvirtual |
Returns the current projection of the node on the z-axis. If it's necessary (updating time ia expired), update the position values before returns it.
- Returns
- The new z-axis position value of the node.
References nextUpdateTime_, and update().
◆ update()
| void UwDriftPosition::update |
( |
const double & |
now | ) |
|
|
protectedvirtual |
Updates both the position coordinates as function of the number of states to be evaluated.
- Parameters
-
References alpha_, boundx_, boundy_, boundz_, debug_, deltax_, deltay_, deltaz_, getSign(), nextUpdateTime_, old_speed_x_, old_speed_y_, old_speed_z_, speed_horizontal_, speed_longitudinal_, speed_vertical_, updateTime_, xFieldWidth_, yFieldWidth_, and zFieldWidth_.
Referenced by getX(), getY(), and getZ().
◆ alpha_
| double UwDriftPosition::alpha_ |
|
protected |
Parameter to be used to vary the randomness: 0: totally random values (Brownian motion), 1: linear motion.
Referenced by update(), and UwDriftPosition().
◆ boundx_
| int UwDriftPosition::boundx_ |
|
protected |
◆ boundy_
| int UwDriftPosition::boundy_ |
|
protected |
◆ boundz_
| int UwDriftPosition::boundz_ |
|
protected |
◆ debug_
| int UwDriftPosition::debug_ |
|
protected |
◆ deltax_
| double UwDriftPosition::deltax_ |
|
protected |
◆ deltay_
| double UwDriftPosition::deltay_ |
|
protected |
◆ deltaz_
| double UwDriftPosition::deltaz_ |
|
protected |
◆ nextUpdateTime_
| double UwDriftPosition::nextUpdateTime_ |
|
protected |
◆ old_speed_x_
| double UwDriftPosition::old_speed_x_ |
|
private |
◆ old_speed_y_
| double UwDriftPosition::old_speed_y_ |
|
private |
◆ old_speed_z_
| double UwDriftPosition::old_speed_z_ |
|
private |
◆ speed_horizontal_
| double UwDriftPosition::speed_horizontal_ |
|
protected |
◆ speed_longitudinal_
| double UwDriftPosition::speed_longitudinal_ |
|
protected |
◆ speed_vertical_
| double UwDriftPosition::speed_vertical_ |
|
protected |
◆ starting_speed_x_
| double UwDriftPosition::starting_speed_x_ |
|
protected |
◆ starting_speed_y_
| double UwDriftPosition::starting_speed_y_ |
|
protected |
◆ starting_speed_z_
| double UwDriftPosition::starting_speed_z_ |
|
protected |
◆ updateTime_
| double UwDriftPosition::updateTime_ |
|
protected |
◆ xFieldWidth_
| double UwDriftPosition::xFieldWidth_ |
|
protected |
◆ yFieldWidth_
| double UwDriftPosition::yFieldWidth_ |
|
protected |
◆ zFieldWidth_
| double UwDriftPosition::zFieldWidth_ |
|
protected |
The documentation for this class was generated from the following files: