1.MEs New Roman'"> J2MEMEs New Roman'; mso-hansi-font-family: 'TiMEs New Roman'">体系结构详解
MEs New Roman'; mso-hansi-font-family: 'TiMEs New Roman'">
2MEs New Roman'"> Profile
2MEs New Roman'"> Configuration
2MEs New Roman'"> KVM(CVM)
2MEs New Roman'"> Host Operating System
MEspace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
1)MEs New Roman'"> Configuration-----由于支持J2ME的硬件平台之间有很大差异
I.MEs New Roman'"> 有比较高端的设备,例如:电视机顶盒、网络电视等-----是运算能力相对较佳、并且在电力供应上相对比较充足的嵌入式装置
II.MEs New Roman'"> 也有比较低端的设备,例如:移动电话、寻呼机、PDA等-----是运算功能有限、电力供应也有限的嵌入式装置。
III.MEs New Roman'"> 正是为了要满足以上两大类硬件的开发要求,J2ME针对硬件的数据处理能力、存储容量、网络连接能力等规定了Configuration的概念,把上述运算功能有限、电力有限的嵌入式装置定义在Connected Limited Device Configuration(已连接的MEs New Roman'; mso-hansi-font-family: 'TiMEs New Roman'; mso-bidi-font-size: 10.0pt">受限制设备配置CLDC)规格之中,CLDC所使用的java虚拟机称为KVM(千字节虚拟机)。
IV.MEs New Roman'"> 而另外一种装置则规范为Connected Device Configuration(已连接的MEs New Roman'; mso-hansi-font-family: 'TiMEs New Roman'; mso-bidi-font-size: 10.0pt">设备配置 CDC)规格。,而CDC所使用的java虚拟机则称为CVM。
V.MEs New Roman'"> CDC、CLDC仅仅是对各类设备中最具共性的配置提供了基本的功能集合
2)MEs New Roman'"> Profile-----尽管有了CDC、CLDC之分,但实际应用中,不同的设备之间仍存在着很大的差异。于是,J2ME在Configuration的基础上又定义了Profile的概念。Profile是针对某一类设备所制订的规范和API。下面是两个例子:
I.MEs New Roman'"> 对移动电话的应用----- J2ME定义了一个专门的Profile-MIDP(Mobile Information Device Profile)
II.MEs New Roman'"> 于PDA的应用开发-----J2ME也对应的定义了一个PDAP(PDA Profile)。
3)MEs New Roman'"> CLDC是CDC的一个子集,由于资源的制约CDC不包括所有的J2SE类,而且CDC库还包含CDC特定的几个新的接口和类.
4) 总结-----在Virtual Machine之上只有一个Configuration,而在Configuration之上可以同时存在数个Profile,如此才能有效的针对各种不同的设备构造一个完善的运行环境。
2.MEs New Roman'"> 目前应用最为广泛的MIDP规范中的一些具体内容(架构)
2MEs New Roman'"> MID Profile
2MEs New Roman'"> CLDC Core Libraries
2MEs New Roman'"> KVM
2MEs New Roman'"> Host Operating System
1)MEs New Roman'"> API部分
I.MEs New Roman'"> 用户界面支持:提供的类程序包是javax.microedition.lcdui
II.MEs New Roman'"> 网络支持:提供的类程序包是javax.microedition.io
III.MEs New Roman'"> 数据持续存储支持:提供的类程序包是javax.microedition.rmsi
IV.MEs New Roman'"> 其他例外处理及TiMEr等类的支持
2)MEs New Roman'"> 硬件部分
I.MEs New Roman'"> 内存:128KB的稳定内存供MIDP组件使用;8KB的稳定内存供数据持续存储使用;32KB的稳定内存供虚拟机运行时用
II.MEs New Roman'"> 显示器:屏幕大小为95×54象素,1位色深,屏幕高宽比大约是1:1
III.MEs New Roman'"> 输入设备:键盘、触摸式屏幕或二者并存
IV.MEs New Roman'"> 网络:提供在有限带宽的情况下,进行双向、无线,但可能是间歇性连通的通信功能。
<script type="text/javascript"> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>