Jadex 0.96

jadex.testcases.goals
Agent GoalConditions

jadex.testcases.goals.GoalConditions
  • jadex.planlib.Test

  • agent GoalConditions
    contains jadex.planlib.Test


    Agent arguments: timeout
    timeout long
    , testcenter
    testcenter AgentIdentifier

    Test the creation, context, and drop conditions of goals.

    The goal condition plan successively sets the creation, context, and drop beliefs to true.

    The beliefs will trigger the corresponding conditions of the test goal:

    1. Initially there is no goal or plan.
    2. When the creation condition triggers, the goal will be created.
    3. When the context condition triggers, a plan will be started.
    4. When the drop condition triggers, the goal and corresponding plan will be removed.
    5. When the creation condition triggers again, a new goal/plan will be created.
    6. When the context condition triggers, the plan will be aborted.
    7. When the context condition triggers again, a new plan will be started.
    (Note that the firing of (all) conditions can be finetuned by setting the trigger attribute to one of changes_to_true, changes_to_false, changes, is_true is_false).


    Belief Summary
    belief boolean context
              
    belief boolean creation
              
    belief boolean drop
              
    beliefsetref reports
              
    beliefref int testcase_cnt
              
    exported beliefref AgentIdentifier testcenter
              
    exported beliefref long timeout
              
     
    Goal Summary
    performgoal test()
              
     
    Plan Summary
    standard plan testplan()
              
    standard plan work()
              
     
    Configuration Summary
    default configuration  default
              
     

    Belief Detail

    creation

    belief boolean creation
    Default fact:
    false

    context

    belief boolean context
    Default fact:
    false

    drop

    belief boolean drop
    Default fact:
    false

    testcase_cnt

    beliefref int testcase_cnt
    Default fact:
    1
    Referenced from:
    testcase_cnt in capability jadex.planlib.Test

    timeout

    exported beliefref long timeout
    Default fact:
    0
    Referenced from:
    timeout in capability jadex.planlib.Test

    testcenter

    exported beliefref AgentIdentifier testcenter
    Referenced from:
    testcenter in capability jadex.planlib.Test

    reports

    beliefsetref  reports
    Referenced from:
    reports in capability jadex.planlib.Test
    Goal Detail

    test

    performgoal test()
    BDI flags:
    retry: true
    retry delay: 0
    exclude: never
    random selection: false
    post to all: false
    Context Condition:
    $beliefbase.context
    Creation Condition:
    $beliefbase.creation
    Drop Condition:
    $beliefbase.drop
    Plan Detail

    testplan

    standard plan testplan()
    Plan body:

    work

    standard plan work()
    Plan body:
    new WorkPlan()
    Plan trigger:
    Goals:
    test
    Configuration Detail

    default

    default configuration default
    Initial Beliefs:
    testcase_cnt Initial value:  7
    Initial Plans:
    testplan

    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.