Jadex 0.941

jadex.tutorial
Agent UserF4

jadex.tutorial.UserF4
  • jadex.adapter.standalone.planlib.DF_standalone

  • agent UserF4
    contains jadex.adapter.standalone.planlib.DF_standalone

    TranslationAgent: Lesson F4.

    Establishing a multi-agent scenario.

    Explanation

    This example shows how a multi-agent scenario can be set-up using the DF. The user agent offers a service for translating sentences. It issues translation requests for all contained words to a present translation agent which is searched by the DF.


    Goal Summary
    achievegoalref df_search
               Include df search goal type from dfcap.
    achievegoalref goal_request
               Include request goal type from dfcap.
     
    Plan Summary
    standard plan egtrans()
               Initial plan for translating sentences from English to German.
     
    Event Summary
    messageevent failure(String performative)
               The answer message after some error occurred.
    messageevent inform(String performative)
               The answer message after success.
    messageevent request_translatesentence(String content-start, String performative)
               Specifies a translation request being all messages with performative request and start with a specific string "translate_sentence english_german".
     
    Initial State Summary
    default initial state  default
              
     

    Goal Detail

    goal_request

    achievegoalref goal_request
    Include request goal type from dfcap.

    Parameters:
    parameterref content
    parameterref language
    parameterref ontology
    parameterref receiver
    parameterref result
    parameterref timeout
    Referenced from:
    goal_request in capability jadex.adapter.standalone.planlib.DF_standalone

    df_search

    achievegoalref df_search
    Include df search goal type from dfcap.

    Parameters:
    parameterref address
    parameterref constraints
    parameterref description
    parameterref df
    parameterref result
    Referenced from:
    df_search in capability jadex.adapter.standalone.planlib.DF_standalone
    Plan Detail

    egtrans

    standard plan egtrans()
    Initial plan for translating sentences from English to German. Does this by translating each word separately. Reacts on translate sentence requests.

    Plan body:
    new EnglishGermanTranslateSentencePlanF4()
    Event Detail

    request_translatesentence

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

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

    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
    Initial State Detail

    default

    default initial state default
    Initial Plans:
    egtrans

    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.