Font Size: a A A

Design And Implementation Of Rule Engine In The IoT Teaching Platform

Posted on:2022-03-30Degree:MasterType:Thesis
Country:ChinaCandidate:H C WeiFull Text:PDF
GTID:2517306338485654Subject:Computer technology
Abstract/Summary:PDF Full Text Request
In recent years,the research and application of related technologies of the Internet of Things(IoT)has been incorporated into the teaching plans of universities.The IoT teaching platform is an important tool for universities to teach the IoT.It connects the theory and practice of the IoT better.In the practice of this platform,it is necessary to process data streams generated in IoT scenarios such as smart agriculture,but business rules for different IoT scenarios are different,and even in the same IoT scenario,business rules will change from time to time.According to this feature,it is necessary to implement a rule engine that can decouple business rules and application codes to support the practical application link of the IoT teaching platform.After the investigate of the research status and demand analysis,this thesis has realized a complete and usable,simple and intuitive,highly customizable,and data processing efficiently rule engine system.And the two core elements of rule chain and rule node are designed to split and simplify the writing and construction of business rules.Through this rule engine system,teachers and students can experience the application process of the IoT technology in the realistic scenarios of the IoT designed with smart agriculture,smart home,etc.as prototypes.The system as a whole adopts a cluster architecture design,and implements load balancing among cluster nodes through a ZooKeeper-based scheduler based on load feedback.The system includes three functional modules.The user and device access module allows teachers and students on the platform and smart devices in reality to access the system,and the rule node module allows users to quickly configure rule nodes based on feature rich rule node template,the rule chain module allows users to connect rule nodes to build a rule chain.Through the construction of the rule chain,users can easily build complex business rule logic from simple business rules,and the rules are intuitive and easy to understand,which can meet the complex processing requirements for data flow in the smart scene of the IoT.The data transmitted by the devices in the scene will enter the data message transfer process link designed based on the Actor model of the Akka framework.Actors are used to carry core roles such as devices,rule chains,and rule nodes in the system,and go through a series of messages between core actors transfer,and finally the rule chain Actor in the link schedules the rule node Actor to complete the customized processing of the data flow,and then achieve the automatic control of the related equipment in the scene.After two tests of functional requirements and non-functional requirements,the correctness and effectiveness of the system are scientifically verified.The research work of this thesis effectively supports the practical application link in the IoT teaching platform.The design and implementation of the rule engine system has certain practical value.
Keywords/Search Tags:IoT, rule engine, rule chain, rule node, Actor model
PDF Full Text Request
Related items