aos.team
Class Team
java.lang.Object
aos.jack.jak.scheduler.Executee
aos.jack.jak.agent.Agent
aos.team.Team
- public class Team
- extends aos.jack.jak.agent.Agent
This is the base class for all team entities. It is a replacement
for Agent which provides support for team execution.
Fields inherited from class aos.jack.jak.agent.Agent |
thread_pool, timer |
Constructor Summary |
Team(java.lang.String n)
|
Method Summary |
void |
__bindNames()
|
void |
__init1()
Support for agent constructor methods. |
void |
__init2()
Support for agent constructor methods. |
void |
addContainer(java.lang.String t,
RoleContainer r)
|
void |
addHandledRole(RoleContainer r)
|
void |
addPerformedRole(java.lang.String peer,
java.lang.String role,
java.lang.String cntr)
|
void |
attachRole(java.lang.String role,
java.lang.String cntr,
java.lang.String actor)
|
void |
attachRoles(RoleInfo[] r)
|
void |
canPerformRole(java.lang.String role,
boolean yes)
|
aos.jack.jak.task.Task |
createTask()
|
aos.jack.jak.task.TaskManager |
createTaskManager()
|
RoleContainer |
findContainer(java.lang.String s)
|
RoleContainer |
findContainer(java.lang.String role,
java.lang.String cntr)
|
Role |
findPerformedRole(java.lang.String peer,
java.lang.String role,
java.lang.String cntr)
|
Role |
findRequiredRole(java.lang.String peer,
java.lang.String role,
java.lang.String cntr)
|
BeliefConnections |
getBC()
|
TeamManager |
getManager()
|
RoleInfo[] |
getRoles()
|
int |
getState()
|
void |
init_desc()
|
void |
postWhenFormed(aos.jack.jak.event.Event e)
|
java.util.Vector |
propagationTargets(java.lang.Object db)
|
SynthInterface[] |
reduce(SynthInterface[] a,
SynthInterface[] b)
|
void |
removePerformedRole(java.lang.String peer,
java.lang.String role,
java.lang.String cntr)
|
void |
revokeRole(java.lang.String role,
java.lang.String cntr,
java.lang.String actor)
|
boolean |
rolesInitialized(RoleInfo[] roles)
|
boolean |
rolesInitialized(RoleInfo[] roles,
java.lang.StringBuffer err)
|
void |
setState(int n)
|
void |
warning(java.lang.String n)
Prints a string with agent identification. |
Methods inherited from class aos.jack.jak.agent.Agent |
addToDo, addWaitFor, addWaitFor, bug, changeFocus, describeAllAgents, describeState, discardAllTasks, discardOtherTasks, discardReplies, dump, dump, dump, dumpPlans, dumpToString, findLocalAgent, finish, getAgent, getBasename, getCurrentAgent, getCurrentTask, getKnownEvents, getKnownPlans, getName, getObservable, getReply, getTaskManager, getTraceableInfo, inAgent, initialize, isBlocked, isIdle, name, nEvents, nMessages, nTasks, nTodo, postEvent, postEventAndWait, process, processEvent, processMessage, processTask, processToDo, replied, reply, restartIfIdle, rmToDo, rmWaitFor, send, send, startAgent, toString, trigger |
Methods inherited from class aos.jack.jak.scheduler.Executee |
isPaused, remove, run, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Team
public Team(java.lang.String n)
getManager
public TeamManager getManager()
setState
public void setState(int n)
getState
public int getState()
postWhenFormed
public void postWhenFormed(aos.jack.jak.event.Event e)
propagationTargets
public java.util.Vector propagationTargets(java.lang.Object db)
getBC
public BeliefConnections getBC()
warning
public void warning(java.lang.String n)
- Description copied from class:
aos.jack.jak.agent.Agent
- Prints a string with agent identification. This is a
convenience method that prints the given warning string
together with the agent's full name.
__init1
public void __init1()
- Description copied from class:
aos.jack.jak.agent.Agent
- Support for agent constructor methods. Can be called by a derived
type during their construction to do first phase initialization
(events, data, etc.).
__init2
public void __init2()
- Description copied from class:
aos.jack.jak.agent.Agent
- Support for agent constructor methods. Can be called by a derived type
during their construction to do second phase initialization (plans).
init_desc
public void init_desc()
__bindNames
public void __bindNames()
createTask
public aos.jack.jak.task.Task createTask()
createTaskManager
public aos.jack.jak.task.TaskManager createTaskManager()
addContainer
public void addContainer(java.lang.String t,
RoleContainer r)
findContainer
public RoleContainer findContainer(java.lang.String role,
java.lang.String cntr)
findContainer
public RoleContainer findContainer(java.lang.String s)
addPerformedRole
public void addPerformedRole(java.lang.String peer,
java.lang.String role,
java.lang.String cntr)
canPerformRole
public void canPerformRole(java.lang.String role,
boolean yes)
findPerformedRole
public Role findPerformedRole(java.lang.String peer,
java.lang.String role,
java.lang.String cntr)
removePerformedRole
public void removePerformedRole(java.lang.String peer,
java.lang.String role,
java.lang.String cntr)
findRequiredRole
public Role findRequiredRole(java.lang.String peer,
java.lang.String role,
java.lang.String cntr)
reduce
public SynthInterface[] reduce(SynthInterface[] a,
SynthInterface[] b)
attachRole
public void attachRole(java.lang.String role,
java.lang.String cntr,
java.lang.String actor)
revokeRole
public void revokeRole(java.lang.String role,
java.lang.String cntr,
java.lang.String actor)
getRoles
public RoleInfo[] getRoles()
attachRoles
public void attachRoles(RoleInfo[] r)
rolesInitialized
public boolean rolesInitialized(RoleInfo[] roles)
rolesInitialized
public boolean rolesInitialized(RoleInfo[] roles,
java.lang.StringBuffer err)
addHandledRole
public void addHandledRole(RoleContainer r)
Copyright (C) 1999-2008, Agent Oriented Software Pty. Ltd. US Government Restricted Rights
The JACK Modules and relevant Software Material have been developed entirely at private expense and are accordingly provided with RESTRICTED RIGHTS. Use, duplication, or disclosure by Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of DFARS 252.227-7013 or subparagraph (c)(1) and (2) of the Commercial Computer Software Restricted Rights and 48 CFR 52.2270-19, as applicable.
Agent Oriented Software Pty. Ltd. http://www.aosgrp.com
PO Box 639, Carlton South, Victoria 3053, Australia
Phone: +61 3 9349 5055, Fax: +61 3 9349 5088