edu.UCL.xmiddle.framework.host
Class Host

java.lang.Object
  |
  +--edu.UCL.xmiddle.framework.host.Host
Direct Known Subclasses:
UDPHost

public abstract class Host
extends java.lang.Object

Host.java This is the basic xmiddle data structure which describes a host. Created: Fri Jul 20 15:29:13 2001


Field Summary
protected  LinkTable links
          Returns the host's linktable.
 
Constructor Summary
Host()
           
 
Method Summary
 LinkTable getLinks()
          Returns the link table of the host
abstract  java.lang.Object getPrimaryID()
          Returns the primaryID of the host.
abstract  java.lang.Object getSecondaryID()
          Returns the secondary ID of the host.
 void setLinks(LinkTable links)
          Gives a reference to the host's link table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

links

protected LinkTable links
Returns the host's linktable.

Constructor Detail

Host

public Host()
Method Detail

getPrimaryID

public abstract java.lang.Object getPrimaryID()
Returns the primaryID of the host. The primaryID is an object (the exact type of which is left to the implementor) which uniquely identifies a host.

Returns:
The primaryID

getSecondaryID

public abstract java.lang.Object getSecondaryID()
Returns the secondary ID of the host. The secondary ID is an object (the exact type of which is left to the implementor) which identifies a host non-uniquely. It is indended to represent the host in a human-readable name. Sort of like a "host name"

Returns:
The secondaryID

setLinks

public void setLinks(LinkTable links)
Gives a reference to the host's link table

Parameters:
links - The hosts's link table

getLinks

public LinkTable getLinks()
Returns the link table of the host

Returns:
The host's link table