cz.cuni.amis.pogamut.base.agent
Interface IAgentId

All Superinterfaces:
IToken, java.io.Serializable
All Known Subinterfaces:
ITeamedAgentId
All Known Implementing Classes:
AgentId, AgentIdJMXProxy, AgentTeamedId, TeamedAgentId

@MXBean
public interface IAgentId
extends IToken, java.io.Serializable

Extension of the IToken, it provides an ability to give an agent a human-readable name.

Serializable! Implementors must behave accordingly.


Method Summary
 Flag<java.lang.String> getName()
          Contains a human-readable name of the agent.
 java.lang.String getToken()
          Must return token that is unique even across different JVMs.
 
Methods inherited from interface cz.cuni.amis.utils.token.IToken
getIds
 

Method Detail

getName

Flag<java.lang.String> getName()
Contains a human-readable name of the agent.

Note that the name is quite different string than getToken(). The token contains unique-identifier of the agent across whole JVMs in the world, but the name is just human-readable identifier that can be even changed over time.

Therefore, the name should not be used for any compares or interpretation.

Returns:

getToken

java.lang.String getToken()
Must return token that is unique even across different JVMs.

Specified by:
getToken in interface IToken
Returns:
token