net.jolsrv2.repository.neighbourhood
Class SymmetricNeighbourTuple

java.lang.Object
  extended by net.jolsrv2.repository.neighbourhood.SymmetricNeighbourTuple

public class SymmetricNeighbourTuple
extends java.lang.Object

The class implements the symmetric neighbour tuple, as specified in OLSRv2.

Author:
Andreas Schjønhaug

Constructor Summary
SymmetricNeighbourTuple(CidrAddress localCAddress, CidrAddress neighbourCAddress, long symTime, long time)
          Constructor
 
Method Summary
 CidrAddress getLocalCAddress()
          Returns the local CIDR address
 CidrAddress getNeighbourCAddress()
          Returns the neighbour CIDR address
 Values getStatus()
          Returns the status
 long getSymTime()
          Returns the symmetric time
 long getTime()
          Returns the time
 void setSymTime(long symTime)
          Sets the symmetric time
 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

SymmetricNeighbourTuple

public SymmetricNeighbourTuple(CidrAddress localCAddress,
                               CidrAddress neighbourCAddress,
                               long symTime,
                               long time)
Constructor

Parameters:
localCAddress - the local CIDR address
neighbourCAddress - the neighbour CIDR address
symTime - the symmetric time
time - the time
Method Detail

getLocalCAddress

public CidrAddress getLocalCAddress()
Returns the local CIDR address

Returns:
the local CIDR address

getNeighbourCAddress

public CidrAddress getNeighbourCAddress()
Returns the neighbour CIDR address

Returns:
the neighbour CIDR address

getSymTime

public long getSymTime()
Returns the symmetric time

Returns:
the symmetric time

setSymTime

public void setSymTime(long symTime)
Sets the symmetric time

Parameters:
symTime - the symmetric time

getTime

public long getTime()
Returns the time

Returns:
the time

setTime

public void setTime(long time)
Sets the time

Parameters:
time - the time

getStatus

public Values getStatus()
Returns the status

Returns:
the status, in form of a Values object either being SYMMETRIC or LOST