All Packages Class Hierarchy This Package Previous Next Index
Class macondo.mak.PlaceName
macondo.mak.PlaceName
- public class PlaceName
The name of a place.
-
PlaceName(int)
- Creates a new
PlaceName
on localhost with
a given port.
-
PlaceName(PlaceName)
- Creates a new
PlaceName
from another one.
-
PlaceName(String, int)
- Creates a new
PlaceName
with given host and port.
-
getHost()
- Gets host name.
-
getPort()
- Gets port number.
-
toString()
- Returns a string representation of the name.
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.
PlaceName
public PlaceName(int aPort)
- Creates a new
PlaceName
on localhost with
a given port.
- Parameters:
- aPort - port used by the place.
PlaceName
public PlaceName(PlaceName pn)
- Creates a new
PlaceName
from another one.
- Parameters:
- pn - the
PlaceName
to copy.
getHost
public String getHost()
- Gets host name.
- Returns:
- host name.
getPort
public int getPort()
- Gets port number.
- Returns:
- port number.
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