Package eu.bandm.tools.message
Class MessageDemux.All<E extends Enum<E>,M extends Message>
java.lang.Object
eu.bandm.tools.message.PrimitiveMessageDemux<E,M>
eu.bandm.tools.message.MessageDemux<E,M>
eu.bandm.tools.message.MessageDemux.All<E,M>
- All Implemented Interfaces:
MessageReceiver<M>
Trivial instantiation of
MessageDemux
which propagates each
message to all receivers in the map, as it has been constructed
by PrimitiveMessageDemux.setReceiver(Enum,MessageReceiver)
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.bandm.tools.message.MessageDemux
MessageDemux.All<E extends Enum<E>,
M extends Message>, MessageDemux.ByKind<M extends Message> -
Field Summary
Fields inherited from class eu.bandm.tools.message.PrimitiveMessageDemux
outlets, tagclass
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetOutputTags
(M m) Has to be re-defined by derived classes to calculate the set of enum items which indicate the receivers the message shall be propagated to.Methods inherited from class eu.bandm.tools.message.MessageDemux
all, byKind, receive
Methods inherited from class eu.bandm.tools.message.PrimitiveMessageDemux
getReceiver, receive, setReceiver
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.bandm.tools.message.MessageReceiver
ifSubcriticalThen, ifSubcriticalThen, ifSubcriticalThenElse
-
Constructor Details
-
All
Only constructor.- Parameters:
tags
- the class of the controlling tag enumeration.
-
-
Method Details
-
getOutputTags
Has to be re-defined by derived classes to calculate the set of enum items which indicate the receivers the message shall be propagated to.This is the only method which needs to be overrideden by a subclass to be operative.
- Specified by:
getOutputTags
in classMessageDemux<E extends Enum<E>,
M extends Message> - Parameters:
m
- the message to be sent.- Returns:
- all tags to which this message shall be sent.
-