Jadex 0.96

jadex.testcases.plans
Agent PlanPass

jadex.testcases.plans.PlanPass
  • jadex.planlib.Test

  • agent PlanPass
    contains jadex.planlib.Test


    Agent arguments: timeout
    timeout long
    , testcenter
    testcenter AgentIdentifier

    Test the plan's passed() method.

    Tests if waitFor() and subgoals in the passed() method work as expected.


    Belief Summary
    beliefsetref TestReport reports
              
    beliefref int testcase_cnt
              
    exported beliefref AgentIdentifier testcenter
              
    exported beliefref long timeout
              
     
    Goal Summary
    achievegoal failuregoal()
               goal fails without plan
    achievegoal failuregoal2()
               goal fails after plan
    achievegoal successgoal()
               goal succeeds without plan
    achievegoal successgoal2()
               goal succeeds after plan
     
    Plan Summary
    standard plan failureplan()
              
    standard plan successplan()
              
    standard plan test_pass()
              
     
    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 TestReport reports
    Referenced from:
    reports in capability jadex.planlib.Test
    Goal Detail

    successgoal

    achievegoal successgoal()
    goal succeeds without plan

    BDI flags:
    retry: true
    retry delay: 0
    exclude: when_tried
    random selection: false
    post to all: false
    Target Condition:
    true

    failuregoal

    achievegoal failuregoal()
    goal fails without plan

    BDI flags:
    retry: true
    retry delay: 0
    exclude: when_tried
    random selection: false
    post to all: false
    Target Condition:
    false

    successgoal2

    achievegoal successgoal2()
    goal succeeds after plan

    BDI flags:
    retry: true
    retry delay: 0
    exclude: when_tried
    random selection: false
    post to all: false

    failuregoal2

    achievegoal failuregoal2()
    goal fails after plan

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

    test_pass

    standard plan test_pass()
    Plan body:
    new TestPassPlan()

    successplan

    standard plan successplan()
    Plan body:
    new ResultPlan(10, true)
    Plan trigger:
    Goals:
    successgoal2

    failureplan

    standard plan failureplan()
    Plan body:
    new ResultPlan(10, false)
    Plan trigger:
    Goals:
    failuregoal2
    Configuration Detail

    default

    default configuration default
    Initial Beliefs:
    testcase_cnt Initial value:  6
    Initial Plans:
    test_pass

    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.