Jadex 0.96

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
    messageeventref failure
              
    messageeventref inform
               The answer message after success. - -> SFipa.INFORM
    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:
    Plan trigger:
    Message events:
    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
    post to all: false

    inform

    messageeventref inform
    The answer message after success. - -> SFipa.INFORM SFipa.FAILURE

    Parameters:
    parameterref action-class
    parameterref content
    parameterref content-class
    parameterref content-start
    parameterref conversation-id
    parameterref encoding
    parameterref in-reply-to
    parameterref language
    parameterref ontology
    parameterref performative
    parameterref protocol
    parameterref reply-by
    parameterref reply-to
    parameterref reply-with
    parameterref sender
    parameterset receivers
    Referenced from:
    inform in capability TranslationD2

    failure

    messageeventref failure
    Parameters:
    parameterref action-class
    parameterref content
    parameterref content-class
    parameterref content-start
    parameterref conversation-id
    parameterref encoding
    parameterref in-reply-to
    parameterref language
    parameterref ontology
    parameterref performative
    parameterref protocol
    parameterref reply-by
    parameterref reply-to
    parameterref reply-with
    parameterref sender
    parameterset receivers
    Referenced from:
    failure in capability TranslationD2

    Jadex 0.96

    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-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.