NPTLab
Class MessageWrapper

java.lang.Object
  extended by NPTLab.MessageWrapper

public class MessageWrapper
extends java.lang.Object

Class that wraps a message with additional information useful for the ProfileCast(CSI: T) routing algorithm

Author:
Andrea Campanella, NPTLab, Public university of Milan, 2014

Field Summary
 double similarity
           
 
Constructor Summary
MessageWrapper(core.Message m)
          Constructor that assigns the wrapped message to the instance of the class.
 
Method Summary
 double getSimilarity()
          Returns the similarity for this message whit him.
 Trace getTrace()
          Returns the Destination mobility trace for this message
static void setDestNode(DTNHost host)
           
 void setSimilarity(double sim)
          Sets the similarity to be compared with the destination
 void setTrace(Trace Trace)
          Sets the Destination molbility trace for the message.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

similarity

public double similarity
Constructor Detail

MessageWrapper

public MessageWrapper(core.Message m)
Constructor that assigns the wrapped message to the instance of the class.

Parameters:
m - Message htat is wrapped
Method Detail

setDestNode

public static void setDestNode(DTNHost host)

setTrace

public void setTrace(Trace Trace)
Sets the Destination molbility trace for the message.


setSimilarity

public void setSimilarity(double sim)
Sets the similarity to be compared with the destination


getSimilarity

public double getSimilarity()
Returns the similarity for this message whit him.

Returns:
double similarity

getTrace

public Trace getTrace()
Returns the Destination mobility trace for this message

Returns:
Trace