public class AgentId extends java.lang.Object implements AgentId, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected alice.tuprolog.Term |
id |
Constructor and Description |
---|
AgentId(java.lang.String sid)
Constructs an agent identifier
The Agent identifier must be a ground valid logic term
|
AgentId(java.lang.String name,
TucsonTupleCentreId tcId) |
AgentId(alice.tuprolog.Term tid)
Constructs an agent identifier
The Agent identifier must be a ground logic term
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLocalName() |
boolean |
isAgent() |
boolean |
isEnv() |
boolean |
isTC() |
java.lang.String |
toString() |
alice.tuprolog.Term |
toTerm()
Provides the logic term representation of the identifier
|
public AgentId(java.lang.String sid) throws InvalidAgentIdException
sid
- is the string representation of the identifierInvalidAgentIdException
- if it is not a valid identifierpublic AgentId(java.lang.String name, TucsonTupleCentreId tcId)
name
- the string representation of this identifiertcId
- the tuple centre identifier this agent operates onpublic AgentId(alice.tuprolog.Term tid) throws InvalidAgentIdException
tid
- the identifier as tuProlog termInvalidAgentIdException
- if it is not a valid identifierpublic java.lang.String getLocalName()
public boolean isAgent()
public boolean isEnv()
public boolean isTC()
public java.lang.String toString()
toString
in class java.lang.Object
public alice.tuprolog.Term toTerm()