基于观察者模式的CoAP课程教学与实验设计  被引量:1

Observer Pattern Based Teaching and Experimental Design of CoAP Course

在线阅读下载全文

作  者:张笑非 段先华 王长宝 王艳 ZHANG Xiao-fei;DUAN Xian-hua;WANG Chang-bao;WANG Yan(School of Computer,Jiangsu University of Science and Technology,Zhenjiang 212003,China)

机构地区:[1]江苏科技大学计算机学院

出  处:《软件导刊》2019年第12期199-203,共5页Software Guide

基  金:教育部人文社科基金项目(2014WY11J);江苏省哲学社科基金项目(2014SJB822);江苏科技大学2016高教研究项目(GJKTY201625);江苏省教育信息化研究课题项目(20172217)

摘  要:CoAP是M2M的核心技术之一,其观察者模式是一种软件设计模式。IETF RFC 7641定义的CoAP资源观察机制正是基于该模式,是CoAP教学和实验内容的重要组成部分。将CoAP中资源观察消息的传递过程与通知的传输控制、时效性模型结合进行课程教学内容设计,通过Eclipse开源项目Californium中提供的API设计相应实验,并利用JUnit框架设计CoAP资源观察的测试用例,测试结果验证了相应资源观察过程。将该设计运用到实际教学活动中,学生对CoAP的内涵理解及编程能力都有提高。CoAP is one of the core technologies of M2M and its observer mode is a software design pattern.The CoAP resource observa?tion mechanism defined by IETF RFC 7641 is based on this pattern and is an important part of CoAP teaching and experimental con?tent.This paper integrates the message transfer process of resources observing,transmission control of notifications,and freshness model in CoAP for the teaching content design.Experiments are also designed with API from Californium,an open source project from Eclipse foundation.Test cases of resources observing of CoAP are also designed based on JUnit framework,and the results verify the re?sources observing process of corresponding case.It is found that students’understanding about CoAP and programming ability with Co?AP can be improved thanks to the application of those teaching activities.

关 键 词:观察者模式 资源观察通知 传输控制 时效性模型 受限节点/网络 

分 类 号:G434[文化科学—教育学]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象