Jadex 0.96

jadex.testcases.plans
Agent PlanPriorities

jadex.testcases.plans.PlanPriorities
  • jadex.planlib.Test

  • agent PlanPriorities
    contains jadex.planlib.Test


    Agent arguments: testcenter
    testcenter AgentIdentifier

    This agent tests plan priorities.

    The default meta-level reasoner uses plan priorities to determine, which candidates are scheduled for execution. In this example an initial goal is created for which all of the declared plans are applicable. The plans print out some message and fail. Because the bdi-flag exclude is (per default) set the three plans are subsequently invoked.


    Belief Summary
    beliefsetref TestReport reports
              
    beliefset Integer results
              
    exported beliefref AgentIdentifier testcenter
              
    exported beliefref long timeout
              
     
    Goal Summary
    achievegoal test()
              
     
    Plan Summary
    standard plan one()
              
    standard plan tester()
              
    standard plan two()
              
    standard plan zero()
              
     
    Configuration Summary
    default configuration  default
              
     

    Belief Detail

    results

    beliefset Integer results

    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

    test

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

    zero

    standard plan zero()
    Plan body:
    new ResultPlan(true, new Integer(0), "results")
    Plan trigger:
    Goals:
    test

    two

    standard plan two()
    Plan body:
    new ResultPlan(false, new Integer(2), "results")
    Plan trigger:
    Goals:
    test

    one

    standard plan one()
    Plan body:
    new ResultPlan(false, new Integer(1), "results")
    Plan trigger:
    Goals:
    test

    tester

    standard plan tester()
    Plan body:
    new PlanPrioritiesTesterPlan()
    Configuration Detail

    default

    default configuration default
    Initial Plans:
    tester

    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.