11.07.2015 Views

A Middleware Architecture Supporting Native Mobile Agents for ...

A Middleware Architecture Supporting Native Mobile Agents for ...

A Middleware Architecture Supporting Native Mobile Agents for ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Middleware</strong> <strong>Supporting</strong> <strong>Native</strong> <strong>Mobile</strong> <strong>Agents</strong> <strong>for</strong> WSN 5self-managing and robust – once one agent is pushed into the network, it operatesautonomously, even in the presence of node resets and failures.The nodes are arranged as shown in Figure 2. Each node knows which roomit is in (from 1 to 3) and whether or not it is attached to a heater. Every nodehas a temperature sensor. Each heater can be in one of 4 states – Off, Low,Medium or High. Each simulation is run <strong>for</strong> 6 minutes in total.Heater0 1 2 3 45 6 7 8 910 11 12 13 1415 16 17 18 1920 21 22 23 24Fig. 2. Physical Scenario3.3 <strong>Agents</strong>The agent sizes are shown in Table 4.3.3.1 Management Agent The management agent moves around the network,discovering nodes as it moves. On discovering a node connected to a heater,it summons a control agent if none exists. The control agent is given the list ofnodes in the current room. This is updated each time the management agentrevisits the control agent. The management agent keeps a list of nodes that werepreviously reachable but that are currently unreachable.3.3.2 Control Agent (static) Every 10 seconds, it summons a data gatheringagent to take readings from around the room. Once started, the control agentexpects to get regular visits from the management agent. If one minute passeswithout any visit, the control agent will summon a new management agent,which will begin crawling the network from the current node.3.3.3 Data Gather Agent This agent moves around each node in the roomand takes a sensor reading. It returns these readings to the control agent.3.3.4 Reporting Agent The reporting agent remains at an externally connectednode. It receives the list of failed nodes from the management agent.Only a test agent is implemented.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!