Font Size: a A A

Research And Realization For Dynamic Visualization Technology Of Java Program And Object Relation

Posted on:2007-08-22Degree:MasterType:Thesis
Country:ChinaCandidate:Q SuFull Text:PDF
GTID:2178360182992509Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
Java Virtual Machine is one of the key software systems that affect the effective implementation of Java Programming language. As its running process is close and abstract, it largely affects the efficiency and cost of debugging Java programs. Programmers cannot directly and dynamically observe and analyze the running procedure of program and the logic relation of objects. Therefore it is necessary to develop Java Visual Virtual Machine to combine it with visualization technology.The thesis puts forward a design scheme of JVVM, which is based on existing JVM and visualization Technology, and add it to AnyviewJ as a key part. JVVM solves many difficult points such as call of JAVA API and establishing of objects throughout some characteristics of JAVA.JVVM can load and run Java Class file which originates from Javac compiler. During the running time, JVVM can watch all states of every thread, and express straightforward method stack and variables in the memory. At the same time, so as to make user observe and analyze the running flow of procedure, JJVVM also provides basic visual debug functions, including step, break point and continue, letting users dynamically observe and analyze the execute procedure.We can realize the visualization test of white box based on JVVM, During the running time, JVVM can identifies all kinds of variables which exist in the procedure, and watch the running state of procedure. Firstly, JVVM analyze the structure of procedure, and show in the Lists. The Lists can show the structure of procedure in the way of flow diagram. After test path and text usecase being established, JVVM can demostrate isochronously the running of test path in the flow diagram and compare the running results, ultimately accomplish the basic flow of white box test.We also realize the visualization of the typical object relations based on JVVM. It can help programmers watch the dynamic relation of data so as to improve the debugging efficiency. Firstly, JVVM forms the objects in terms of sort in the way of index array, then matches the existing modes of object relation or other modes which users prefer to designate, and shows the object relations in the way of graphicses. During the running time, JVVM also can show synchronously and regeneratively the object relation according to the running status, it is easy to debug.The structure and organization of this paper is as follows. Chapter I introduces the background and actulity of programming technologies, some characteristics of debugging and main content of the paper. Chapter II analyzes the structure model and the key technologies of Java visual machine, and some existing implementation schemes of JVM. Chapter HI introduces the design and implementation of JVM, discussing the implementation details of AnyviewJ. Chapter IV gives visual Software testing module of AnyviewJ which is one of important applications of programming visualization. The last introduces the realization of the object relation's visualization. Chapter VI makes a conclusion of this research, and discusses coming research works and application future.
Keywords/Search Tags:Java Visual Virtual machine, Visual Software Test, Object Relation Visualization
PDF Full Text Request
Related items