Master
'
s Thesis 2006 
FACHHOCHSCHULE
HOCHSCHULE F
U
R
LI Hui 
STUTTGART
TECHNIK
The implementation 
        STUTTGART UNIVERSITY OF APPLIED 
SCIENCES 
includes  both  data  and  functions.  In  addition,  programmers  can  create  relationships 
between one object and another. For example, objects can inherit characteristics from 
other objects. One simple example  is given as  following,  in this example, the server 
URL as variant was enveloped and transferred. 
      /** Set server s URL */ 
  public void setServerURL(Stringsurl){ 
   
          this.serverurl=url; 
        } 
        /** Return server s URL */ 
        public String getServerURL(){ 
                return serverurl; 
        } 
Listing 11: 
Example of codes written in OOP method 
But  the  more  OOP  methods  the  developers  use,  the  more  classes  are  created,  that 
means  the  more  storage  and  memory  will  be  occupied  and  used.  Because  of  some 
limitation  as  mentioned  before,  J2ME  enters  in  a  dilemma  embarrassedly.  The 
developer  should  decide  when  OOP  could  or  had  better  to  be  used,  depending  on 
whether  the  variant  declaration  should  be  enveloped,  in  order  to  prevent  the  data 
overflowing and other aspects. 
In this application, the core process has four, 
1.
Records the data what the users create when they edit, add or delete the server list.   
2.
Parse  the  contents  of  XML  file  which  got  from  GetCapabilities  and  GetMap 
functions from WMS and transfer them to the other class.   
3.
Validate the result file from WMS after getMapRequest, justify the image format 
to choose which viewer will be loaded 
4.
Load the SVGT or PNG image from WMS and display on screen. 
40 




PHP MySql Web Hosting Design and Implement Client Applications PHP MySQL Hosting




 
TotalRoute.net Business web hosting division of Vision Web Hosting Inc. All rights reserved.