Jadex 0.96

jadex.examples.garbagecollector
Agent GarbageBurner


agent GarbageBurner

Garbarge burner agent.

Sits at a fixed posistion and waits for garbage. If garbage occurs it tries to pick it up and burns it.


Belief Summary
belief Environment env
           Environment object as singleton.
beliefset String garbages
           The garbages at the current posistion.
belief Position pos
           The actual position on the grid world.
 
Goal Summary
achievegoal burn(String garbage)
           The burn waste goal.
achievegoal pick()
           The goal for picking up waste.
 
Plan Summary
standard plan burn_plan()
           Plan for burning garbage.
standard plan pickup_plan()
           Plan for trying to pick up waste.
 

Belief Detail

env

belief Environment env
Environment object as singleton. Parameters are name and type of agent for adding it No clean solution but avoids registering of agents.

Default fact:
Environment.getInstance($agent.getType(), $agent.getName())

pos

belief Position pos
The actual position on the grid world.

Default fact: (dynamic)
$beliefbase.env.getPosition($agent.getName())

garbages

beliefset String garbages
The garbages at the current posistion.

Default facts expression: (dynamic)
$beliefbase.env.getGarbages($beliefbase.pos)
Goal Detail

burn

achievegoal burn(String garbage)
The burn waste goal. For every garbage occurring at its position a new goal is craeted (see binding). The unique tag avoids creating more than one goal per specific piece of garbage.

Parameters:
in parameter garbage Binding options:  $beliefbase.garbages
BDI flags:
retry: true
retry delay: 0
exclude: when_tried
random selection: false
post to all: false
Uniqueness enabled:
Creation Condition:
true

pick

achievegoal pick()
The goal for picking up waste. Tries endlessly to pick up.

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

burn_plan

standard plan burn_plan()
Plan for burning garbage.

Plan body:
Plan trigger:
Goals:
burn

pickup_plan

standard plan pickup_plan()
Plan for trying to pick up waste.

Plan body:
Plan trigger:
Goals:
pick

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.