Class RemoteService.resource.ServiceInterpreter
All Packages Class Hierarchy This Package Previous Next Index
Class RemoteService.resource.ServiceInterpreter
java.lang.Object
|
+----JavaAgent.resource.Interpreter
|
+----RemoteService.resource.ServiceInterpreter
- public class ServiceInterpreter
- extends Interpreter
Subclass of Interpreter used for communication between ClientAgents,
ServiceAgents and ServiceBrokers. Facilitates the exchange of subclasses
of Service between ServiceAgents and ClientAgents, and the registration
of Services with the ServiceBroker.
Supports the following message types:
- (ask-available): Sent from a ClientAgent to the ServiceBroker
asking for a list of currently registered services.
- (tell-available :available <service name>
<service agent name> [<service name> <service agent name>
<URL for descrip file> <URL for gif file>]*)
: Sent from the ServiceBroker to the ClientAgent.
- (register-service :name <service name> :descrip
<URL for descrip file> :gif <URL for gif file>): Sent from a
ServiceAgent to the ServiceBroker.
- (unregister-service :name <service name>): Sent from a
ServiceAgent to the
ServiceBroker and ClientAgents and from the ServiceBroker to ClientAgents.
- (request-service :name <service name>): Sent from a
ClientAgent to a ServiceAgent.
- (tell-service :name <service name> :location <class name>
<class URL>): Sent from a
ServiceAgent to a ClientAgent, provides the
class name and URL for a subclass of Service.
- (add-service :name <service name> :class <class name>):
Sent from the init_file to a ServiceAgent. It is assumed that the
class file, description file and gif file are all in shared classes and
have the names <service name>.descrip and <service name>.gif.
- (update-service :name <service name> :location <class name>
<URL>): Sent from a ServiceAgent to a ClientAgent when the
implementation of a service has changed. Not currently used.
Copyright (c) 1995, H. Robert Frost, Stanford University.
All rights reserved.
Copyright (c) 1996, H. Robert Frost, Enterprise Integration Technologies,
Inc. All rights reserved.
RESTRICTED RIGHTS LEGEND: Use, duplication or disclosure by the
Government is subject to restrictions as set forth in
subparagraph(c)(1)(ii) of the Rights in Technical Data and Computer
Software clause at DFARS 252.227-7013 and in similar clauses in the
FAR and NASA FAR supplement.
This software is bound by the terms and conditions listed in the
attached LICENSE file.
-
ServiceInterpreter()
-
-
interpretLanguage(KQMLmessage, Agent, Language)
- Handles a received message which references the "service"
Interpreter.
ServiceInterpreter
public ServiceInterpreter()
interpretLanguage
protected void interpretLanguage(KQMLmessage message,
Agent receiver,
Language language) throws InterpretationException
- Handles a received message which references the "service"
Interpreter.
- Parameters:
- message - Message which needs to be interpreted.
- receiver - Agent who received the message.
- language - Instance of Language which represents the message
contents.
- Overrides:
- interpretLanguage in class Interpreter
All Packages Class Hierarchy This Package Previous Next Index