gov.lanl.Web
Class ArcIMSMapBuilder

java.lang.Object
  |
  +--gov.lanl.Web.ArcIMSMapBuilder

public class ArcIMSMapBuilder
extends java.lang.Object

Class declaration

Version:
%I%, %G%
Author:

Constructor Summary
ArcIMSMapBuilder()
           ArcIMSMapBuilder() implements the parameterless constructor of the class ArcIMSMapBuilder.
ArcIMSMapBuilder(java.lang.String appServerHost, int appServerPort, java.lang.String appServerService, java.lang.String colorMapConfigFileURL)
           ArcIMSMapBuilder() implements the constructor of the class ArcIMSMapBuilder.
 
Method Summary
 java.lang.String generateMap(java.lang.String eventType, java.util.TreeMap zipCodeCntMap)
          setAppServerLink() is used to reconfigure the link to the ARCIMS Application Server.
static void main(java.lang.String[] args)
          Method declaration
 void setAppServerLink(java.lang.String appServerHost, int appServerPort, java.lang.String appServerService)
          setAppServerLink() is used to reconfigure the link to the ARCIMS Application Server.
 void setEnvelope(java.lang.String minx, java.lang.String miny, java.lang.String maxx, java.lang.String maxy)
          setEnvelope() is used to set the boundaries of the map
 void setHeight(java.lang.String height)
          Set height of image
 boolean setMapConfiguration(java.lang.String mapConfigFileURL)
          setMapConfiguration() allows to change the current map configuration (i.e., color map and map dimensions).
 void setProperties(java.util.Properties props)
          Set parameters through properties file
 void setWidth(java.lang.String width)
          set width of image
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArcIMSMapBuilder

public ArcIMSMapBuilder()
ArcIMSMapBuilder() implements the parameterless constructor of the class ArcIMSMapBuilder. It initializes the ARCIMS Application Server object by setting its link information.


ArcIMSMapBuilder

public ArcIMSMapBuilder(java.lang.String appServerHost,
                        int appServerPort,
                        java.lang.String appServerService,
                        java.lang.String colorMapConfigFileURL)
ArcIMSMapBuilder() implements the constructor of the class ArcIMSMapBuilder. It initializes the ARCIMS Application Server object by setting its link information and loads a specified color map.

Parameters:
appServerHost - the new ARCIMS Application Server host name
appServerPort - the new ARCIMS Application Server port number
appServerService - the new ARCIMS Application Server map service name
colorMapConfigFileURL - a URL reference to a color map configuration file
Method Detail

setProperties

public void setProperties(java.util.Properties props)
Set parameters through properties file

Parameters:
props -

generateMap

public java.lang.String generateMap(java.lang.String eventType,
                                    java.util.TreeMap zipCodeCntMap)
setAppServerLink() is used to reconfigure the link to the ARCIMS Application Server.

Parameters:
eventType - type of event (e.g., "Influenza Like Illness")
zipCodeCntMap - a TreeMap object with Zip codes (a String) as keys and event counters (a Integer) as values

setHeight

public void setHeight(java.lang.String height)
Set height of image


setWidth

public void setWidth(java.lang.String width)
set width of image


setEnvelope

public void setEnvelope(java.lang.String minx,
                        java.lang.String miny,
                        java.lang.String maxx,
                        java.lang.String maxy)
setEnvelope() is used to set the boundaries of the map

Parameters:
minx - the minimum x
maxx - the maximum x
miny - the minimum x
maxy - the maximum x

setAppServerLink

public void setAppServerLink(java.lang.String appServerHost,
                             int appServerPort,
                             java.lang.String appServerService)
setAppServerLink() is used to reconfigure the link to the ARCIMS Application Server.

Parameters:
appServerHost - the new ARCIMS Application Server host name
appServerPort - the new ARCIMS Application Server port number
appServerService - the new ARCIMS Application Server map service name

setMapConfiguration

public boolean setMapConfiguration(java.lang.String mapConfigFileURL)
setMapConfiguration() allows to change the current map configuration (i.e., color map and map dimensions). The map configuration data is assumed assumed to be stored in an ASCII-based local or remote file. The project file map.cfg provides an example of such a map configuration file.

Parameters:
mapConfigFileURL - a URL reference to the map configuration file
Returns:
true if map configuration was changed successfully; false otherwise

main

public static void main(java.lang.String[] args)
Method declaration

Parameters:
args -
See Also:


Copyright © 2000 University of California. All Rights Reserved.