Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

alice.tucson
Class TupleCentreId  view TupleCentreId download TupleCentreId.java

java.lang.Object
  extended byalice.respect.TupleCentreId
      extended byalice.tucson.TupleCentreId
All Implemented Interfaces:
java.io.Serializable, alice.tuplemedium.TupleCentreId

public class TupleCentreId
extends alice.respect.TupleCentreId

Defines the Tuple Centre identifier for TuCSoN logic tuple centres. They are described in term of a name (string) and address (string). The address is a valid IP address with optionally the port specified using ':': deis.unibo.it:3000, 137.211.92.01:5000

Version:
1.0

Field Summary
protected  java.lang.String address
          the IP address of the tuple centre (such as alice.acme.org, alice.acme.org:2000, 137.204.191.188, 137.204.191.188:2500)
 
Fields inherited from class alice.respect.TupleCentreId
name
 
Constructor Summary
TupleCentreId()
          Constructs a default tuple centre id (default@localost)
TupleCentreId(java.lang.String name)
          Constructs a tuple centre id on localhost, specifying the name
TupleCentreId(java.lang.String name, java.lang.String addr)
          Constructs a generic tuple centre id, specifying name and address
 
Method Summary
 java.lang.String getAddress()
          Gets the tuple centre address part of the identifier
 java.lang.String getHost()
          Gets the host information of the tuple centre address part of the identifier
 int getPort()
          Gets (if present) the port information of the tuple centre address part of the identifier
 java.lang.String toString()
          Gets the string representation of the tuple centre identifier
 
Methods inherited from class alice.respect.TupleCentreId
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

address

protected java.lang.String address
the IP address of the tuple centre (such as alice.acme.org, alice.acme.org:2000, 137.204.191.188, 137.204.191.188:2500)

Constructor Detail

TupleCentreId

public TupleCentreId()
Constructs a default tuple centre id (default@localost)


TupleCentreId

public TupleCentreId(java.lang.String name,
                     java.lang.String addr)
Constructs a generic tuple centre id, specifying name and address


TupleCentreId

public TupleCentreId(java.lang.String name)
Constructs a tuple centre id on localhost, specifying the name

Method Detail

toString

public java.lang.String toString()
Gets the string representation of the tuple centre identifier


getAddress

public java.lang.String getAddress()
Gets the tuple centre address part of the identifier


getHost

public java.lang.String getHost()
Gets the host information of the tuple centre address part of the identifier


getPort

public int getPort()
Gets (if present) the port information of the tuple centre address part of the identifier