Sensor node declaration.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | parameter | :: | NODE_ID_LEN | = | ID_LEN |
Max. node id length. |
integer, | public, | parameter | :: | NODE_NAME_LEN | = | 32 |
Max. node name length. |
integer, | public, | parameter | :: | NODE_META_LEN | = | 32 |
Max. node meta description length. |
integer, | public, | parameter | :: | NODE_SIZE | = | storage_size(node_type())/8 |
Size of |
Returns whether nodes are equal.
Returns .true.
if given nodes are equal.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(node_type), | intent(in) | :: | node1 |
The first node. |
||
type(node_type), | intent(in) | :: | node2 |
The second node. |
Sensor node type. Uses lon-lat order.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=NODE_ID_LEN), | public | :: | id | = | ' ' |
Node id ( |
|
character(len=NODE_NAME_LEN), | public | :: | name | = | ' ' |
Node name. |
|
character(len=NODE_META_LEN), | public | :: | meta | = | ' ' |
Additional description text (optional). |
|
real(kind=r8), | public | :: | x | = | 0.0_r8 |
Local x or easting, usually in metres (optional). |
|
real(kind=r8), | public | :: | y | = | 0.0_r8 |
Local y or northing, usually in metres (optional). |
|
real(kind=r8), | public | :: | z | = | 0.0_r8 |
Local z or elevation, usually in metres (optional). |
|
real(kind=r8), | public | :: | lon | = | 0.0_r8 |
Longitude in degrees (optional). |
|
real(kind=r8), | public | :: | lat | = | 0.0_r8 |
Latitude in degrees (optional). |
|
real(kind=r8), | public | :: | alt | = | 0.0_r8 |
Altitude or elevation in metres (optional). |
Returns .true.
if given node type elements are valid.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(node_type), | intent(in) | :: | node |
Prints node to standard output or given file unit.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(node_type), | intent(inout) | :: | node | |||
integer, | intent(in), | optional | :: | unit |