Jadex 0.96

jadex.testcases.goals
Agent AchieveGoal

jadex.testcases.goals.AchieveGoal
  • jadex.planlib.Test

  • agent AchieveGoal
    contains jadex.planlib.Test


    Agent arguments: testcenter
    testcenter AgentIdentifier

    Test an achieve goal with context condition for goal suspension.

    This agent has an achieve goal associated with an increment plan that increments every second the belief count. The achieve goal succeeds when it has count till 5. The achieve goal has a context condition that directly maps to the state of the belief . Setting this belief to false (with the BDI-Viewer) results in the achieve goal suspension.


    Belief Summary
    belief int count
              
    belief boolean mycontext
              
    belief boolean myfailure
              
    beliefsetref reports
              
    exported beliefref AgentIdentifier testcenter
              
    exported beliefref long timeout
              
     
    Goal Summary
    achievegoal testgoal()
              
     
    Plan Summary
    standard plan increment()
              
    standard plan testplan()
              
     
    Configuration Summary
    default configuration  default
              
     

    Belief Detail

    count

    belief int count
    Default fact:
    0

    mycontext

    belief boolean mycontext
    Default fact:
    true

    myfailure

    belief boolean myfailure
    Default fact:
    false

    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

    testgoal

    achievegoal testgoal()
    BDI flags:
    retry: true
    retry delay: 0
    exclude: never
    random selection: false
    post to all: false
    Context Condition:
    $beliefbase.mycontext
    Failure Condition:
    $beliefbase.myfailure
    Target Condition:
    $beliefbase.count==5
    Plan Detail

    testplan

    standard plan testplan()
    Plan body:

    increment

    standard plan increment()
    Plan body:
    new BeliefIncrementPlan("count", 1, 100)
    Plan trigger:
    Goals:
    testgoal
    Configuration Detail

    default

    default configuration default
    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.