|
Jadex 0.96 | ||||||||
PREV AGENT NEXT AGENT | FRAMES NO FRAMES | ||||||||
SUMMARY: | BELIEF | GOAL | PLAN | EVENT | EXPRESSION | CONFIGURATION | DETAIL: BELIEF | GOAL | PLAN | EVENT | EXPRESSION | CONFIGURATION |
jadex.examples.hunterprey.creature.actsense.Creature
jadex.planlib.DF
jadex.planlib.Protocols
Creature capability. Provides basic creature behaviour (looking/moving).
Belief Summary | |
exported abstract beliefref AgentIdentifier |
df
The df to search for the environment. |
belief AgentIdentifier |
environmentagent
The environment. |
exported beliefset Food |
food
The known food. |
exported beliefset Hunter |
hunters
The known hunters. |
exported abstract required beliefref Creature |
my_self
The agents vision of itself. |
exported beliefset Obstacle |
obstacles
The known obstacles. |
exported beliefset Prey |
preys
The known preys. |
exported belief Vision |
vision
The current vision. |
Goal Summary | |
achievegoalref |
df_search
|
exported achievegoal |
eat(WorldObject object)
Eat goal. |
exported achievegoal |
get_vision(Vision vision)
Get vision goal. |
maintaingoal |
maintain_lease(Object result)
Maintain leasetime goal. |
exported achievegoal |
move(String direction)
Move goal. |
achievegoalref |
rp_initiate
|
Plan Summary | |
standard plan |
eat(WorldObject object)
Handle an eat goal. |
standard plan |
getvision(Vision vision)
Handle a get vision goal. |
standard plan |
move(String direction)
Handle a move goal. |
standard plan |
updatevision()
Handle a new vision request. |
Event Summary | |
messageevent |
failure(String performative)
|
messageevent |
inform_vision(CurrentVision content, Class content-class, String language, String ontology, String performative)
|
Expression Summary | |
expression |
query_in_vision_objects
Query all objects from the beliefs that are currently in sight. |
Configuration Summary | |
default configuration |
default
|
Belief Detail |
belief AgentIdentifier environmentagent
exported belief Vision vision
exported beliefset Prey preys
exported beliefset Hunter hunters
exported beliefset Obstacle obstacles
exported beliefset Food food
exported abstract beliefref AgentIdentifier df
exported abstract required beliefref Creature my_self
Goal Detail |
exported achievegoal get_vision(Vision vision)
vision
exported achievegoal move(String direction)
direction
exported achievegoal eat(WorldObject object)
object
maintaingoal maintain_lease(Object result)
result
- Hack!!! Result required for getvision plan. todo: refactor $beliefbase.my_self.getLeaseticks()>10
$beliefbase.my_self.getLeaseticks()>10
achievegoalref df_search
constraints
description
df
result
df_search
in capability jadex.planlib.DF
achievegoalref rp_initiate
action
interaction_state
language
ontology
receiver
result
timeout
rp_initiate
in capability jadex.planlib.Protocols
Plan Detail |
standard plan getvision(Vision vision)
vision
(goal mappings: get_vision.vision maintain_lease.result)
get_vision
maintain_lease
standard plan move(String direction)
direction
(goal mappings: move.direction)
move
standard plan eat(WorldObject object)
object
(goal mappings: eat.object)
eat
standard plan updatevision()
inform_vision
Event Detail |
messageevent inform_vision(CurrentVision content, Class content-class, String language, String ontology, String performative)
content
content-class
Default value:
CurrentVision.class
language
Default value:
SFipa.NUGGETS_XML
ontology
Default value:
HunterPreyOntology.ONTOLOGY_NAME
performative
Default value:
SFipa.INFORM
messageevent failure(String performative)
performative
Default value:
SFipa.FAILURE
Expression Detail |
expression query_in_vision_objects
select WorldObject $object
from SUtil.joinArbitraryArrays(new Object[]
{
$beliefbase.preys,
$beliefbase.hunters,
$beliefbase.obstacles,
$beliefbase.food
})
where $beliefbase.my_self.isInVisionRange($object.getLocation())
Configuration Detail |
default configuration default
|
Jadex 0.96 | ||||||||
PREV AGENT NEXT AGENT | FRAMES NO FRAMES | ||||||||
SUMMARY: | BELIEF | GOAL | PLAN | EVENT | EXPRESSION | CONFIGURATION | DETAIL: BELIEF | GOAL | PLAN | EVENT | EXPRESSION | CONFIGURATION |
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.