All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class macondo.mak.PlaceName

macondo.mak.PlaceName

public class PlaceName
The name of a place.


Constructor Index

 o PlaceName(int)
Creates a new PlaceName on localhost with a given port.
 o PlaceName(PlaceName)
Creates a new PlaceName from another one.
 o PlaceName(String, int)
Creates a new PlaceName with given host and port.

Method Index

 o getHost()
Gets host name.
 o getPort()
Gets port number.
 o toString()
Returns a string representation of the name.

Constructors

 o PlaceName
 public PlaceName(String anHost,
                  int aPort)
Creates a new PlaceName with given host and port.

Parameters:
anHost - host where the place is running.
aPort - port used by the place.
 o PlaceName
 public PlaceName(int aPort)
Creates a new PlaceName on localhost with a given port.

Parameters:
aPort - port used by the place.
 o PlaceName
 public PlaceName(PlaceName pn)
Creates a new PlaceName from another one.

Parameters:
pn - the PlaceName to copy.

Methods

 o getHost
 public String getHost()
Gets host name.

Returns:
host name.
 o getPort
 public int getPort()
Gets port number.

Returns:
port number.
 o toString
 public String toString()
Returns a string representation of the name.

Returns:
a string representation of the name.

All Packages  Class Hierarchy  This Package  Previous  Next  Index