Jadex 0.96

jadex.testcases.plans
Agent PlanAbort

jadex.testcases.plans.PlanAbort
  • jadex.planlib.Test

  • agent PlanAbort
    contains jadex.planlib.Test


    Agent arguments: timeout
    timeout long
    , testcenter
    testcenter AgentIdentifier

    Plan Abort Agent

    Tests if abortion of plans is properly synchronized.
    The testabort plan is aborted, when the increment plan increments the count belief leading to the testabort goal being achieved (abort on success).


    Belief Summary
    belief int count
              
    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
    achievegoal testabort()
               execute plan and abort after some time
     
    Plan Summary
    standard plan failureplan()
              
    standard plan increment()
              
    standard plan successplan()
              
    standard plan testabort()
              
     
    Configuration Summary
    default configuration  default
              
     

    Belief Detail

    count

    belief int count
    Default fact:
    0

    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

    testabort

    achievegoal testabort()
    execute plan and abort after some time

    BDI flags:
    retry: true
    retry delay: 0
    exclude: when_tried
    random selection: false
    post to all: false
    Target Condition:
    $beliefbase.count>3

    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

    testabort

    standard plan testabort()
    Plan body:
    Plan trigger:
    Goals:
    testabort

    increment

    standard plan increment()
    Plan body:
    new BeliefIncrementPlan("count", 1, 100)

    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 Goals:
    testabort
    Initial Plans:
    increment

    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.