Node-info agent to manage and maintain node's attribute such as address, location, speed etc.
Services:
Parameters:
Modifiers | Name | Description |
---|---|---|
static String |
description |
|
static String |
title |
Type Params | Return Type | Name and description |
---|---|---|
|
Integer |
getAddress() Gets the node address. |
|
int |
getAddressSize() Gets the node address size in bits. |
|
boolean |
getCanForward() return true if node has forwarding capability. |
|
double |
getDiveRate() Gets the dive rate. |
|
double |
getHeading() Gets the heading. |
|
double[] |
getLocation() Gets the node location. |
|
boolean |
getMobility() Checks if it is a mobile node. |
|
String |
getNodeName() Get the Node name. |
|
double[] |
getOrigin() Get the origin of the coordinate system. |
|
protected List<Parameter> |
getParameterList() |
|
double |
getSpeed() Gets the speed. |
|
Date |
getTime() Gets the node time. |
|
double |
getTurnRate() Gets the turn rate. |
|
int |
setAddress(int address) Sets the node address. |
|
int |
setAddressSize(int size) Sets the node address size in bits. |
|
void |
setCanForward(boolean canForward) Set forwarding capability of the node. |
|
double |
setDiveRate(double diveRate) Sets the dive rate. |
|
double |
setHeading(double heading) Sets the heading. |
|
double[] |
setLocation(double[] location) Sets the location. |
|
double[] |
setLocation(ArrayList<?> location) Sets the location. |
|
boolean |
setMobility(boolean b) Sets the mobility. |
|
String |
setNodeName(String nodeName) Sets the node name. |
|
double[] |
setOrigin(double[] origin) Set the origin of the coordinate system. |
|
double[] |
setOrigin(double latitude, double longitude) Set the origin of the coordinate system. |
|
double[] |
setOrigin(ArrayList<?> origin) Set the origin of the coordinate system. |
|
double |
setSpeed(double speed) Sets the speed. |
|
double |
setTurnRate(double turnRate) Sets the turn rate. |
|
protected void |
setup() |
|
protected void |
startup() |
Gets the node address.
Gets the node address size in bits.
return true if node has forwarding capability.
Gets the dive rate.
Gets the heading.
Returns the heading based on last update and turnRate if mobility is set to true. Changes in heading/turnRate are assumed to be from the time of last location update.
Gets the node location. The location is in meters from origin and ENU coordinate system, if origin is set. Otherwise it is in decimal [latitude, longitude]. Depth is always in meters. Returns the location based on last update, and speed/heading/turnRate/diveRate if mobility is set to true. Changes in speed/heading/turnRate/diveRate are assumed to be from the time of last location update.
Checks if it is a mobile node.
Get the Node name.
Get the origin of the coordinate system.
Gets the speed.
Gets the node time.
Gets the turn rate.
Sets the node address.
address
- node addressSets the node address size in bits.
size
- address size in bits (8 or 16)Set forwarding capability of the node.
canForward
- forwarding capabilitySets the dive rate.
diveRate
- dive rate in meters/secondSets the heading.
heading
- in degrees (0 is north, clockwise)Sets the location. The location is in meters from origin and ENU coordinate system, if origin is set. Otherwise it is in decimal [latitude, longitude]. Depth is always in meters.
location
- as [x, y] or [x, y, z] or nullSets the location. The location is in meters from origin and ENU coordinate system, if origin is set. Otherwise it is in decimal [latitude, longitude]. Depth is always in meters.
location
- as [x, y] or [x, y, z] or nullSets the mobility.
b
- true if mobile nodeSets the node name.
nodeName
- node nameSet the origin of the coordinate system.
origin
- [latitude, longitude] or nullSet the origin of the coordinate system.
latitude
- latitude in decimal degreeslongitude
- longitude in decimal degreesSet the origin of the coordinate system.
origin
- [latitude, longitude] or nullSets the speed.
speed
- in meters/secondSets the turn rate.
turnRate
- turn rate in degrees/second (clockwise)Copyright 2013-19, Acoustic Research Laboratory, National University of Singapore, and Subnero Pte Ltd