public class TupleCentreId extends java.lang.Object implements TupleCentreId, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected alice.tuprolog.Term |
id |
Modifier | Constructor and Description |
---|---|
protected |
TupleCentreId() |
|
TupleCentreId(java.lang.String n)
Constructs a tuple centre identifier from a string, which must represent
a well-formed ground logic term
|
|
TupleCentreId(java.lang.String tcName,
java.lang.String hostName,
java.lang.String portName) |
|
TupleCentreId(alice.tuprolog.Term name)
Constructs a tuple centre identifier, which must be a well-formed ground
logic term
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
Gets the string representation of the tuple centre name
|
java.lang.String |
getNode()
Gets localhost ReSpecT has no net infrastructure
|
int |
getPort() |
int |
hashCode() |
boolean |
isAgent() |
boolean |
isEnv() |
boolean |
isTC() |
java.lang.String |
toString() |
alice.tuprolog.Term |
toTerm()
Provides the logic term representation of the identifier
|
public TupleCentreId(java.lang.String n) throws InvalidTupleCentreIdException
n
- is the textual representation of the identifierInvalidTupleCentreIdException
- if name is not a well-formed ground logic termpublic TupleCentreId(java.lang.String tcName, java.lang.String hostName, java.lang.String portName) throws InvalidTupleCentreIdException
tcName
- logical name of the tuple centrehostName
- the netid of the device hosting the tuple centreportName
- the listening port of the tuple centreInvalidTupleCentreIdException
- if the tuple centre id is not a valid Prolog termpublic TupleCentreId(alice.tuprolog.Term name) throws InvalidTupleCentreIdException
name
- is the term representing the identifierInvalidTupleCentreIdException
- if name is not a well-formed ground logic termprotected TupleCentreId()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getName()
public java.lang.String getNode()
public int getPort()
public int hashCode()
hashCode
in class java.lang.Object
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()