java.lang.Object
org.bzdev.drama.common.MessageFilter
- Direct Known Subclasses:
CompoundMessageFilter
Provides the ability to modify messages and indicate if they
should be dropped.
Message filters are used by the drama-simulation implementation
to allow users of the drama packages to indicate how messages
should be modified or when they should be dropped during message
transmission. Groups and domains make use of message filters when
these are provided.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DELETED
Constant indicating that a message has been dropped.
-
-
Constructor Details
-
MessageFilter
public MessageFilter()
-
-
Method Details
-
filterMessage
Filter a message.- Parameters:
msg
- the original message- Returns:
- a modified message; MessageFilter.DELETED if the message should be dropped
-