|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
fr.lifl.magique.util.Team
maps a member of the team (identified by his name) with a TeamInfo object that contains two vectors : the members of the subteams and the vector of what they are able to do.
Hashtable,
TeamInfo,
Serialized Form| Constructor Summary | |
Team()
|
|
| Method Summary | |
void |
addInfo(java.lang.String agent,
java.lang.String newMember,
TeamInfo memberInfo)
updates info associated to the agent when a new member is added in his subteam |
void |
addMethods(java.lang.String agent,
java.util.Vector newMethods)
updates info associated to the agent when a member has new methods (skills) |
java.util.Enumeration |
getMembers()
returns the (first level) members of the team |
java.util.Vector |
getMethods()
returns the vector of all the names of methods appearing in this team and the relative TeamInfo. |
java.util.Vector |
getNames()
returns the vector of all the names of agent appearing in this team and the relative TeamInfo. |
TeamInfo |
getTeamInfo(java.lang.String agent)
returns the TeamInfo associated to an agent |
int |
getTeamSize()
Returns the size of this tem ie the number of first level members |
boolean |
knownMethod(java.lang.String method)
|
boolean |
knownName(java.lang.String name)
returns true if agent appears somewhere in this team (maybe in a subteam) |
void |
newMember(java.lang.String agent,
TeamInfo info)
adds an agent and its TeamInfo info to the team |
void |
remove(java.lang.String agent)
remove an agent from my team |
java.util.Vector |
whoKnowsMethod(java.lang.String method)
returns the vector of the names of the agents (of the first level of hierarchy below) who are able to perform the given method (or maybe someone below it). |
java.lang.String |
whoKnowsName(java.lang.String name)
returns the name of the agent (first level of hierarchy below) who knows the given name (which can be in a "sublevel"). |
| Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Team()
| Method Detail |
public TeamInfo getTeamInfo(java.lang.String agent)
agent - name of the agent
java.lang.NullPointerException - si agent est
inconnu
java.lang.NullPointerException - if agent is unknownTeamInfopublic java.util.Enumeration getMembers()
public int getTeamSize()
public void newMember(java.lang.String agent,
TeamInfo info)
agent - the name of the agent to addinfo - the associated TeamInfo objectpublic void remove(java.lang.String agent)
agent - the agent to remove from my team
public void addInfo(java.lang.String agent,
java.lang.String newMember,
TeamInfo memberInfo)
agent - the name of the agentnewMember - the new member of the subteammemberInfo - the team info associated to the new member
public void addMethods(java.lang.String agent,
java.util.Vector newMethods)
agent - the name of the agent who has lernednewMethods - vector of the new methods to be added to info on agentpublic java.util.Vector getNames()
public java.util.Vector getMethods()
public boolean knownName(java.lang.String name)
name - the name of the searched agent
public boolean knownMethod(java.lang.String method)
public java.util.Vector whoKnowsMethod(java.lang.String method)
method - the name of the method to look for
public java.lang.String whoKnowsName(java.lang.String name)
name - the name to look for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||