当前位置 —论文写论文— 范文

关于嵌入式方面论文范文参考文献,与定制毕业设计本科生毕业文,本科生毕业文相关毕业论文网

本论文是一篇关于嵌入式方面毕业论文网,关于定制毕业设计本科生毕业文,本科生毕业文相关毕业论文提纲范文。免费优秀的关于嵌入式及参考文献及操作系统方面论文范文资料,适合嵌入式论文写作的大学硕士及本科毕业论文开题报告范文和学术职称论文参考文献下载。

40;钱财

OwnGold∈[0,∞]

等级(HeroGrade):英雄的战斗力量的级别

HeroGrade等于INT(HeroPower/10)∈[30,99]

牌数(CardCount):英雄所能持的牌的张数

附录2源代码(模块代码主体部分)

由于源代码的量相对较大,所以在这里我们摘录战斗模块和主模块源代码的关键部分.

Main.java(主模块)

ImportpublicclassMainextendsMIDletimplementsCommandListener{

privateDisplaydisplay,

privateListmainList,//游戏的主界面,是英雄可以处理事务的选择界面

privateListsubList,//内政界面

privateListhelpList,//帮助界面

//用户修改英雄和军团名字的界面

FormModifyListM等于newForm(""),

CommandcmdM,

TextFieldtfM,

FormModifyListH等于newForm(""),

CommandcmdH,

TextFieldtfH,

publicMain(){

//对数据定义的对象初始化

}

publicvoidstartApp(){

herodata.start(),

MAINFORM(),

等//对定义的各种数据初始化

}

//游戏的主界面,是英雄可以处理事务的选择界面

publicvoidMAINFORM(){

CommandcmdBack等于newCommand("退出",Command.BACK,1),

CommandcmdSelected等于newCommand("选择",Command.SCREEN,1),

//初始化主菜单mainList

mainList等于newList("银月之家",Choice.IMPLICIT),

Battle.java(战斗处理模块)

classBattleextendsCanvas{

privateMIDletparentMIDlet,

privateHeroDataherodata,

privateCpuHerocpuhero,

privateNetDataTransdatatrans,

privateRandomrand等于newRandom(),//随机数种子rand

privateint[][]CardState等于newint[10][3],

/*

//CardState[0][0]等于0处于换牌状态,等于1处于出牌状态,等于-1无状态

//CardState[0][1]等于0-3表示当前选中的牌的张数

CardState[1-9]代表显示的1-9张牌

[0]Card1-Card16

[1]有无被选中等于0没有选中,等于1选中,

[2]牌有无存在等于0不存在,等于1存在,

*/

privateint[]HeroCardMessage等于newint[4],//选择的1-3张牌,HeroCardMessage[3]为等级

privateint[]EnemyCardMessage等于newint[4],//同上

privateint[]EnemyHeroState等于newint[6],//对方的0武力,1体力,兵2数,3士气,4城防,和5防御,

privateStringNetMessage,//发送给网络敌方英雄的数据

privateintHeroBattleAbility,//英雄的战斗攻击力

privateintEnemyHeroBattleAbility,

privateintCardWidth,//牌的宽度

privateintCardHeight,//牌的高度

privateintX,

privateintY,//(X,Y)要绘制牌的坐标

privateStringMessage等于"换牌",//游戏状态信息

publicintGameNetOrCpu,//联网游戏还是和cpu游戏

publicstaticfinalintGameNet等于1,

publicstaticfinalintGameCpu等于2,

privateintGameSystemState,//游戏进度状态标志

privatestaticfinalintChangeCard等于1,//状态换牌

附录3翻译(原文和译文)

翻译原文来自:

《Connected,LimitedDeviceConfiguration》SpecificationVersion1.0aJava2PlatformMicroEdition

sun./j2me/doc

译文:

J2ME高级结构和安全机制

在高级结构和安全中,我们将讨论典型的CLDC环境的高级结构.这个讨论是一个起点,更多的,我们会在下面的章节里继续.

虚拟机器环境

典型的CLDC设备的高级结构如FIGURE3-1描述.CLDC执行的核心是Java虚拟机器,除了一些后来在规范说明的细微的差别,它是适应Java虚拟机器规范和Java语言规范.虚拟机器典型是运行于CLDC范围之内的主机操作系统之上.

在虚拟机器之上的是Java库.这些类被分成了两类:

那些被连接的,有限的,设备配置表所定义

那些被简表定义

Java应用程序的理念

Java应用程序通常都涉及了许多类文件的集合,其中包含一个唯一的主函数,它用来标志和作为应用程序的装入点,这条惯例一直贯穿了规范的始终.按照Java虚拟机器规范JavaVirtualMachineSpecification(JVMS)的规定,主函数必须定义为公共的,静态的,void类型的,如下:

publicstaticvoidmain(String[]args)

支持CLDC的JVM的启动Java应用程序都是通过调用主函数main.

原文:

J2MEHigh-levelArchitectureandSecurity

High-levelArchitectureandSecurityThischapterdiscussesthehigh-levelarchitectureofatypicalCLDCenvironment.Thisdiscussionservesasastartingpointformoredetailedspecificationinlater

chapters.

Virtualmachineenvironment

Thehigh-levelarchitectureofatypicalCLDCdeviceisillustratedinFIGURE3-1.AttheheartofaCLDCimplementationistheJavaVirtualMachine,which,apartfromspecificdifferencesdefinedlaterinthisspecification,ispliantwiththeJavaVirtualMachineSpecificationandJavaLanguageSpecification.ThevirtualmachinetypicallyrunsontopofahostoperatingsystemthatisoutsidethescopeofCLDC.

OntopofthevirtualmachinearetheJavalibraries.Theselibrariesaredividedintotwocategories:

1.thosedefinedbytheConnected,Limited,DeviceConfiguration

2.thosedefinedbyprofiles

TheconceptofaJavaApplication

Throughoutthisspecification,thetermJavaapplicationisusedtorefertoacollectionofJavaclassfilescontainingasingle,uniquemethodmainthatidentifiesthelaunchpointoftheapplication.AsspecifiedinJavaVirtualMachineSpecification(JVMS),themethodmainmustbedeclaredpublic,staticandvoid,asshownbelow:


嵌入式本科毕业论文怎么写啊
播放:36315次 评论:4964人

publicstaticvoidmain(String[]args)

AJVMsupportingCLDCstartstheexecutionofaJavaapplicationbycallingthemethodmain.

Applicationmanagement

Manysmall,resource-constraineddevicesdonothaveafilesystemoranyotherstandardmechanismforstoringdynamicallydownloadedinformationonthedevice.Therefore,aCLDCimplementationshal

1 2 3 4 5 6

关于嵌入式方面论文范文参考文献,与定制毕业设计本科生毕业文,本科生毕业文相关毕业论文网参考文献资料:

如何写一篇论文

写不出论文

议论文怎么写好

被骗

怎样写出高考满分作文

高考写人满分作文

写论文的技巧

博士论文好写吗

论文结尾怎么写

替写论文

定制毕业设计本科生毕业文,本科生毕业文(5)WORD版本 下载地址