jadex.examples.hunterprey.manager
Agent Manager
jadex.examples.hunterprey.manager.Manager
jadex.planlib.AMS
jadex.planlib.StartAgents
jadex.planlib.AMS
- agent Manager
- contains jadex.planlib.StartAgents, jadex.planlib.AMS
The manager agent can be started to launch a
hunterprey scenario.
The hunterprey scenario is run in a time-stepped simulation
which is controlled by the environment agent. This means that
the environment increases the simulation time in fixed (adjustable)
real-time intervals. The environment is represented by a grid-world
with different kinds of objects. Basically there are positions with
obstacles (trees) which cannot be entered by creatues. Additionally
the environment creates vegetarian food (salads) randomly at aarbitrary
positions. Two different kinds of creatues inhabit the environment.
Preys (sheeps) are creatures that search for salads and gain one point
for eating a piece of salad. Hunters (wolfs) search for preys and
try to eat them. They gain five points if they manage to eat a
prey. Consequently preys should try to free from hunters if they
see them. Every creature can see all objects and creatues in a
certain range around them.
start_agents
achievegoalref start_agents
- Parameters:
- parameterset
agentidentifiers
- parameterset
agentinfos
- Deliberation:
- inhibits
ams_destroy_agent
- Wait for all agents being started before destroying the manager.
- Referenced from:
start_agents
in capability jadex.planlib.StartAgents
ams_destroy_agent
achievegoalref ams_destroy_agent
- Goal used to kill manager after startup.
- Parameters:
- parameterref
agentidentifier
- parameterref
ams
- Referenced from:
ams_destroy_agent
in capability jadex.planlib.AMS
default
default configuration default
- Initial Goals:
- start_agents (agentinfos=[
new StartAgentInfo("jadex.examples.hunterprey.environment.Environment", "Environment_%n", 2000, null)
, new StartAgentInfo("jadex.examples.hunterprey.creature.preys.dumbprey.DumbPrey", "Dumbo_%n", 0, null)
, new StartAgentInfo("jadex.examples.hunterprey.creature.preys.lazyprey.LazyPrey", "Heinz_%n", 0, null)
, new StartAgentInfo("jadex.examples.hunterprey.creature.preys.cleverprey.CleverPrey", "Clever_%n", 0, null)
, new StartAgentInfo("jadex.examples.hunterprey.creature.hunters.dumbhunter.DumbHunter", "Lenny_%n", 0, null)
, new StartAgentInfo("jadex.examples.hunterprey.creature.hunters.dumbhunter.DumbHunter", "Louis_%n", 0, null)
, new StartAgentInfo("jadex.examples.hunterprey.creature.hunters.ldahunter.LAHunter", "Willy_%n", 0, null)
],)
- ams_destroy_agent (agentidentifier=
$agent.getAgentIdentifier()
)
ELEPHunters
configuration ELEPHunters
- Initial Goals:
- start_agents (agentinfos=[
new StartAgentInfo("jadex.examples.hunterprey.environment.Environment", "Environment_%n", 2000, null)
, new StartAgentInfo("jadex.examples.hunterprey.creature.preys.dumbprey.DumbPrey", "Dumbo_%n", 0, null)
, new StartAgentInfo("jadex.examples.hunterprey.creature.preys.lazyprey.LazyPrey", "Heinz_%n", 0, null)
, new StartAgentInfo("jadex.examples.hunterprey.creature.preys.cleverprey.CleverPrey", "Clever_%n", 0, null)
, new StartAgentInfo("jadex.examples.hunterprey.creature.hunters.dumbhunter.DumbHunter", "Lenny_%n", 0, null)
, new StartAgentInfo("jadex.examples.hunterprey.creature.hunters.dumbhunter.DumbHunter", "Louis_%n", 0, null)
, new StartAgentInfo("jadex.examples.hunterprey.creature.hunters.ldahunter.LAHunter", "Willy_%n", 0, null)
, new StartAgentInfo("jadex.examples.hunterprey.creature.hunters.elephunter.ELEPHunter", "Emerson_%n", 0, null)
, new StartAgentInfo("jadex.examples.hunterprey.creature.hunters.elephunter.ELEPHunter", "Lake_%n", 0, null)
, new StartAgentInfo("jadex.examples.hunterprey.creature.hunters.elephunter.ELEPHunter", "Palmer_%n", 0, null)
],)
- ams_destroy_agent (agentidentifier=
$agent.getAgentIdentifier()
)
Willy
configuration Willy
- Initial Goals:
- start_agents (agentinfos=[
new StartAgentInfo("jadex.examples.hunterprey.environment.Environment", "Environment_%n", 2000, null)
, new StartAgentInfo("jadex.examples.hunterprey.creature.hunters.ldahunter.LAHunter", "Willy_%n", 0, null)
],)
- ams_destroy_agent (agentidentifier=
$agent.getAgentIdentifier()
)
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.