Agent-based Mechanisms for Distributing Geographic Information Services on the Internet By Ming-Hsiang Tsou 1 and Barbara P. Buttenfield 2 1 Geography Department, San Diego State University 2 Geography Department, University of Colorado GIScience 2000
Why Distribute GIServices? Globalize Information Access/Exchange Decentralize Database Management/Update Distribute Computing Processes The Network is the Computer
Problems in Distributing GIServices Temporary, technology-centered solutions: The lack of an intelligent architecture which can operate in new/unknown environments Focus on Data, not on GIS Processes: We need to distribute both GIS Processes and data objects across the networks.
Dynamic Construction (on the Internet) User Scenario: GIS Task GIS node profile Network performance GIS user GIS node GIS component (program) Geodata object Solution: Dynamic Architecture for GIServices
Dynamic Construction (on the Internet) User Scenario: Map Display [Colorado Roads] GIS user (Mike) GIS node GIS component Geodata object Build GIServices “ on-the-fly ” B C A
Agents Info. finders/filters Interpreters Decision makers User-defined rules Knowledge bases Agent collaboration Agent-based Communication GIS Components (Programs) Geodata Objects Metadata
Information Finder / Filter Information Finder Information Filter Choice - 1 Choice - 2 Choice - 3 ~ ~ ~ ~ ~ Choice Reasonable choice - A Reasonable choice - B Reasonable choice - C KEYWORDS (User-defined rules) Users Choice - 1 Choice - 2 Choice - 3 ~ ~ ~ ~ ~ Choice Site-B Site-A Choice - 1 Choice - 2 Choice - 3 ~ ~ ~ ~ ~ Choice Site-C Examples: Search “Colorado roads” Search Methods: 1. Message Broadcasting 2. Agent Roaming 3. Create a “Metadata Repository” to improve the search efficiency
Information Interpreter ARC Coverages Metadata [Buffering] in UNIX Information Interpreter Metadata [Address matching] in Window 2000 Metadata Shapefiles Metadata Landsat images Metadata Metadata becomes the source of knowledge bases Operation: Buffer (ARC command, UNIX platform) Input data: roads (shapefiles) Output data: road-buf (coverage) Variable: 200 feet (map unit:meter convert to meters) convert to coverage
Agent (decision maker) Decision Maker Events Actions Agent (Information Finder) Agent (Information Interpreter) Agent Collaboration Event: If the local disk is full, find another network disk. Agent Collaboration: Info. Finder --> search logical volumes Interpreter --> convert data format to destined environment Action: Save [New disk-drive]: [Data-object]
Agent Mobility Machine-A Stationary Agent-01 Machine-B Stationary Agent-05 Remote Procedure Call Machine-C Mobile Agent-03 Machine-D Mobile Agent-06 Mobile Agent-03 Copy (HTTP) a) Stationary Agent b) Mobile Agent
Advantages of a Mobile Agent Reduce network load Upload the agents to remote GIS databases Overcoming network latency Real-time response, agents on the remote site Protocol encapsulation Agent carries “codes” and “messages” Execute asynchronously and automatically More stable in fragile network connections Dynamically adoption Agent senses the execution environment and reacts autonomously to change
Problems of Mobile Agents Security (Mobile Agents as “Virus”) Implementation (Cross platforms/technologies) Size and Diversity (Small programs, more functions) Protocol Development (Agent communication) Levels of Control (Behavior, location)
Security Model for Agents Security Treats: Disclosure of information (interception) Denial of service (DOS) Corruption of information Attack Targets: Agents Agent Containers Countermeasures: Sandboxing (software-based fault isolation, Java) Digital Signature (signed code to confirm the authenticity of an object, its origin, and its integrity) Travel Histories (maintain an authenticatable record of the prior platforms visited by an agent. Others...
Geodata Objects Colorado Roads (Vector) Metadata Colorado DEM (Raster) Metadata Geodata Agents Component Agents Machine Agents Client machine Server machine GIS components Map Display Component Metadata Spatial Analysis Component Metadata AgentFunctionality
Generalization Hierarchy of GeoAgents GeoAgent Machine Agent Component Agent Geodata Agent UML notations Stationary GeoAgent Mobile GeoAgent UML: Unified Modeling Language
GIServices Workstation (a GIS node) Agent Container GIS Component Container GeoData Object Container Machine Agent Hardware Profiles: CPU, OS, CRT, printer, scanner Component Agent GeoData Agent M M M M M : metadata M M Implementation: GIService Node
Agent Container Platform Java (Sun Microsystems): Java Virtual Machine (VM), Java applets / servlets. CORBA (OMG): Common Object Request Broker Architecture, UNIX-based, IIOP (Internet Inter-ORB Protocol), DCOM / COM+ (Microsoft): Windows 2000/NT, ActiveX container, COM-based model XML (W3C): (Extensible Markup Language) lightweight agent systems, scripting language, open-ended, metadata- enhanced.
Agent Communication Language (ACL) / Protocol (ACP) KQML (Knowledge Query and Manipulation Language) (Finin and Weber, 1993) ACL (Agent Communication Language) specification FIPA (Foundation for Intelligent Physical Agents) 1997 IIOP (Internet Inter-ORB Protocol), and CORBA’s Mobile Agent Facility Specification 1.0 OMG, (1999) XML-based scripting language (Lange, Hill, & Oshima, 2000)
A GIS spatial analyst, Dick, wants to locate a new Wal-Mart store in Boulder. He needs to obtain related map information and perform a GIS overlay analysis for this task. Data conversion Shape fitting analysis Overlay analysis Dick : GIS analyst Ron: GIS software vendor Buffer analysis Matt: GIS programmer Scenario: Spatial Analysis Procedure-A
Dick’s GIS node The Planning Department CODOT The Tax Assessor Department The Policy Department Agent Land use Flood zone Roads Land value and parcels Crime Risk Index Procedure-A: (from Dick’s requests] Buffer 200m from [Road] to create [Buffer zone] Overlay [Land use] [Flood zone], [Buffer zone], and [Land parcels], [Crime Risk Index]. Agent The Roaming of Agent The Roaming of Agent (Carry a [Procedure-A]) Procedure-A: Agent Procedure-A: Agent Procedure-A: Agent Procedure-A:
3. Agent travels to the agent container in CODOT. 4. Executes the first line of procedure-A. 5. Generates a new data called [Buffer zone] and puts the new data in the CODOT data container. Dick’s GIS node CODOT Procedure-A: (from Dick’s request) Buffer 200m from [Road] to create [Buffer zone] Overlay [Land use] [Flood zone], [Buffer zone], and [Land parcels], [Crime Risk Index]. Agent First Stage Data container 1. Agents search the location of [Roads], [Buffer operation], etc. 2. Find out the location of data and component. ([Roads] URL: ([Buffer]: URL: Agent container Component container Roads Buffer zone Agent Procedure-A Buffer
Dick’s GIS node CODOT Procedure-A: (from Dick’s request) Buffer 200m from [Road] to create [Buffer zone] Overlay [Land use] [Flood zone], [Buffer zone], and [Land parcels], [Crime Risk Index]. Agent Second Stage Data container Agent container Component container Roads Buffer zone Agent Procedure-A Buffer The Planning Department Agent container Buffer zone Agent Procedure-A Overlay Land use Flood zone Over-1
Procedure-A: (from Dick’s request) Buffer 200m from [Road] to create [Buffer zone] Overlay [Land use] [Flood zone], [Buffer zone], and [Land parcels], [Crime Risk Index]. Third Stage The Planning Department Agent container Buffer zone Agent Procedure-A Overlay Land use Flood zone Over-1 The Tax Assessor Department Agent container Agent Procedure-A Overlay Over-1 Land parcels Over-2
Final Stage The Police Department Agent container Agent Procedure-A Overlay Crime risk index Final The Tax Assessor Department Agent container Agent Procedure-A Overlay Over-1 Land parcels Over-2 Dick’s GIS node Data container Component container Agent container Agent Procedure-A (complete) Final
Deploy the Architecture GIS node: Matt-GIS. com Shape fitting analysis : GIS components GIS node: Dick.colorado.edu GIS node: Boulder-Planning.gov GIS node: Boulder-Police.gov Crime Rate records Overlay analysis component Buffering component Machine agent Component agent Geodata agent : Data object 3D shading and ray tracing Statistic analysis Shape fitting analysis Land use Roads Flood area Parcel rec. Land use Roads Auto. Data Conversion Crime rate
I n t e r n e t Local Network Intranet GIS Node GIS Node: Ming GIS Node: Mike GIS Node: Eva GIS Node: Tina GIS Node A GIS Task GIS Node: SDSU GIS Node: UCSB GIS Node: SUNY GIS Node: FGDC Collaboration among GIS nodes
Traditional Solution Agent-based Solution Efficient use of computing resources Automated data gathering / conversions Customizable GIS modulars and functions Sharing GIS data / models / knowledge Limited GIS computing power Convert data sets manually / individually Vendor-based GIS software Difficult to search / exchange geospatial informationSUMMARY
FUTURE WORK Implementation Java, XML, XHTML, KQML, ACL Hierarchic GeoAgents Individual, Groups, Global Society Intelligent GeoAgents ? Knowledge engines, fuzzy logic, neural networks
Mike ’ s Input: GIS component: [Display] .Required Component Required data: [Colorado Roads] .Required Data (Machine agent-A) init { If.RequiredData found in [Data container] Then set.OperationData =.RequiredData ElseIf Search(.RequiredData) = Null Then print “ Data can not be found. ” ; exit Else set.OperationData = Search(.RequiredData).CopyToDataContainer End If If.RequiredComponent found in [Component container] Then set.OperationComponent =.RequiredComponent Elseif Search(.RequiredComponent) = Null Then print “ GIS component can not be found. ” ; exit Else set.OperationComponent = Search(.RequiredComponent).CopyToComponentContainer End If SendToComponentAgent(.OperationData,.OperationComponent) } Coding Example: Machine agents search for requested data object