All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class AcmeNet.Assn2.ServiceAddress

AcmeNet.Assn2.ServiceAddress

public class ServiceAddress
The address of a service. A ServiceAddress is a (NetAddress, serviceNumber) pair.


Constructor Index

 o ServiceAddress(NetAddress, int)

Method Index

 o getAddress()
 o getServiceNum()

Constructors

 o ServiceAddress
 public ServiceAddress(NetAddress a,
                       int sn)
Parameters:
a - the NetAddress of the service
sn - the service number that the service is bound to

Methods

 o getAddress
 public NetAddress getAddress()
Returns:
the NetAddress of the service
 o getServiceNum
 public int getServiceNum()
Returns:
the service number that the service is bound to

All Packages  Class Hierarchy  This Package  Previous  Next  Index