The inventor mentor-Chapter 2 sensors

Source: Internet
Author: User

Chapter 3 Sensors

 

Objectives of this Chapter

After reading this chapter, we will be able to do the following:

 

L describe different types of sensors used in the scenario and their usage.

L understand how the sensor is scheduled in the latency queue and scheduled queue, and when it is processed.

L callback functions can be compiled for data and timing sensors.

L set the priority of the delayed queue sensor (Delay-queue sensor.

 

This chapter describes how to add sensor nodes to a scenario. A sensor is an inventor object that can monitor multiple types of events and call user-provided callback functions when these events occur. Sensors are divided into two categories:Data SensorTo respond to data changes in the node domain, subnode, or path;Timing SensorTo respond to certain scheduling conditions.

 

 

Sensor Overview

A sensor is a special object class. It can be associated with the scenario database of inventor. It calls the user-provided callback function to respond to database changes or certain time events. Data sensor (fromSodatasensorTo monitor some data in the database. When the data changes, it notifies the application. Timing sensor (imageSoalarmsensorAndSotimersensorThe application will be notified when some types of time events occur. Note: The time "Event" only occurs in inventor. They are not part of the event model described in Chapter 10th. Figure 12-1 is a partial classification tree of a sensor.

 

 

For the complete translation of this chapter, please download the following link:

The inventor mentorOriginal English version. Download

The inventor mentorChinese translation. Download

The inventor mentorSample Code. Download

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.