net.jolsrv2.repository.processforward
Class ProcessedTuple

java.lang.Object
  extended by net.jolsrv2.repository.processforward.ProcessedTuple

public class ProcessedTuple
extends java.lang.Object

The class implements the processed tuple, as specified in OLSRv2.

Author:
Andreas Schjønhaug

Constructor Summary
ProcessedTuple(MessageTypes type, java.net.InetAddress address, int sequenceNumber, long time)
          Constructor
 
Method Summary
 java.net.InetAddress getAddress()
          Returns the IP address
 int getSequenceNumber()
          Returns the sequence number
 long getTime()
          Returns the time
 MessageTypes getType()
          Returns the message type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessedTuple

public ProcessedTuple(MessageTypes type,
                      java.net.InetAddress address,
                      int sequenceNumber,
                      long time)
Constructor

Parameters:
type - the message type
address - the IP address
sequenceNumber - the sequence number
time - the time
Method Detail

getType

public MessageTypes getType()
Returns the message type

Returns:
the message type

getAddress

public java.net.InetAddress getAddress()
Returns the IP address

Returns:
the IP address

getSequenceNumber

public int getSequenceNumber()
Returns the sequence number

Returns:
the sequence number

getTime

public long getTime()
Returns the time

Returns:
the time