net.jolsrv2.repository.topology
Class AttachedNetworkTuple

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

public class AttachedNetworkTuple
extends java.lang.Object

The class implements the attached network tuple, as specified in OLSRv2.

Author:
Andreas Schjønhaug

Constructor Summary
AttachedNetworkTuple(CidrAddress networkCAddress, CidrAddress gatewayCAddress, int ansn, long time)
          Constructor
 
Method Summary
 int getAnsn()
          Returns the ANSN
 CidrAddress getGatewayCAddress()
          Returns the gateway CIDR address
 CidrAddress getNetworkCAddress()
          Returns the network CIDR 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

AttachedNetworkTuple

public AttachedNetworkTuple(CidrAddress networkCAddress,
                            CidrAddress gatewayCAddress,
                            int ansn,
                            long time)
Constructor

Parameters:
networkCAddress - the network CIDR address
gatewayCAddress - the gateway CIDR address
ansn - the ANSN
time - the time
Method Detail

getNetworkCAddress

public CidrAddress getNetworkCAddress()
Returns the network CIDR address

Returns:
the network CIDR address

getGatewayCAddress

public CidrAddress getGatewayCAddress()
Returns the gateway CIDR address

Returns:
the gateway CIDR 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