public class TucsonAgentId extends java.lang.Object implements AgentId, java.io.Serializable
Constructor and Description |
---|
TucsonAgentId(java.lang.String id) |
TucsonAgentId(java.lang.String name,
TucsonTupleCentreId tcId) |
Modifier and Type | Method and Description |
---|---|
boolean |
assignUUID() |
AgentId |
getAgentId() |
java.lang.String |
getAgentName() |
java.lang.String |
getAgentUUID() |
boolean |
isAgent() |
boolean |
isEnv() |
boolean |
isTC() |
java.lang.String |
toString() |
public TucsonAgentId(java.lang.String id) throws TucsonInvalidAgentIdException
id
- the String representation of this TuCSoN agent identifierTucsonInvalidAgentIdException
- if the given String does not represent a valid TuCSoN
identifierpublic TucsonAgentId(java.lang.String name, TucsonTupleCentreId tcId)
name
- the String representation of this TuCSoN agent identifiertcId
- the identifier of the tuple centre the agent behind this
identifier representspublic boolean assignUUID()
public AgentId getAgentId()
public java.lang.String getAgentName()
public java.lang.String getAgentUUID()
public boolean isAgent()
public boolean isEnv()
public boolean isTC()
public java.lang.String toString()
toString
in class java.lang.Object