当前位置:主页 > 科技论文 > 计算机论文 >

面向ATM的虚拟机关键技术的研究与实现

发布时间:2018-11-28 16:21
【摘要】:虚拟化技术可以更好地实现资源的配置与优化,其重要性已被越来越多的人所认识,正一步步从理论走向实际应用。对于开发ATM软件的项目来说,程序员的开发流程是,先在PC机上编写代码,然后到ATM实体机上去验证代码。要做到为每一位程序员都配备一台昂贵的ATM实体机用于开发的想法不现实,往往是一个开发团队共同使用少量的几台开发用途的ATM实体机,在ATM实体机上验证代码的工作只能是通过排队的方式来进行,这样就导致程序员使用大量的时间用于等待。为了解决上述问题,本文提出了基于ATM机的虚拟机方案;通过模拟实装在AMI(ATM Multiple Innovation)上的各种应用程序之间交互和控制的接口从而实现在PC机上能进行应用程序的运行与调试,从而减少在真实机器上的测试,提高开发效率。论文的主要工作包括: 1.研究了基于WCF技术的服务部署方法。WCF技术的核心思想就是合约(Contract)精神,它规定这些合约是以接口的方式来实现的。部署WCF通信首先要在服务器端制定合约。合约制定好了之后,就可以启动服务器了,客户端通过Microsoft SDKs所提供的工具SvcUtil对服务器端编译成DLL的合约文件进行处理,就能获得客户端调用的合约文件,通过建立客户端实例,就能调用服务器端的函数,由此WCF技术就部署好了服务层。 2.实现了虚拟机同期、非同期处理技术。在ATM系统中,应用层是通过调用同期函数来读取硬件设备层的函数,例如调用AsyncOpen函数就是为了获得CCAD情报,那么在我们所开发的ATM虚拟机系统中就要对同期函数AsyncOpen就行虚拟,在调用虚拟设备中间层虚拟函数AsyncOpen的时候对其CCAD情报进行设值之后,要求设定的值能返回给应用层。应用层通过调用非同期函数来对硬件设备发布命令,例如调用BhAsyncStore函数就是为了向硬件设备发布接线的命令,硬件设备接线好了之后会通过调用回调函数OnBhAsyncStore通知应用层,处理完接线操作之后的接线情报,而应用层就不用等待硬件设备的回复可以完成其他操作。 3.实现了虚拟函数感应要求处理技术。在ATM系统中,应用层通过调用感应要求函数BhAsyncSense来打开硬件层感应的功能,也就是说硬件层能随时通过调用回调函数OnBhAsyncSense,通知应用层,那么在我们所开发的ATM虚拟及系统中,执行完BhAsyncSense函数之后,用一个事件通知窗体来虚拟硬件层的感应,事件通知窗体也能够随时通过回调函数OnBhAsyncSense,通知应用层。 4.实现了虚拟调用函数的三种模式(手动、自动和默认)。手动就是每一个虚拟函数对应一个函数窗体,在这个窗体上对函数的参数以及返回值进行设定,然后将设定值返回给应用层。自动就是每一个虚拟函数对应一个XML文件,在这个文件中,对函数的参数进行设定,在应用层调用的时候,直接将XML文件中读出的参数及设定的返回值返回给应用层。默认就是每一个虚拟函数对应一个数据类文件,在这个数据类文件中,对函数的参数及返回值进行设定,在应用层调用的时候,直接新建这个数据类的实例,然后将设定好的参数及函数返回值返回给应用层。 为了验证上述工作的可行性和有效性,进行了大量的测试与分析。使用ATM虚拟机系统后,ATM应用开发人员可以在虚拟机上进行调试,效率大大提升,,而且调试过程不需要等待,系统运行情况良好。
[Abstract]:Virtualization technology can better realize the configuration and optimization of the resources, the importance of which has been recognized by more and more people, and from the theory to the practical application step by step. For projects that develop ATM software, the programmer's development process is to write code on the PC and then to the ATM entity to verify the code. To make the idea that each programmer is equipped with an expensive ATM entity for development is not a reality, it is often a development team that uses a small number of development-purpose ATM entities, and that the work of the authentication code on the ATM entity can only be done in a queue way, this leads to the programmer's use of a large amount of time for waiting. In order to solve the above problems, a virtual machine scheme based on an ATM is proposed, and the operation and debugging of an application program can be carried out on a PC by simulating an interface which is actually installed between various applications on the AMI (ATM Multiple Innovation) so as to reduce the test on the real machine, and the development efficiency is improved. The main work of the paper includes: 1. Research on the service deployment party based on WCF technology the core idea of the WCF technology is the contract, which provides that the contracts are implemented in an interface. The deployment of WCF communications is first to be made at the server side About. After the contract has been set up, the server can be started. The client can obtain the contract file called by the client through the tool SvcUtil provided by the Microsoft SDKs to process the server-side compiled into the contract file of the DLL. By establishing the client instance, the server-side letter can be called. Number, so WCF technology is deployed Layer. 2. The virtual machine is implemented in the same period, not at the same time in an ATM system, that application lay is a function of reading a layer of a hardware device by call a synchronization function, for example, to call the AsyncOpen function to obtain CCAD information, Line virtual, after calling the virtual function AyncOpen of the virtual device, set the value of its CCAD information, the value that is set to be set can be returned to Application layer. The application layer issues a command to the hardware device by calling the non-synchronization function. For example, the BhAsyncStore function is called to issue the connection command to the hardware device. After the hardware device is wired, the application layer is notified by calling the callback function OnBBAsyncStore, and the connection after the connection operation is processed. line intelligence, while the application layer does not have to wait for a reply from the hardware device to complete it He operates. 3. The virtual function induction is realized. In the ATM system, the application layer opens the function of the hardware layer induction by calling the induction request function BhAyncSense, that is, the hardware layer can call the callback function OnBhagAsyncSense at any time to inform the application layer, then, in the ATM virtual and system we have developed, the implementation of BhAsyncSens after the e-function, an event is used to notify the window of the induction of the virtual hardware layer, and the event notification form can also be at any time through the callback function, OnBhasyncSense, Notifying the application layer. 4. Three modes of virtual calling function (manual, automatic, and default). Manual is that each virtual function corresponds to a function form, the parameters of the function and the return value are set on this form, and the settings are set The value is returned to the application layer. The automatic is that each virtual function corresponds to an XML file. In this file, the parameters of the function are set. When the application layer is called, the parameters and settings read out in the XML file are directly returned The value is returned to the application layer. The default is that each virtual function corresponds to a data class file. In this data class file, the parameter and return value of the function are set. When the application layer is called, it is newly created. an instance of a data class, and then returns the set parameters and functions The value is returned to the application layer. To verify the feasibility and effectiveness of the above work, proceed After using the ATM virtual machine system, the ATM application developer can debug on the virtual machine, the efficiency is greatly improved, and the debugging process does not need to wait
【学位授予单位】:上海交通大学
【学位级别】:硕士
【学位授予年份】:2013
【分类号】:TP311.52;TP302

【参考文献】

相关硕士学位论文 前1条

1 杨柳青;硬件虚拟机Xen的研究和性能优化[D];浙江大学;2008年



本文编号:2363491

资料下载
论文发表

本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/2363491.html


Copyright(c)文论论文网All Rights Reserved | 网站地图 |

版权申明:资料由用户40e76***提供,本站仅收录摘要或目录,作者需要删除请E-mail邮箱bigeng88@qq.com