Jadex 0.941

jadex.tutorial
Agent TranslationE3

jadex.tutorial.TranslationE3
  • jadex.tutorial.TranslationD2

  • agent TranslationE3
    contains TranslationD2

    TranslationAgent: Lesson E3.

    Using a maintain goal.

    Explanation

    The agent defines a maintain goal, that monitors the number of entries in the dictionary and reduces the number of entries whenever the maximum is exceeded.


    Belief Summary
    beliefsetref egwords
               This beliefset contains the english-german dictionary as facts.
    belief int maxstorage
               This belief specifies the maximum number of entries in the english-german dictionary.
     
    Goal Summary
    maintaingoal keepstorage()
               Goal type to keep the number of entries in the dictionary below some threshold given by the belief maxstorage.
     
    Plan Summary
    standard plan remegword()
               Passive plan for removing a word pair from the dictionary.
     
    Initial State Summary
    default initial state  default
              
     

    Belief Detail

    maxstorage

    belief int maxstorage
    This belief specifies the maximum number of entries in the english-german dictionary.

    Default fact:
    8

    egwords

    beliefsetref  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")
    new Tuple("puppy", "Hund")
    new Tuple("hound", "Hund")
    new Tuple("jack", "Katze")
    new Tuple("crummie", "Kuh")
    Referenced from:
    egwords in capability TranslationD2
    Goal Detail

    keepstorage

    maintaingoal keepstorage()
    Goal type to keep the number of entries in the dictionary below some threshold given by the belief maxstorage.

    BDI flags:
    retry: true
    retry delay: 0
    exclude: when_failed
    random selection: false
    meta-level reasoning: true
    post to all: false
    recur: false
    recur delay: 0
    Maintain Condition:
    $beliefbase.egwords.length <= $beliefbase.maxstorage
    Target Condition:
    $beliefbase.egwords.length <= $beliefbase.maxstorage
    Plan Detail

    remegword

    standard plan remegword()
    Passive plan for removing a word pair from the dictionary. Reacts on the keep storage goal.

    Plan body:
    new RemoveWordPlanE3("egwords")
    Goal Trigger:
    keepstorage
    Initial State Detail

    default

    default initial state default
    Initial Goals:
    keepstorage

    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.