|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectNPTLab.MessageWrapper
public class MessageWrapper
Class that wraps a message with additional information useful for the ProfileCast(CSI: T) routing algorithm
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 |
---|
public double similarity
Constructor Detail |
---|
public MessageWrapper(core.Message m)
m
- Message htat is wrappedMethod Detail |
---|
public static void setDestNode(DTNHost host)
public void setTrace(Trace Trace)
public void setSimilarity(double sim)
public double getSimilarity()
public Trace getTrace()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |