Jadex 0.941

jadex.tutorial
Agent TranslationD2

jadex.tutorial.TranslationD2
  • jadex.tutorial.TranslationD2

  • agent TranslationD2
    contains TranslationD2

    TranslationAgent: Lesson D2.

    Using an exported belief.

    Explanation

    The agent uses the exported dictionary to find sysnonyms for an English word.


    Belief Summary
    beliefsetref egwords
               Include a belief which is orininally defined in the translation capability.
     
    Plan Summary
    standard plan find_synonyms()
               Passive plan for finding synonyms in the dictionary.
     
    Event Summary
    messageevent failure(String performative)
               The answer message after some error occurred.
    messageevent inform(String performative)
               The answer message after success.
    messageevent request_findsynonyms(String content-start, String performative)
               Specifies a find synonyms request being all messages with performative request and start with a specific string "find_synonyms english".
     

    Belief Detail

    egwords

    beliefsetref  egwords
    Include a belief which is orininally defined in the translation capability.

    Default facts:
    new Tuple("milk", "Milch")
    new Tuple("cow", "Kuh")
    new Tuple("cat", "Katze")
    new Tuple("dog", "Hund")
    new Tuple("puppy", "Hund")
    new Tuple("hound", "Hund")
    new Tuple("jack", "Katze")
    new Tuple("crummie", "Kuh")
    Referenced from:
    egwords in capability TranslationD2
    Plan Detail

    find_synonyms

    standard plan find_synonyms()
    Passive plan for finding synonyms in the dictionary. It uses the locally defined belief set reference egwords.

    Plan body:
    new FindEnglishSynonymsPlanD2()
    Message event trigger:
    request_findsynonyms
    Event Detail

    request_findsynonyms

    messageevent request_findsynonyms(String content-start, 
                                      String performative)
    Specifies a find synonyms request being all messages with performative request and start with a specific string "find_synonyms english".

    Parameters:
    fixed parameter content-start Default value:  "find_synonyms english"
    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

    inform

    messageevent inform(String performative)
    The answer message after success.

    Parameters:
    fixed parameter performative Default value:  SFipa.INFORM
    Event flags:
    direction: send
    message type: fipa
    random selection: false
    meta-level reasoning: true
    post to all: false

    failure

    messageevent failure(String performative)
    The answer message after some error occurred.

    Parameters:
    fixed parameter performative Default value:  SFipa.FAILURE
    Event flags:
    direction: send
    message type: fipa
    random selection: false
    meta-level reasoning: true
    post to all: false

    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.