public class NodeMessageFilter extends java.lang.Object implements NodeFilter
| Constructor and Description |
|---|
NodeMessageFilter(java.lang.String messageId)
Creates a new filter with the given message ID
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
filterNode(DTNHost node)
Returns true if the given node should be included in the filtered set
|
java.lang.String |
toString()
Returns a String presentations of the filter
|
public NodeMessageFilter(java.lang.String messageId)
messageId - The message ID used for filteringpublic boolean filterNode(DTNHost node)
NodeFilterfilterNode in interface NodeFilternode - The node to checkpublic java.lang.String toString()
NodeFiltertoString in interface NodeFiltertoString in class java.lang.Object