{'fraction_non_alphanumeric': 0.01791044776119403, 'fraction_numerical': 0.0, 'mean_word_length': 5.890410958904109, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Specifying WSN Applications through Agents Based on Events and States

Wireless sensor networks (WSNs) are emerging as powerful platforms for distributed embedded computing supporting a variety of high-impact applications such as disaster/crime prevention and military applications, environmental applications, health applications, and smart spaces. Programming WSNs is a complex task as system level code and application level code are often intertwined. Several programming paradigms have been to date proposed which provide programming abstractions and programming support for the development of WSN applications. In this paper we propose a specification language centered on the concept of lightweight agent based on events and states which distinctively integrates the advantages of three important paradigms and models for WSN programming: agent- based, event-driven and state-based programming. The proposed language is exemplified through a specification of the well-known EnviroTrack application.