Sample JSP: Airplane interactivity & Air Traffic control
 
This simple JSP file demos, how one may build a simple Air Traffic Control System using the Raju’s GUI-Class for the Airline. Furthermore, the AC for each Airline request given server (i.e. URL) for latest location and update the AC’s location. Upon mouse click, each AC also requests the server for latest Flight-data. Of coerce, for testing purpose, the server uses static data or use simple techniques to randomly calculate the next location.
 
Please click here to see the SVG Component
 
The following JSP-code presents the above SVG-component. The JSP code is in one file, but it is dived into sections to explain then in parts. To inspect the SVG-code of the AC’s, please select right mouse button and select “View Source” in the pop-up menu.
 
The JSP file to present the Above SVG-Component
 
The section-1 just defined few global Objects and SVG-code to display or hide city image as background. The section-2, includes code for Info-table, which is global utility-AC (please click here to see the Appendix-A). The Airplane’s AC requests the Info-table’s service method to display the Flight-info.
 
Please review the Section-3 code to see, how one could the Raju’s GUI-Class for the Airplane in any application. The Java-class for the Airplane accepts wide range of information to initialize the Airline component’s state. Once the Airline-Object is initialized, one may use CGM() to get the AC;s code. For the purpose of testing, this JSP file is using the static-data, but one may get the data for the Flight from appropriate data sources.
 
Sample Air Traffic Control System Code
 
The final section contains a function, when calls a service method of each Flight. The service function gets latest location data from the server to update the location of the flight in the application (i.e. on the screen).
 
 
Miscellaneous Documents Privacy Policy | Site Map | Services
Designed By SINDHU SYNERGY
Copy Right © 2006 Pioneer Soft, LLC. All Rights Reserved.