Software Agents and Aglets

Slides:



Advertisements
Similar presentations
Números.
Advertisements

Symantec 2010 Windows 7 Migration Global Results.
Trend for Precision Soil Testing % Zone or Grid Samples Tested compared to Total Samples.
AGVISE Laboratories %Zone or Grid Samples – Northwood laboratory
Trend for Precision Soil Testing % Zone or Grid Samples Tested compared to Total Samples.
PDAs Accept Context-Free Languages
TK1924 Program Design & Problem Solving Session 2011/2012
ALAK ROY. Assistant Professor Dept. of CSE NIT Agartala
Process Description and Control
EuroCondens SGB E.
Worksheets.
Reinforcement Learning
Distributed Systems Architectures
Copyright © 2003 Pearson Education, Inc. Slide 1.
Sequential Logic Design
Copyright © 2013 Elsevier Inc. All rights reserved.
Addition and Subtraction Equations
18 Copyright © 2005, Oracle. All rights reserved. Distributing Modular Applications: Introduction to Web Services.
Add Governors Discretionary (1G) Grants Chapter 6.
CALENDAR.
CHAPTER 18 The Ankle and Lower Leg
1 Chapter 12 File Management Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
Institut für Softwarewissenschaft - Universität WienP.Brezany 1 Multi-Agent Systems A Modern Approach to Distributed Artificial Intelligence Peter Brezany.
The 5S numbers game..
突破信息检索壁垒 -SciFinder Scholar 介绍
© Tally Solutions Pvt. Ltd. All Rights Reserved Shoper 9 License Management December 09.
A Fractional Order (Proportional and Derivative) Motion Controller Design for A Class of Second-order Systems Center for Self-Organizing Intelligent.
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Welcome. © 2008 ADP, Inc. 2 Overview A Look at the Web Site Question and Answer Session Agenda.
The basics for simulations
Configuration management
Employee & Manager Self Service Overview
Figure 3–1 Standard logic symbols for the inverter (ANSI/IEEE Std
Comparison Study of Three Mobile Agent Systems Aglets, Grasshopper and Voyager Qunhua Zhao, Hua Wang and Yi Zhang Department of Computer Science and Engineering.
Mobile Agents Mouse House Creative Technologies Mike OBrien.
TCCI Barometer March “Establishing a reliable tool for monitoring the financial, business and social activity in the Prefecture of Thessaloniki”
Operating Systems Operating Systems - Winter 2012 Chapter 2 - Processes Vrije Universiteit Amsterdam.
Dynamic Access Control the file server, reimagined Presented by Mark on twitter 1 contents copyright 2013 Mark Minasi.
TCCI Barometer March “Establishing a reliable tool for monitoring the financial, business and social activity in the Prefecture of Thessaloniki”
Copyright © [2002]. Roger L. Costello. All Rights Reserved. 1 XML Schemas Reference Manual Roger L. Costello XML Technologies Course.
Progressive Aerobic Cardiovascular Endurance Run
CSE 6007 Mobile Ad Hoc Wireless Networks
MaK_Full ahead loaded 1 Alarm Page Directory (F11)
Facebook Pages 101: Your Organization’s Foothold on the Social Web A Volunteer Leader Webinar Sponsored by CACO December 1, 2010 Andrew Gossen, Senior.
1 Processes and Threads Chapter Processes 2.2 Threads 2.3 Interprocess communication 2.4 Classical IPC problems 2.5 Scheduling.
TCCI Barometer September “Establishing a reliable tool for monitoring the financial, business and social activity in the Prefecture of Thessaloniki”
Executional Architecture
When you see… Find the zeros You think….
2011 WINNISQUAM COMMUNITY SURVEY YOUTH RISK BEHAVIOR GRADES 9-12 STUDENTS=1021.
Before Between After.
2011 FRANKLIN COMMUNITY SURVEY YOUTH RISK BEHAVIOR GRADES 9-12 STUDENTS=332.
ST/PRM3-EU | | © Robert Bosch GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying.
1 Non Deterministic Automata. 2 Alphabet = Nondeterministic Finite Accepter (NFA)
Figure 10–1 A 64-cell memory array organized in three different ways.
Types of selection structures
Static Equilibrium; Elasticity and Fracture
Resistência dos Materiais, 5ª ed.
Lial/Hungerford/Holcomb/Mullins: Mathematics with Applications 11e Finite Mathematics with Applications 11e Copyright ©2015 Pearson Education, Inc. All.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 13 Pointers and Linked Lists.
 2003 Prentice Hall, Inc. All rights reserved. 1 Chapter 13 - Exception Handling Outline 13.1 Introduction 13.2 Exception-Handling Overview 13.3 Other.
WARNING This CD is protected by Copyright Laws. FOR HOME USE ONLY. Unauthorised copying, adaptation, rental, lending, distribution, extraction, charging.
A Data Warehouse Mining Tool Stephen Turner Chris Frala
1 DIGITAL INTERACTIVE MEDIA Wednesday, October 28, 2009.
1 Non Deterministic Automata. 2 Alphabet = Nondeterministic Finite Accepter (NFA)
Introduction Embedded Universal Tools and Online Features 2.
Schutzvermerk nach DIN 34 beachten 05/04/15 Seite 1 Training EPAM and CANopen Basic Solution: Password * * Level 1 Level 2 * Level 3 Password2 IP-Adr.
MOBILE AGENTS What is a software agent ? Definition of an Agent (End-User point of view): An agent is a program that assists people and acts on their behalf.
Aglets Based on Mobile Agents with Java: The Aglet API by Danny B. Lange and Mitsuru Oshima.
Mobile Agents Technology - Programming with Aglet
Presentation transcript:

Software Agents and Aglets Kimble Cheron, Professor Steven A. Demurjian, and Mitch Saba Computer Science & Engineering Department The University of Connecticut 191 Auditorium Road, Box U-155 Storrs, CT 06269-3155 steve@engr.uconn.edu http://www.engr.uconn.edu/~steve (860) 486 - 4818

Overview of Presentation Introduction Reasons for Agent Creation Defining Agents Researchers Involved in Agent Development Technical Overview Basic Agent Anatomy Agent Implementation (Aglets) Aglet Environment Aglet Methods Distributed Computing Role of Agents in Distributed Computing Future Evolution of Intelligent Agent Entities Conclusions and Future Research

Introduction Age of Technology Personal PC as Common as Television Personal Tasks Performed Using Computers Postal Operations (Electronic Mail) Banking and Financial Operations (Electronic Banking) Shopping News Retrieval Stock Information Updates Communication Others

Reasons for Agent Creation Majority of Above Tasks Executed Based on Direct Manipulation Nothing Occurs Unless Mouse, Keypad, Touchpad is Used Event-Oriented Interactions with End-Users End-Users Majority are Computer Illiterate Depend on Software to Perform Tasks Not Limited to Personal Computers, Embedded Systems Require Operators The Software Agent is the Key to Providing a Delegated Approach to Direct Manipulation

Reasons for Agent Creation Potential Reduction of Network Load Movement of Code to Remote Location Voluminous Data Remains Locally Resident Addressing Network Latency Issues Communication of Decision “Instantaneous” and “Simultaneously” Real-Time Notification Issue: Eliminate Delays Encapsulate Protocols Change Protocol, Change Agent Reactive to Evolution Asynchronous, Autonomous, and Heterogeneous Nature of Today’s Computing Platforms Dynamically Reactive to Change Potential for Fault-Tolerance and Robustness

Defining Agents Agent Implementation Personal Assistance Networks Databases Operating Systems Other Equipment (Medical Equipment) Agent Functions Find and Filter Information Customize Views of Information Automate Work Delegate Work Back to Computer

Perspectives for Definition Two Perspectives for Defining Agent User System User Perspective of an Agent A Software Agent is the Broker for the User Program that Allow User’s to Delegate Work to Them Perform Work for User as Directed System Perspective of an Agent An Agent is a Software Object that is Situated Within a Working Environment and Possesses the Mandatory Agent Properties

Agent Properties Mandatory Properties (Can Be Classifications) Reactive: Senses Changes in the Environment and Acts According to Those Changes Autonomous: Autonomously Control Own State/Behavior Has Control Over its Own Actions Goal-driven: Proactive to Specific User Goals Temporarily Continuous: Constantly Executing in Runtime Environment

Agent Classification Communicative: Communicate with Other Agents, Systems, and People Learning: An Agent Learns Based on Prior Experience or Behavior Mobile: Able to Transport Itself from One System to Another Flexible: Actions Occur on the Fly, Not Scripted Character: An Agent Has Personality and an Emotional State

Stationary vs. Mobile Agents Stationary Agent: Limited to Single Node Definition of Mobile Agent An Application Capable of Migrating Across Network to Accomplish Required Tasks Mobile Agents are Being Used for Diverse Technologies Mentioned in Introduction Slide Agents are Able to Interact with Objects in a Different System Retrieving Stock Quotes From the Internet on a Real Time Basis Implementing Push and Pull Paradigms Electronic Marketplace and Commerce Etc...

A Mobile Agent Travels Computer to Computer Network Agent Computer

Researchers Involved in Agent Development Known Groups and People Responsible Government Agencies Rock Island Army Arsenal Academic Institutions Carnegie Melon University Massachusetts Institute of Technology Stanford University University of Maryland Baltimore County Computer Industry Companies IBM Microsoft

Technical Overview Basic Agent Anatomy An Agent is an Object Which Has Properties Similar to Object Oriented Classes The Agent’s Attributes are Similar to Instance Variables Assist the Agent in Traveling, Communication, and Recognition Each Agent (Stationary/Mobile) has Five Properties State Implementation Interface Identifier Principals

Agent Properties Principals Interface Implementation State Identifier

Properties: State Definition (Analogous to Activation Record) Implementation Interface Identifier Principals Definition (Analogous to Activation Record) Contains All Contents and Values of the Agent’s Runtime State and Object State Agent Traveling State Contains All the Information Required to Resume Execution After Traveling Language Dependencies Implementation Language Determines If an Agent Only Uses its Instance Variables to Resume Execution Saving the Execution State at Runtime is Not Java Compliant Java Agents Require the Object State to Resume Execution

Properties: Implementation State Implementation Interface Identifier Principals Definition The Code Used to Execute an Agent on Any Location (Location Independent) Agent Traveling An Agent Can Travel With its Code Code on Demand An Agent Can Retrieve its Code After Reaching its Destination Language Dependencies A Common Language Must Be Used To Allow Agent to Travel and Execute on a Different Host Usually a Platform Independent Scripting Language is Used for Implementation

Properties: Interface State Implementation Interface Identifier Principals Definition Entity Used for Agent-to-Agent Communication or Agent-to-System Communication Two Styles of Communication Interfaces Allows Others Access to an Agent’s Methods Messaging Interface Allows Agents to Use a Language for Communication Messaging Interface Language Knowledge Query and Manipulation Language (KQML) Provides Point to Point Messaging Between Agents

Properties: Identifier State Implementation Interface Identifier Principals Definition Required Entity Used for Recognition and Locating Traveling Agents Each Agent Has its Own Unique Identifier An Identifier is Globally Unique and Immutable Combination of Principals’ Identities and a Serial Number Identifier Functions Used for Directory Services To Refer to a Specific Agent Instance

Properties: Principals State Implementation Interface Identifier Principals Definition Entity Used by the System to Authenticate Access to an Agent Two Main Principals Manufacturer (Developer of Agent) The Manufacturer is the Principal Responsible for Creating the Agent Owner (User or Agent) Responsible for the Legal and Moral Way in Which the Agent Will Behave (Behavior)

Agent Environment Place Basic Environment in Which an Agent Executes Provides the Operating System for the Agent Cannot Execute Agents Conceptually Similar to Runtime Environment, Virtual Memory Management, Activation Rcds. Construction of a Place: Four Concepts Engine Resources Location Principals

Engine Engine Resources Location Principals Description Supplies the Energy to the Place and the Agent to Function Provides a Link for Places and Agents to Networks and Other Resources Provided by a Host Hierarchical Structure of the Engine Host, Engines, Places, and Agents A Host May Hold Many Engines Engines Can Hold Many Places Places May House Many Agents Places are Given Names Because an Engine May House Several Places

The Agent Model Pyramid Host Engines E Places P P P A Aglets

Resources Description Services Provided by the Host Engine Resources Location Principals Description Services Provided by the Host Networks Processors and Memory Disk Databases Other Hardware and Software Services Controlled Access to Resources Provided to the Agent by the Engine and Place

Location Description Address of the Executing Agent Engine Resources Location Principals Description Address of the Executing Agent Construction of Location: Combination of The Name of a Place in Which It Executes The Network Address of the Engine in Which the Place Resides Typical Written Location The Port of the Engine With a Place Name Attribute and an Internet Protocol (IP) Address

Principals Two Main Principals Manufacturer Place Master Engine Resources Location Principals Two Main Principals Manufacturer Place Master Author (Provider) of the Place Responsible for the Operation of the Place Responsible for the Creation of the Place Implementation

Place and Engine Agents Place Engine Resources Host

Agent Behavior Three Agent Events Creation and Disposal Transfer Communication Creation Occurs in a Place Performed by an Agent Residing in the Same Place Performed by an Agent or Non-agent Outside of the Place

Agent Creation Three Steps Instantiation and Identifier Assignment Initialization Autonomous Execution Instantiation and Identifier Assignment Step Creates the Object and Executable Similar to the Constructor of an Object, the Class Specifies the Interface and Implementation of the Agent A Place Will Assign the Agent its Identifier. Initializes using Arguments Provided by Creator

Agent Creation Completion Guarantees the Agent Has Been Correctly Installed in the Place Autonomous Execution The Agent Starts Execution After Installation Executes Independently of Other Agents in the Place Disposal Performed in a Place Accomplished by an Agent Itself, a System, Another Agent in the Place, or an Agent or Non-agent Outside of the Place

Agent Disposal Reasons for Disposal Lifetime Has Expired Security Rules Have Been Violated Not in Use System is Going Offline (Shutdown) Disposal Steps An Agent is Allowed to Complete All Current Tasks Execution of the Agent is Suspended by the Place

Agent Travel Definition Agent is Dispatched From its Origin and Received by the Specified Destination Performed by an Agent Itself, Another Agent in the Same Place, or an Agent or Non-agent System Outside of the Place Origin Place and Destination Manage Travel Travel Management Origin Place Contacts Destination Place Return Failure Indication to Agent If No Contact Destination Place Response Fulfill Travel Request Return Failure Indication to Origin

Agent Transfer Sender Receiver Suspend Execution Resume Execution Serialize Agent Deserialize Agent Encode Data Decode Data Transfer Data Receive Data Network

Dispatching an Agent Process Destination Must Be Known Prior to Departure Agent Notifies the Destination Agent System It Would Like to Depart An API is Used for Communication for Departure Destination Agent System (Engine) Process Request for Departure Destination Agent System (Engine) Response Suspend the Agent Serialize the Agent’s Data Determine the Transport Protocol for the Agent Transport the Agent

Receiving an Agent Process Receiving Engine Determines to Accept or Reject and Agent From the Sending Host Sender Must Authenticate Itself to the Receiving Engine Receiving Engine Tasks Receive the Agent Decode its Data Information Deserialize the Agent Sets New Instantiation for the Agent Resume Agent Execution

Agent Class Transfer Three Methods: Dependent upon the Location of the Class Class at Destination Class at Origin Code-on-Demand Contained in the Engine’s Class Cache or the Local File System No Need to Transfer Class Transferred Agent Must Contain the Full Class Name and Discriminator May Have Information that Describes the Location of the Class Definition

Agent Class Transfer Methods Class at Origin Transported With the Agent’s State to the Destination Engine State May Transferred More Than Once Can Lead to Increased Network Traffic and Wasted Network Bandwidth Code-on-Demand Class is Made Available by a Server Destination Engine Receives Class on a Code-on-Demand Basis Destination Address Must Perform an Additional Network Connection Agent Can Carry Classes on Transfer or by a Per-Request Basis

Agent Class Transfer Server (c) Class at Server Class Code Origin Destination Agent Agent Class Code Class Code (b) Class at Origin (a) Class at destination What Other Information Must be Available at Destination?

Communication Properties of Messaging Communication Point-to-Point Messaging One-to-One Type Messaging Broadcast Messaging One-to-Many Type Messaging, Useful in Multi-agent Systems Intra-Place Communication Communication With an Agent in the Same Place Inter-Place and Inter-Engine Communication With an Agent in a Different Place Agents Can Send Messages to Other Agents Agents Can Invoke the Methods of Other Agents If Authorized

Interagent Communication Three Inter-Agent Communication Schemes Now-Type Messaging Future-Type Messaging One-way-Type Messaging Intra-Place, Inter-Place, and Inter-Engine Communication Agent Messaging Paradigms Peer-to-Peer: Dedicated Communication Broadcast: Multi-Agent Environment

Now-Type Messaging Most Popular Most Commonly Used Synchronous Blocks Further Execution Until Receiver Has Handled and Acknowledged the Message Send and Wait Paradigm for Message Passing Classic and Easy to Model Approach Sender Receiver

Future-Type Messaging Asynchronous No Blocking of Current Execution Sender Has a Future (Handle) Used for Obtaining Result Flexible Sender does not have to Wait for Receiver’s Response Useful for Multi-Agent Communication Sender Receiver

One-Way-Type Messaging Asynchronous No Blocking of Current Execution Useful for Message Sending Agent that does not Expect Replies from Message Receiving Agent Sender Does Not Retain a Handle Receiver Does Not Acknowledge Message Termed Fire-and-Forget: May be Non-Reliable Sender Receiver

Agent Implementation (Aglets) Origins Named for the Combination of the Two Terms of Agent and Applet Definitions Applet: A “Lightweight Application” “Aglet”: A “Lightweight Agent” Differences Aglet Carries It’s State Movement From One Host to the Next Applet Only Carries It’s Class Files Along Movement Based on a Server Client Network

Implementation Language Java Was Chosen Due to the Benefits its Provides Towards Agent Construction Movement to Java Worldwide Benefits of Java Platform Independence Secure Execution Dynamic Class Loading Multithread Programming Object Serialization Reflection

Agent Characteristics of Java: Benefits Platform Independent Allows an Agent to Travel and Execute on Any Type of Computer Secure Execution Eliminates the Option of Programs Accessing Private Objects that They Do Not Have Authorization to Use The Environment Makes its Safe to Host an Unknown Agent Dynamic Class Loading Allows Agents to Execute Independently Agents Do Not Have to Be Created During the Main Program Execution

Agent Characteristics of Java: Benefits Multithread Programming Agents Execute Independently of other Agents Agents can Communicate with Other Agents Object Serialization During Transportation the Agent’s Data (and Code) is Serialized and Then Deserialize Reflection Assists Agents in Finding Out Information About Other Agents and Themselves Types of Object Information Methods, Constructors of Loaded Classes, and Fields Meta-Data on Active Classes that can be Queried

Agent Characteristics of Java: Drawbacks Inadequate Support for Resource Control Denial of Service Agent Will Loop and Waste Processor Cycles or Memory Resources No Protection of References Objects are Allowed Access to the Public Methods of a Java Object A Proxy Provides Protection of References and Location Transparency Object Inserted Between Caller and Callee

Drawbacks No Object Ownership of References An Agent’s Execution Thread May Be Deleted An Agent Object Can Not Be Voided No Support for Preservation and Resumption of Execution State Java Does Not Allow Retrieval of the Full Execution State of an Object Agent Relies on Internal Attribute Values and External Events to Direct its Behavior

Aglet Environment IBM Aglets Workbench Assists in Bringing Mobile Agents to Life Implemented in Java IBM Aglets Workbench Operation Based on the Java Programming Language System Aglets Framework Provides the Mobile-agent-specific Components of the Workbench Introduces the Notion of an Aglet A Mobile (Agile) Agent Written in Java and Named After its Framework Base Class

Aglet API Four Basic Elements Aglet Proxy Context Identifier Mobile Agent that Moves Across the Network Responds to Messages Runs on its Own Thread of Execution Shield that Protects the Aglet From Direct Access to its Methods Can Have Remote Access to the Aglet (Hides Aglet’s Real Location)

Aglet API: Elements Context Basically the Same As a Place Houses the Engines Engines House the Aglets Addressed in the Same Manner As a Place Identifier Element of the Aglet Each Aglet Has It’s Own Unique Identifier Required Entity Used for Recognition and Locating Traveling Agents

Relationship between Aglet and Proxy Proxy Represents the Aglet Shields Public Methods for Potential Misuse Can Hide the “Actual” Location of Aglet Proxy and Aglet on Different Computing Nodes Interaction Clients Proxy Aglet

Relationship between Host, Server Process(Engine), and Contexts Network

Aglet: Operations Six Basic Operations Creation Cloning Dispatching Retraction Activation and Deactivation Disposal Initializes a New Aglet Assigns Aglet an Identifier

Basic Operations Cloning Produce an Identical Copy of an Aglet (itself) Differences Between Clone and Original Aglet Identifier Place of Execution Dispatching Aglet is Transported (Pushed) From One Context to Another Retraction Concept that Returns an Aglet Back to its Original Context Original Context Pulls Back the Aglet From the Current Context

Basic Operations Deactivation and Activation Deactivation Must Occur Before Activation Deactivation Halts the Execution of an Aglet Activation Starts Execution of an Aglet Activation Must Occur to Restore the Aglet Disposal Stops Execution of an Aglet Removes an Aglet From its Current Context Classification of Six Basic Aglet Operations Classified as the Life Cycle of an Aglet Observation of Six Basic Aglet Operations Context Functions Just Like a Place

Agent Life-Cycle Model Dispose Context A Context B Clone Dispatch Aglet Aglet Retract Create Deactivate Activate Class File Disk Storage

Aglet Methods Aglet Programming Model Similar to the Java Event Model Event Based Listeners Used to Perform Event Actions Three Event Model Listeners Clone Listener Mobility Listener Persistence Listener Actions Listen for the Event They are Named After Listeners Can Be Customized to Perform Specific Actions When the Listener Event Occurs

Relationship between Aglet and its Listeners Clone Events CloneListener Mobility Events MobilityListener Persistence Events PersistenceListener

Event Model Listeners Clone Listener Listens for Cloning Events Actions Can Be Customized to Occur Before, During, or After the Cloning Mobility Listener Listens for Mobility Events Actions Can Be Customized to Occur When an Aglet is About to Be Dispatched, Retracted, or Arrives in a New Context Persistence Listener Listens for Persistence Events Actions Can Be Customized to Occur When an Aglet is About to Be Deactivated or Has Been Activated

Aglet API: Classes and Interfaces Simple and Flexible Represents Lightweight Pragmatic Approach to Mobile Agents Java Classes Aglet Message Futurereply Agletid Agletproxy Java Interfaces Agletcontext

Aglet API: Classes Aglet Class Contains All Methods Needed to Perform the Basic Aglet Operations Basis for Building All Aglets Contains All the Elements of the Aglet Aglet Creation Create a Customized Aglet import com.ibm.aglet.*; public class MyFirstAglet extends Aglet{ //Put aglet’s methods here }

Aglet and Message Class Aglet Class Example: The Dispatch Method Dispatches an Aglet to a Remote Context The Method Call Contains the URL of the Remote Context dispatch(new URL(atp://remote.host.com/context”)); Message Class Communication of Aglets is Performed by Exchanging Message Objects Agletproxy Class is Responsible for Actually Sending and Receiving the Messages Message Creation Field ‘Type’ Set When Message Created Second Field of Message Constructor is Optional

Message Class Code or Message Class Example: The handleMessage Method Message myName = new Message(“my name”, “Lois”); or Message yourName = new Message(“Steve”); Message Class Example: The handleMessage Method Returns True if Message is Handled public boolean handleMessage(Message msg){ if(msg.sameKind(“hello”)){ doHello(); //respond to ‘hello’ message return true; //yes I handled message } else return false; //not handled message

AgletProxy and Future Reply Class Message Objects are Sent Using the Agletproxy Class Methods Object sendMessage(Message msg) FutureReply sendFutureMessage(Message msg) void sendOnewayMessage(Message msg) Code Example proxy.sendMessage(myName); String name = (String)proxy.sendMessage(yourName); FutureReply Class Evaluates Wether a Reply will Be Given to a Message An Aglet Can Perform Another Task While Waiting for the Reply

Future Reply Class Future Reply Objects are Retrieved Using the Agletproxy Class Method sendFutureMessage(msg) Code Example Sender of Message Can Perform Another Task (doPeriodicWork()) While Waiting for Reply FutureReply future = proxy.sendFutureMessage(msg); while (!future.isAvailable()){ doPeriodicWork(); } Object reply = future.getReply();

AgletID Class AgletID Class Represents the Identifier of the Aglet The Identifier is Unique to Each Aglet The Identifier Object Hides the Implementation Specific Representation of the Aglet Identity Code Example Identifier can be Retrieved from the Aglet and its Proxy AgletID aid = proxy.getAgletID(); Query the Context to Retrieve Aglet with Identity aid (must have the Identifier aid and Context) proxy = context.getAgletProxy(aid);

Aglet API: Interfaces Agletproxy Interface The Handle of the Aglet Provides the Method of Communication Between Aglets Aglet Handle Design Benefits Used by Another Aglet that is Attempting to Communicate With that Aglet Provides the Aglet With Protection From Non-authorized Access Can Provide a Remote Location for the Aglet

AgletProxy and AgletContext Retrieval and Setting Methods of Proxies Aglet Can Get its Own Proxy Aglet.getProxy(); Retrieve an Enumeration of Proxies AgletContext.getAgletProxies(); Get an Aglet Proxy for a Given Identifier text.getAgletProxy(); Place AgletProxy Object into Context Property AgletContext.setProperty(); Aglet Context Execution Environment for Aglets Provides Actual Entity of the Place Houses the Aglet Aglet is Created, Sleeps, & Dies in the Context

AgletContext Agletcontext Interface An Aglet Will Live in the Context Get Information About Environment Send Messages to Environment Maintaining and Managing Running Aglets in an Environment Where Host System is Secure Against Malicious Aglets Agletcontext Interface Methods Aglet Class can Gain Access to Current Context Context = Getagletcontext(); Aglet can Create New Aglets (Must Have Access to Context) Context.Createaglet(…);

AgletContext Retract (Pull) Remotely Located Aglets Into Current Context Context.Retractaglet(remotecontexturl, Agletid); Retrieve a List of Proxies of its Fellow Aglets in the Same Context Proxies = Context.Getagletproxies(); There are Numerous Methods for the Interfaces Listed Above is an Ala Carte Example of What the API Can Perform

AgletContext Aglet Example: Remote File Update Premise: Large Multiple Remote Files that Must be Updated by Word Replacement One Solution: Move Files to Central Server, Perform Update, and Move Files Back Another Solution: An Aglet that Updates Files by Replacing All Occurrences of One Specified Word in the Files With Another Specified Word Distributes the Load of Updates to Multiple Servers We’re Moving “Code” Rather Than Files

Multiple Aglets Updating Files in Parallel Host (Updating) Host F F F

Update File Aglet Import com.ibm.aglet.*; import com.ibm.aglet.event.*; import java.net.*; import java.io.*; public class UpdateFile extends Aglet{ URL destination = null; File dir = null; String from = null; String to = null; public void onCreation(Object args){ destination = (URL)((Object[])args)[0]; dir = (File)((Object[])args)[1]; from = (String)((Object[])args)[2]; to = (String)((Object[])args)[3]; addMobilityListener(){ new MobilityAdapter(){

Update File Aglet Public void onArrival(MobilityEvent e){ replace(args.file,args.from,args.to); dispose(); } } try{ dispatch(args.destination); }catch (Exception e){ System.out.println(“Failed to dispatch.”); void replace(File, file, String, from, Sting to){ //Open ‘file’ and replace ‘from’ with ‘to’

Distributed Computing Role of Agents in Distributed Computing Range From Smart Matter to Electronic Email Possible Areas in Distributed Computing Where Agents Would Be Useful Advertising Air-Traffic Control Business Process Re-engineering Command and Control Data Mining Digital Libraries Electronic Commerce Entertainment E-mail Filtering

Role of Agents: Areas of Interest Education Information Retrieval/Management News Retrieval Network Management Personal Digital Assistants (PDAS) Secure Brokering Smart Matter Smart Databases Scheduling/Diary Management Workflow Management Numerous Other Areas that are Being Researched and Developed

Role of Agents: Abilities Why Agents? Abilities are Productive for Increasing the Quality of Distributed Computing Agent Abilities Collect Data From Numerous Places Searching and Filtering Information Monitoring Target Information Dissemination Agent-to-Agent Negotiation Perform Parallel Computations Barter Enhance Telecommunication Network Services Controller for Smart Matter Enhance Entertainment

Data Collection, Search, and Monitor Collect Data From Numerous Places An Agent on a Network Could Retrieve Data From Numerous Computer Stations One Application that May Be Useful Would Be a Software Registration Agent Searching and Filtering Information Discards Useless Information Saves an Immense Amount of Time Monitoring Monitor Certain Information Specified by User Retrieve Information Specified by User Requests

Real Time, Communication, Computation, and Bartering Target Information Dissemination Real Time Information Being Retrieved News, Stock Quotes, Advertisements, and Software Updates for Venders Information Specified by User Negotiate Between One Another (Agent-to-agent) Agents Communicate With Other Agents Perform Parallel Computations Agents Communicate With One Another Agents Share Information Barter Agents Assume the Place of the User Agent Negotiates the Deal

Telecommunications, Controller, and Entertainment Enhance Telecommunication Network Services Store Information of Services Provide User With Authorized Services Controller for Smart Matter Monitor Equipment Inform User of State of Equipment Enhance Entertainment Agent-to-Agent Communication Between Players User Programmed Strategic Agent The Information Above is Not Conclusive of All the Different Abilities of Mobile Agents (Endless)

Future Evolution of Intelligent Agent Entities Software Registration Agent Search and Filter Engines Monitor/Supply Info. on Real Time Basis Real Time Advertisement User Filter for Unwanted Information Real Time Work Environment Update Pleasure/business Travel Agent Parallel Processing Network Service Administrator Monitor Physical Aspects of Embedded Systems Computer Gaming Pawn

Possibilities of Intelligent Agent Entities List of Future Evolution of Intelligent Agent Entities Inconclusive With the Advancement of Technology and a Need for a Faster Result, the Possibilities of Implementations of Mobile Agents are Vast Software Registration Agent Retrieve Registration Numbers for Certain Software Applications Data Would Be Used to Determine If a Computer System Had Unique Software Applications

Search, Filter, and Monitor Search and Filter Engines Email Applications: A User Could Filter Mail Based on a Certain Keyword and Not Receive Junk Mail Provide a More Extensive Search for a User Use Numerous Resources Return Specific Items for the User Search or Filter While the User is Performing Another Activity

Real Time Possibilities Monitor and Supply Information on Real Time Basis Provide News on a Real Time Basis Monitor News Based on Certain Information Retrieve the News that the User Requests Used for Stocks, Shopping (Checking If an Item Goes on Sale), and Even Weather The Amount of Possibilities is Endless Real Time Advertisement Advertisers Find a Way to Capitalize on Every New Software Invention Available Companies May Send Advertisements Along With the Information Being Received Like News

Real Time Possibilities User Filter for Unwanted Information User May Want to Filter Out Certain Information Being Received Agent Application Required to Filter Out Unwanted Advertisements Real Time Work Environment Update Schedule a Meeting Each of the Employee’s Agents Would Work Together to Schedule the Meeting for all Employees Update Team Members on New Developments of a Project Each Agent Would Update the Other Agents and Then Return the Information to the Worker

Work and Travel Pleasure/Business Travel Agent User’s Own Personal Shopper, Broker, or Travel Agent Electronic Commerce Shop/Haggle for a User on Any Type of Goods Search Criteria Given by a User Where to Go on Vacation and What Price for Airline Tickets What Stocks to Buy or Sell User Tells Agent to Make a Deal or Not Once Agent Retrieves All the Information. Agent Could then Finalize the Deal for the User Vacation Reservations are made, or Merchandise is Purchased

Network Services and Monitoring Network Service Administrator Agent Responsible for the User Configuration Agents Supplies the Host With User Privileges to Services Could Be Used for Cable Systems or Network Providers Monitor of Physical Aspects of Embedded Systems Monitor Temperature, Speed, or Other Physical Characteristics Inform User of a Malfunction Assume the Position of Smart Matter Provide a More Efficient Way to Monitor Physical Aspects of Embedded Systems

Computer Gaming Computer Gaming Pawn Perform All the Battling for the User User Could Program the Agent to Function Accordingly Strategic Moves Numerous Network Game Possibilities Gambling, Role Playing, and Strategy Games Agent-to-Agent Communication Used to Provide Enhance Online Gaming Possibilities

Conclusion and Future Conclusion Agent Concepts Barely Five Years Agents Seem to be the Up and Coming Technology of the Future The Possibilities and Capabilities of Agents are Endless The Mobile Agent Alone Has Not Been Covered in Research Extensively Aglets Have a Chance of Being the Building Blocks of Front Running Technology As Long As Java Proves to Be a Secure Language Standardization Issues Must be Addressed for Different Agent Systems to Interact!

Conclusion and Future Future Uses Everyday People are Finding New Uses for Agents Provide Users With Assistance Provide Users With More Free Time Agents Most Likely, Will Become an Everyday Occurrence in Applications Assist Users and Do Work on Their Behalf are Agents the Future of Today’s and Tomorrow’s Applications?

Future Research Another Facet of Agents is the Intelligent Agent Mobile Agents are Used for Intelligent Agents Researchers are Trying to Implement an Agent With Artificial Intelligence Current Developing Applications IBM is Developing a Memory Agent Application Used to Detect Breast Cancer IBM Claims the Agent Learns Based on Previous Input Uses a Learning Algorithm to Predict the Numbers for Detection

IBM Research Products Other IBM Products Using the Memory Agent Memoryagent Knowledge Capture Learns What People Know Builds a Knowledge Base Incrementally Operates While People Do Their Normal Jobs Memoryagent Virtual Consultation Allows People to Consult the Knowledge of Others Eliminates Need for Speaking to Them in Person

References [1]: Danny B. Lange and Mitsuru Oshima, “Programming and Deploying Java Mobile Agents with Aglets”, Addison Wesley Longman, Reading MA, 1998. [2]: http://www.javaworld.com/javaworld/jw-04-1997/jw-04-agents.html [3]: http://www.msci.memphis.edu/~franklin/AgentProg.html [4]: http://www.javaworld.com/javaworld/jw-04-1997/jw-04-hood.html [5]: http://www.trl.ibm.co.jp/aglets/JAAPI-whitepaper.html [6]: http://luckyspc.lboro.ac.uk/Docs/Papers/Mesela97.html [7]: http://www.javaworld.com/javaworld/jw-05-1997/jw-05-hood.html [8]: http://www.trl.ibm.co.jp/aglets/whitepaper.htm [9]: http://www.networking.ibm.com/iag/iaghome.html#new