Jadex 0.96

jadex.testcases.goals
Agent Candy

jadex.testcases.goals.Candy
  • jadex.planlib.Test

  • agent Candy
    contains jadex.planlib.Test


    Agent arguments: testcenter
    testcenter AgentIdentifier

    An agent that uses two subsequent plans for achieving the goal of eating candy

    Example clarifies problem from Brad Dixon's post on 07/27/05.


    Belief Summary
    belief boolean candyeaten
              
    belief boolean jaropen
              
    beliefsetref reports
              
    exported beliefref AgentIdentifier testcenter
              
    exported beliefref long timeout
              
     
    Goal Summary
    achievegoal testgoal()
              
     
    Plan Summary
    standard plan get_candy()
              
    standard plan open_jar()
              
    standard plan testplan()
              
     
    Configuration Summary
    default configuration  default
              
     

    Belief Detail

    jaropen

    belief boolean jaropen
    Default fact:
    false

    candyeaten

    belief boolean candyeaten
    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: when_tried
    random selection: false
    post to all: false
    Target Condition:
    $beliefbase.candyeaten
    Plan Detail

    get_candy

    standard plan get_candy()
    Plan body:
    new BeliefChangePlan("candyeaten", new Boolean(true))
    Plan trigger:
    Goals:
    testgoal

    open_jar

    standard plan open_jar()
    Plan body:
    new BeliefChangePlan("jaropen", new Boolean(true))
    Plan trigger:
    Goals:
    testgoal

    testplan

    standard plan testplan()
    Plan body:
    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.