agentland.resource.namer
Interface Namer
- All Known Implementing Classes:
- NamerAgent
- public interface Namer
- extends Good, ResourceManager
Methods inherited from interface agentland.util.Spy |
tell |
translate
public AgentID translate(AgentID start_id)
throws RemoteException
- Given an ID, translate it into a new ID.
Uses two persistent maps. "translations" is a list of
known translations from agentID to agentID. "watchedOccupations"
is a list of which occupations demand a query.
If an id is on the watched list, and no translation is known, the
system will query user for the new agentID and store it for further
use. (Does via promptbox, so it needs a display.)
translate
public AgentID translate(String start_id)
throws RemoteException
addWatchedOccupation
public void addWatchedOccupation(String s)
throws RemoteException
addTranslation
public void addTranslation(String start,
String target)
throws RemoteException
clearTranslation
public boolean clearTranslation(String trans)
throws RemoteException
- Remove translation from lists.
- Returns:
- true if found and removed.
clearWatchedOccupation
public boolean clearWatchedOccupation(String occ)
throws RemoteException
- Remove watched occupation from list.
- Returns:
- true if found and removed.