cartago
Class AgentId

java.lang.Object
  extended by cartago.AgentId
All Implemented Interfaces:
java.io.Serializable

public class AgentId
extends java.lang.Object
implements java.io.Serializable

Identifier of an agent inside a workspace.

Author:
aricci
See Also:
Serialized Form

Method Summary
 boolean equals(java.lang.Object aid)
           
 java.lang.String getAgentName()
          Get the name of the agent.
 java.lang.String getAgentRole()
          Get the role;
 java.lang.String getGlobalId()
          Get the global identifier of the agent
 int getLocalId()
          Get the numeric identifier of the agent.
 WorkspaceId getWorkspaceId()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getAgentName

public java.lang.String getAgentName()
Get the name of the agent.

Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getAgentRole

public java.lang.String getAgentRole()
Get the role;

Returns:

getWorkspaceId

public WorkspaceId getWorkspaceId()

getLocalId

public int getLocalId()
Get the numeric identifier of the agent.

Returns:

getGlobalId

public java.lang.String getGlobalId()
Get the global identifier of the agent

Returns:

equals

public boolean equals(java.lang.Object aid)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


>DEIS - University of Bologna