de.tubs.macs.util.net
Interface NetAddress

All Known Implementing Classes:
DDHAddress, LRMPAddress

public interface NetAddress
extends java.io.Serializable

This is an interface for NetAddresses used by Net implementation and the NetManager.

When creating new networks, the type of the NetAddress determines the type of the new network. The address has option data for the networks created using this address.

The NetManager will load the implementing classes at runtime. At least two constructors have to exist with the following signatures:

MyNetAddress(String typeID, String label)
MyNetAddress(String typeID, String address, Sting label)
This constructors will be used by NetManager to create new instances when calling NetManager.createAddress() methods.

Implementations exist for TCP and LRMP networks.

Author:
Heiner Grote

Method Summary
 java.lang.String getLabel()
          returns the label.
 java.lang.Object getOptions()
          return the options data associated with this address
 java.lang.String getType()
          returns the type indicator of this NetAddress as defined in properties
 void setOptions(java.lang.String options)
          set the options data
 

Method Detail

getType

public java.lang.String getType()
returns the type indicator of this NetAddress as defined in properties

getLabel

public java.lang.String getLabel()
returns the label. these can, for example, be used to determine usage of address within a session.

getOptions

public java.lang.Object getOptions()
return the options data associated with this address

setOptions

public void setOptions(java.lang.String options)
set the options data