Jadex 0.96

jadex.examples.marsworld.movement
Capability Movement

Direct Known Containing Agents:
Carry, Production, Sentry

capability Movement

The movement capability supplies the agents with basic goals, plans and beliefs for moving around.


Belief Summary
exported abstract required beliefref Environment environment
           The environment as singleton object.
exported belief boolean missionend
           Is the mission finished?
exported abstract required beliefref Location my_home
           The home location.
exported abstract required beliefref Location my_location
           The current location.
exported abstract required beliefref double my_speed
           The speed.
exported beliefset Target my_targets
           The seen targets.
exported abstract required beliefref String my_type
           The agent type (carry, producer or sentry)
exported abstract required beliefref double my_vision
           The sight radius.
 
Goal Summary
achievegoal missionend(Location destination)
           Move home when missionend.
exported achievegoal move_dest(Location destination)
           Move to a cretain location.
exported performgoal walk_around()
           Walk around without target when nothing else to do.
exported performgoal watch_targets()
           Watch for targets and memorize them.
 
Plan Summary
standard plan find_targets()
           Find targets and save them.
standard plan go_destination(Location destination)
           Go to a destination.
standard plan randomwalk()
           Walk around randomly.
 

Belief Detail

missionend

exported belief boolean missionend
Is the mission finished?

Update rate:
1000 ms
Default fact: (dynamic)
$beliefbase.environment.getHomebase().getRemainingMissionTime()==0

my_targets

exported beliefset Target my_targets
The seen targets.


environment

exported abstract required beliefref Environment environment
The environment as singleton object.


my_location

exported abstract required beliefref Location my_location
The current location.


my_home

exported abstract required beliefref Location my_home
The home location.


my_type

exported abstract required beliefref String my_type
The agent type (carry, producer or sentry)


my_speed

exported abstract required beliefref double my_speed
The speed.


my_vision

exported abstract required beliefref double my_vision
The sight radius.

Goal Detail

walk_around

exported performgoal walk_around()
Walk around without target when nothing else to do.

BDI flags:
retry: true
retry delay: 0
exclude: never
random selection: false
post to all: false
Drop Condition:
$beliefbase.missionend

watch_targets

exported performgoal watch_targets()
Watch for targets and memorize them.

BDI flags:
retry: true
retry delay: 0
exclude: when_tried
random selection: false
post to all: false
Drop Condition:
$beliefbase.missionend

move_dest

exported achievegoal move_dest(Location destination)
Move to a cretain location.

Parameters:
in parameter destination
BDI flags:
retry: true
retry delay: 0
exclude: when_tried
random selection: false
post to all: false

missionend

achievegoal missionend(Location destination)
Move home when missionend.

Parameters:
in parameter destination Default value:  $beliefbase.my_home
BDI flags:
retry: true
retry delay: 0
exclude: when_tried
random selection: false
post to all: false
Uniqueness enabled:
Creation Condition:
$beliefbase.missionend && !$beliefbase.my_location.isNear($beliefbase.my_home)
Plan Detail

go_destination

standard plan go_destination(Location destination)
Go to a destination.

Parameters:
in parameter destination (goal mappings: move_dest.destination missionend.destination)
Plan body:
Plan trigger:
Goals:
move_dest
Goals:
missionend

randomwalk

standard plan randomwalk()
Walk around randomly.

Plan body:
Plan trigger:
Goals:
walk_around

find_targets

standard plan find_targets()
Find targets and save them.

Plan body:
Plan trigger:
Goals:
watch_targets

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.