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

Package class diagram package IAgentId
All Superinterfaces:
cz.cuni.amis.utils.token.IToken, Serializable
All Known Subinterfaces:
ITeamedAgentId
All Known Implementing Classes:
AgentId, AgentIdJMXProxy, AgentTeamedId, TeamedAgentId

@MXBean
public interface IAgentId
extends cz.cuni.amis.utils.token.IToken, Serializable

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

Serializable! Implementors must behave accordingly.

Author:
Jimmy

Method Summary
 cz.cuni.amis.utils.flag.Flag<String> getName()
          Contains a human-readable name of the agent.
 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

cz.cuni.amis.utils.flag.Flag<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

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

Specified by:
getToken in interface cz.cuni.amis.utils.token.IToken
Returns:
token


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.