urv.olsr.data.topology
Class OLSRNodePair

java.lang.Object
  extended by urv.olsr.data.topology.OLSRNodePair

public class OLSRNodePair
extends java.lang.Object

This class represents a pair of OLSR nodes, which will be used for storing topology information in the TopologyInformationBaseTable

Author:
Marcel Arrufat Arias

Constructor Summary
OLSRNodePair(OLSRNode originator, OLSRNode advertised)
           
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
           
 OLSRNode getAdvertised()
           
 OLSRNode getOriginator()
           
 int hashCode()
           
 void setAdvertised(OLSRNode advertised)
           
 void setOriginator(OLSRNode originator)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OLSRNodePair

public OLSRNodePair(OLSRNode originator,
                    OLSRNode advertised)
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getAdvertised

public OLSRNode getAdvertised()
Returns:
Returns the advertised.

getOriginator

public OLSRNode getOriginator()
Returns:
Returns the originator.

setAdvertised

public void setAdvertised(OLSRNode advertised)
Parameters:
advertised - The advertised to set.

setOriginator

public void setOriginator(OLSRNode originator)
Parameters:
originator - The originator to set.