Class JavaAgent.resource.Interpreter
All Packages Class Hierarchy This Package Previous Next Index
Class JavaAgent.resource.Interpreter
java.lang.Object
|
+----JavaAgent.resource.Interpreter
- public class Interpreter
- extends Object
Abstract superclass of all interpreters which define the semantic binding for
message content. Each subclass of Interpreter must at a minimum implement a
method interpretMessage(), which takes an instance of object Language as
an argument.
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.
-
Interpreter()
- Creates a new instance of Interpreter.
-
interpretLanguage(KQMLmessage, Agent, Language)
- Interpret the Language instance, from the message, for the reciever
according to the present Interpreter.
-
interpretMessage(KQMLmessage, Agent)
- Interpret a given message according to the semantics of the
of the Interpreter.
-
isSuper(Class, String)
- Is the named class in the reflexive, transitive closure of the object's
superclasses?
Interpreter
public Interpreter()
- Creates a new instance of Interpreter.
interpretMessage
public void interpretMessage(KQMLmessage message,
Agent receiver) throws InterpretationException
- Interpret a given message according to the semantics of the
of the Interpreter. If the language type cannot be interpreted according to
the Interpreter a InterpretationException is thrown.
- Parameters:
- message - Message which needs to be interpreted.
- receiver - Agent who received the message.
interpretLanguage
protected void interpretLanguage(KQMLmessage message,
Agent receiver,
Language language) throws InterpretationException
- Interpret the Language instance, from the message, for the reciever
according to the present Interpreter.
- Parameters:
- message - Message which needs to be interpreted.
- receiver - Agent who received the message.
- language - Instance of Language which represents the message
contents.
isSuper
public static boolean isSuper(Class c,
String compared)
- Is the named class in the reflexive, transitive closure of the object's
superclasses?
- Parameters:
- c - Class being tested.
- compared - Name of which is being matched.
- Returns:
- boolean indicating superclass match.
All Packages Class Hierarchy This Package Previous Next Index