jadex.examples.booktrading.manager
Agent Manager
jadex.examples.booktrading.manager.Manager
jadex.planlib.AMS
jadex.planlib.StartAgents
jadex.planlib.AMS
- agent Manager
- contains jadex.planlib.StartAgents, jadex.planlib.AMS
The manager agent for starting the application.
Can be used to start the booktrading example with different
initial configurations of buyer and seller agents.
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
One buyer / one seller
default configuration One buyer / one seller
- Initial Goals:
- start_agents (agentinfos=[
new StartAgentInfo("jadex.examples.booktrading.buyer.Buyer", "Alex", 0, new String[]{"initial_orders"},
new Object[]{new Order[]
{
new Order("All about agents", new Date(System.currentTimeMillis()+60000), 100, 120, true),
new Order("All about web services", new Date(System.currentTimeMillis()+60000), 40, 60, true),
new Order("Harry Potter", new Date(System.currentTimeMillis()+60000), 5, 10, true),
new Order("Agents in the real world", new Date(System.currentTimeMillis()+60000), 30, 65, true)
}})
,
new StartAgentInfo("jadex.examples.booktrading.seller.Seller", "Lars", 0, new String[]{"initial_orders"},
new Object[]{new Order[]
{
new Order("All about agents", new Date(System.currentTimeMillis()+60000), 130, 110, false),
new Order("All about web services", new Date(System.currentTimeMillis()+60000), 50, 30, false),
new Order("Harry Potter", new Date(System.currentTimeMillis()+60000), 15, 9, false),
new Order("Agents in the real world", new Date(System.currentTimeMillis()+60000), 100, 60, false)
}})
],)
- ams_destroy_agent (agentidentifier=
$agent.getAgentIdentifier()
)
One buyer / two sellers
configuration One buyer / two sellers
- Initial Goals:
- start_agents (agentinfos=[
new StartAgentInfo("jadex.examples.booktrading.buyer.Buyer", "Alex", 0, new String[]{"initial_orders"},
new Object[]{new Order[]
{
new Order("All about agents", new Date(System.currentTimeMillis()+60000), 100, 120, true),
new Order("All about web services", new Date(System.currentTimeMillis()+60000), 40, 60, true),
new Order("Harry Potter", new Date(System.currentTimeMillis()+60000), 5, 10, true),
new Order("Agents in the real world", new Date(System.currentTimeMillis()+60000), 30, 65, true)
}})
,
new StartAgentInfo("jadex.examples.booktrading.seller.Seller", "Lars", 0, new String[]{"initial_orders"},
new Object[]{new Order[]
{
new Order("All about agents", new Date(System.currentTimeMillis()+60000), 130, 110, false),
new Order("All about web services", new Date(System.currentTimeMillis()+60000), 50, 30, false),
new Order("Harry Potter", new Date(System.currentTimeMillis()+60000), 12, 6, false),
new Order("Agents in the real world", new Date(System.currentTimeMillis()+60000), 100, 60, false)
}})
,
new StartAgentInfo("jadex.examples.booktrading.seller.Seller", "Dirk", 0, new String[]{"initial_orders"},
new Object[]{new Order[]
{
new Order("All about agents", new Date(System.currentTimeMillis()+60000), 120, 100, false),
new Order("All about web services", new Date(System.currentTimeMillis()+60000), 40, 20, false),
new Order("Harry Potter", new Date(System.currentTimeMillis()+60000), 16, 12, false),
new Order("Agents in the real world", new Date(System.currentTimeMillis()+60000), 100, 60, false)
}})
],)
- 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.