net.jolsrv2.repository.topology
Class AnsnHistoryTuple

java.lang.Object
  extended by net.jolsrv2.repository.topology.AnsnHistoryTuple

public class AnsnHistoryTuple
extends java.lang.Object

The class implements the ANSN history tuple, as specified in OLSRv2.

Author:
Andreas Schjønhaug

Constructor Summary
AnsnHistoryTuple(java.net.InetAddress originatorAddress, int ansn, long time)
          Constructor
 
Method Summary
 int getAnsn()
          Returns the ANSN
 java.net.InetAddress getOriginatorAddress()
          Returns the originator IP address
 long getTime()
          Returns the time
 void setAnsn(int ansn)
          Sets the ANSN
 void setTime(long time)
          Sets the time
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnsnHistoryTuple

public AnsnHistoryTuple(java.net.InetAddress originatorAddress,
                        int ansn,
                        long time)
Constructor

Parameters:
originatorAddress - the originator IP address
ansn - the ANSN
time - the time
Method Detail

getOriginatorAddress

public java.net.InetAddress getOriginatorAddress()
Returns the originator IP address

Returns:
the originator IP address

getAnsn

public int getAnsn()
Returns the ANSN

Returns:
the ANSN

setAnsn

public void setAnsn(int ansn)
Sets the ANSN

Parameters:
ansn - the ANSN

getTime

public long getTime()
Returns the time

Returns:
the time

setTime

public void setTime(long time)
Sets the time

Parameters:
time - the time