Jadex 0.96

jadex.testcases.goals
Agent SubgoalHandling

jadex.testcases.goals.SubgoalHandling
  • jadex.planlib.Test

  • agent SubgoalHandling
    contains jadex.planlib.Test


    Agent arguments: timeout
    timeout long
    , testcenter
    testcenter AgentIdentifier

    Test subgoal handling in standard plans.

    The agent tests correct handling of three cases:
    1. The subgoal succeeds and the plan continues.
    2. The subgoal fails an a GoalFailureException is thrown.
    3. The subgoal times out a TimeoutException is thrown.


    Belief Summary
    beliefsetref reports
              
    beliefref int testcase_cnt
              
    exported beliefref AgentIdentifier testcenter
              
    exported beliefref long timeout
              
     
    Goal Summary
    achievegoal failure_goal()
              
    achievegoal success_goal()
              
    achievegoal timeout_goal()
              
     
    Plan Summary
    standard plan failure_plan()
              
    standard plan success_plan()
              
    standard plan test_plan()
              
    standard plan timeout_plan()
              
     
    Configuration Summary
    default configuration  default
              
     

    Belief Detail

    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

    success_goal

    achievegoal success_goal()
    BDI flags:
    retry: true
    retry delay: 0
    exclude: when_tried
    random selection: false
    post to all: false

    failure_goal

    achievegoal failure_goal()
    BDI flags:
    retry: true
    retry delay: 0
    exclude: when_tried
    random selection: false
    post to all: false

    timeout_goal

    achievegoal timeout_goal()
    BDI flags:
    retry: true
    retry delay: 0
    exclude: when_tried
    random selection: false
    post to all: false
    Plan Detail

    test_plan

    standard plan test_plan()
    Plan body:

    success_plan

    standard plan success_plan()
    Plan body:
    new ResultPlan(-1, true)
    Plan trigger:
    Goals:
    success_goal

    failure_plan

    standard plan failure_plan()
    Plan body:
    new ResultPlan(-1, false)
    Plan trigger:
    Goals:
    failure_goal

    timeout_plan

    standard plan timeout_plan()
    Plan body:
    new ResultPlan(10000, false)
    Plan trigger:
    Goals:
    timeout_goal
    Configuration Detail

    default

    default configuration default
    Initial Beliefs:
    testcase_cnt Initial value:  3
    Initial Plans:
    test_plan

    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.