Jadex 0.941

jadex.tutorial
Agent TranslationF1


agent TranslationF1

TranslationAgent: Lesson F1.

Using internal events to broadcast information.

Explanation

The agent creates a gui and visualizes issued translation requests.


Belief Summary
beliefset Tuple egwords
           This beliefset contains the english-german dictionary as facts.
 
Plan Summary
standard plan egtrans()
           Passive plan for translating words, when a request translation message is received.
standard plan gui()
           Initial plan for creating and updating the gui.
 
Event Summary
internalevent gui_update(String[] content)
           Specifies an internal event for updating the gui.
messageevent request_translation(String content-start, String performative)
           Specifies a translation request being all messages with performative request and start with a specific string "translate english_german".
 
Initial State Summary
default initial state  default
          
 

Belief Detail

egwords

beliefset Tuple egwords
This beliefset contains the english-german dictionary as facts.

Default facts:
new Tuple("milk", "Milch")
new Tuple("cow", "Kuh")
new Tuple("cat", "Katze")
new Tuple("dog", "Hund")
Plan Detail

egtrans

standard plan egtrans()
Passive plan for translating words, when a request translation message is received.

Plan body:
new EnglishGermanTranslationPlanF1()
Message event trigger:
request_translation

gui

standard plan gui()
Initial plan for creating and updating the gui.

Plan body:
new GUIPlanF1()
Event Detail

gui_update

internalevent gui_update(String[] content)
Specifies an internal event for updating the gui.

Parameters:
in parameter content
Event flags:
random selection: false
meta-level reasoning: true
post to all: true

request_translation

messageevent request_translation(String content-start, 
                                 String performative)
Specifies a translation request being all messages with performative request and start with a specific string "translate english_german".

Parameters:
fixed parameter content-start Default value:  "translate english_german"
fixed parameter performative Default value:  SFipa.REQUEST
Event flags:
direction: receive
message type: fipa
random selection: false
meta-level reasoning: true
post to all: false
Initial State Detail

default

default initial state default
Initial Plans:
gui

Jadex 0.941

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.