net.jolsrv2.repository.neighbourhood
Class TwoHopTuple

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

public class TwoHopTuple
extends java.lang.Object

The class implements the two hop tuple, as specified in OLSRv2.

Author:
Andreas Schjønhaug

Constructor Summary
TwoHopTuple(CidrAddress localCAddress, CidrAddress neighbourCAddress, CidrAddress twoHopCAddress, long time)
          Constructor
 
Method Summary
 CidrAddress getLocalCAddress()
          Returns the local CIDR address
 CidrAddress getNeighbourCAddress()
          Returns the neighbour CIDR address
 long getTime()
          Returns the time
 CidrAddress getTwoHopCAddress()
          Return the two hop CIDR address
 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

TwoHopTuple

public TwoHopTuple(CidrAddress localCAddress,
                   CidrAddress neighbourCAddress,
                   CidrAddress twoHopCAddress,
                   long time)
Constructor

Parameters:
localCAddress - the local CIDR address
neighbourCAddress - the neighbour CIDR address
twoHopCAddress - the two hop CIDR address
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

getTwoHopCAddress

public CidrAddress getTwoHopCAddress()
Return the two hop CIDR address

Returns:
the two hop CIDR address

getTime

public long getTime()
Returns the time

Returns:
the time

setTime

public void setTime(long time)
Sets the time

Parameters:
time - the time