【正文】
可以與指定設備進行無線通信的Android應用,這個應用既要有普通Android應用那樣的外表,又要有充當醫(yī)療設備的覺悟。我的工作主要集中在對軟件應用的開發(fā)及調試上,開發(fā)前期的工作,主要為設置界面布局,這并不困難,但隨之而來的是應用的一個核心問題:繪圖--不論在哪一種編程語言中,繪圖都不是一件簡單的事情;嘗試過用Java本身自帶的類,效果并不理想,因為對于一個視覺應用,尤其是展示脈搏這樣的屬性,實時的波形圖才是最有說服力的,于是難點劃分成三個,先要有圖,然后能成為波形,最后,使其實時顯示;經過一番查證嘗試,這個應用最大的難題被成功拿下--使用已經成熟的繪圖引擎是必要的選擇。設計中期,主要的工作是完善繪圖功能,使其在繪圖的同時,能夠進行工作,比如存儲數(shù)據(jù)到文件中,又或是根據(jù)波形來計算出一些重要的數(shù)據(jù),這個過程持續(xù)了很長時間,期間遇到的問題文中也有提及,而問題的來源則是對硬件的不熟悉,導致無法掌控傳感器的工作,對應到設計中,即無法對藍牙開發(fā)板進行準確的有目的性的開發(fā),燒寫的程序的復雜使得應用接收到的信號往往出現(xiàn)波形失真甚至沒有波形的情況,這導致設計一度沒有進展,好在后來有所發(fā)現(xiàn),糾正了錯誤,使得數(shù)據(jù)的傳輸變得有保障。后期則是對應用進行一些普及的開發(fā),即每個應用一般都有的“注冊”“設置”功能,又或是對脈搏數(shù)據(jù)的一些簡單分析,隨著工作的逐步進行,功能漸漸完善,也越來越像一個真正的應用軟件了。目前應用雖然已經實現(xiàn)核心功能,即接收藍牙信號并實現(xiàn)實時繪圖,在終端成功運行,但數(shù)據(jù)分析功能和咨詢功能尚不完善,分析功能需要編寫較為高效的數(shù)據(jù)歸納算法對其本地數(shù)據(jù)進行一定的處理統(tǒng)計,咨詢功能則在分析的基礎上針對不同的數(shù)據(jù)特征作出相應的建議;此處,網絡連接功能仍需進一步開發(fā),以完善數(shù)據(jù)的對比,使應用給出的建議更有說服力。參考文獻[1] 王碩,宮恩浩,[J],中國醫(yī)療器械雜志2011,35(6): 402408.[2] 蔡承賢,[J],中國醫(yī)療器械雜志,2010,34(1):13.[3] :醫(yī)療物聯(lián)網潮流先鋒[J],新經濟導刊,:4549.[4] 孟濬,[J],計算機應用研究,30(7):20552060.[5] Choi, type and effect system for activation flow of ponents in Android programs[J],Information Processing Letters, 2014,(11):620627.[6] Ham,Hyung Kil,Mobile application patibility test system design for Android fragmentation[J],Communications in Computer and Information Science,2011,(257):314320.[7] [M],電子工業(yè)出版社,.[8] 于智鵬,:Android核心技術[M],.[9] 藺華,[M],電子工業(yè)出版社,.[10] [M],電子工業(yè)出版社,.[11] 方欣,[M],電子工業(yè)出版社,.[12] 吳亞峰,杜化美,[M],電子工業(yè)出版社,.[13] [M],中國水利水電出版社,.[14] Android SDK開發(fā)范例大全[M],人民郵電出版社,.附錄一 外文文獻翻譯ModelDriven Design for the Development of MultiPlatform Smartphone ApplicationsAbstractTo ensure revenues,developers of smartphone applications should support all the main leading platforms which share the market thus increasing timetomarket and development solve this problem,the paper proposes a ModelDriven Design flow to develop a single version of the application that can be automatically translated into the main platformdependent approach is based on code generation so that no additional library or process is needed on the smartphone to support different introduce a UML2 profile to represent the elements of the application independently of the target platform。the behavior of the application is modeled as a finitestate machine while the graphical user interface is modeled by using classes and set of translation rules is defined to obtain a platformdependent representation and then the actual methodology has been validated by creating an application for both the Android and Windows Phone platform and by paring the obtained code to the corresponding versions written in the traditional way.Keywords:UML,PIM,PSM,Statechart,Android,Windows PhoneI. INTRODUCTIONTechnological revolution specifically in telemunication has created a large market for mobile phones and everyday hundreds of different applications are developed for smartphones due to their diverse smartphone is built on a mobile puting platform,with more advanced puting capability and connectivity than a feature phone[1].Development of smartphone applications is the process by which software is developed for resourceconstrained devices and it is executed over a specific operating system like Android,Windows Mobile,iPhone iOS,and Nokia ,each platform uses a different programming language,such as Java[2]for Android or ObjectiveC[3]for iPhone,and has a slightly different development process.Therefore,the main limitation in smartphone application development is that the application provided for a platform cannot be executed on the other ones and the developer should provide a version for each leading platform thus increasing timetomarket and solve this problem,in[1],the authors present a prehensive middleware architecture for mobile application to support interoperability and portability of mobile middleware is a software layer between the operating system and the user runtime,the middleware translates platformindependent application operations into the platformspecific counterparts。the drawback of this solution is the consumption of device resources(.,CPU time,memory and thus energy from the battery)for the runtime middleware environment. software development flowOther works[4]propose to use a library(there is a specific version of the library for each platform)which provides a standard interface to application ,additional device resources are used at runtime to translate application calls into native ,[8],[9]propose to develop the mobile application as a web application which is portable across all browserenabled main drawback regards the impossibility to access directly to hardware features of the mobile device and the difficulty to achieve userinterface effects not usually present in web pages.ModelDriven Design[10]and PlatformIndependent Models(PIM)[11]offer a reasonable solution to model the application independently of the target device and automating the porting to different platforms.The contribution of this work is a ModelDriven Design methodology to develop smartphone applications independently of a specific from the analysis of the main smartphone platforms,we introduce a UML2 profile to represent the elements of the application independently of the target platform。the behavior of the application is modeled as a finitestate machine while the graphical user interface is modeled by using classes and ,a set of translation rulesis defined to obtain the platformdependent representation and then the actual code for two different platforms.This paper is organized as II describes the traditional application development process for the most mon smartphone III presents the proposed methodology to develop multiplatform IV describes the proposed UML2 profile for the V shows the transformation rules for Android and VI presents the experimental validation on a reallife ,conclusions are drawn in Section VII.II. TRADITIONAL DEVELOPMENTIf smartphone application developers want to reach a wide audience,they have to support the most popular operating systems for smartphones on