叶水生, 曾艳青. 一个串行口Javabean的研究与设计[J]. 南昌航空大学学报(自然科学版), 2001, 15(2): 18-22.
引用本文: 叶水生, 曾艳青. 一个串行口Javabean的研究与设计[J]. 南昌航空大学学报(自然科学版), 2001, 15(2): 18-22.
Ye Shuisheng, Zeng Yanqing. The Research and Development of JavaBeans[J]. Journal of nanchang hangkong university(Natural science edition), 2001, 15(2): 18-22.
Citation: Ye Shuisheng, Zeng Yanqing. The Research and Development of JavaBeans[J]. Journal of nanchang hangkong university(Natural science edition), 2001, 15(2): 18-22.

一个串行口Javabean的研究与设计

The Research and Development of JavaBeans

  • 摘要: 本文描述了一个基于JavaBean组件标准的串行通信组件的实现原理、实现过程以及实现方法.它将被作为C/S系统的一个组件,以实现某些工业控制场合中远程控制的要求.充分利用了Java语言的事件监听机制、串行性、持久性、自检以及JavaBean的定制等特性,并经由Java本地接口(JNI-JavaNativeInterface)调用硬件控制等底层操作,具体实现了一个串行通信组件必需的功能,如初始化、读写操作等.在所需要的.DLL的支持下,所有安装了Java虚拟机的Windows系统都可以使用这个.Jar文件.

     

    Abstract: In this paper,the implementation principle,process and the method of a serial communication component based on JavaBean specification are described.It will be made as a component in a C/S system to meet the reqirementst of remote control on the occasion of some industry control.This component has taken most advantage of the behavior of the Java,such as event listener,serialization,persistence,introspection and JavaBean's customization,and implemented the function that is essential to a communication component concretely using the Java Native Interface(JNI)to call the underlying performance of hardware control.At last,we can use the tool jar.exe with the Java or use integrated designer environment such as Jbuilder to package all of the class to a.jar file.Under the support of the.DLL needed,this archive can be reused in any Windows environment which has installed the JVM(Java Virtual Machine).

     

/

返回文章
返回