tutorials:sensor-grids
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
tutorials:sensor-grids [2024/12/08 20:24] – created MH | tutorials:sensor-grids [2025/06/04 14:12] (current) – MH | ||
---|---|---|---|
Line 2: | Line 2: | ||
Light distributions, | Light distributions, | ||
+ | |||
+ | For an introduction to // | ||
===== Sensor Grids ===== | ===== Sensor Grids ===== | ||
Line 60: | Line 62: | ||
{{ : | {{ : | ||
+ | |||
+ | Note: The above code works fine as long as the number of sensor nodes is moderate, e.g., below 100. The drawback of the above code it that it connects all sensor nodes to one parent, what, unfortunately, | ||
+ | |||
+ | The 'large number of sensor node save code' would look like given below: | ||
+ | <code java> | ||
+ | { | ||
+ | float xi, yi, zi; | ||
+ | } | ||
+ | for (int x=0;x<6; x++) ( | ||
+ | [Node | ||
+ | for (int y=0;y<6; y++) ( | ||
+ | [Node | ||
+ | for (int z=0;z<3; z++) ( | ||
+ | [ | ||
+ | { | ||
+ | xi =-2+0.75*x; | ||
+ | yi =-2+0.75*y; | ||
+ | zi =0.5*z; | ||
+ | } | ||
+ | Null(xi, yi, zi) SensorElement(xi, | ||
+ | ] | ||
+ | ]) | ||
+ | ]) | ||
+ | ) | ||
+ | </ | ||
+ | |||
The last thing to do in order to make really use of sensor grid is to obtain the sensed radiation for the sensor nodes and also may want to export them for further/ | The last thing to do in order to make really use of sensor grid is to obtain the sensed radiation for the sensor nodes and also may want to export them for further/ | ||
Line 257: | Line 285: | ||
{{ : | {{ : | ||
- | Queering | + | Querying |
Additionally, | Additionally, |
tutorials/sensor-grids.1733685882.txt.gz · Last modified: 2024/12/08 20:24 by MH