Package eu.bandm.tools.message
package eu.bandm.tools.message
Messages and positions in documents,
see the user documentation.
-
ClassDescriptionAbstract base class of the metatools message architecture.Fundamental enum type for categorization of all
Message
objects.MessageAsync<M extends Message>A sub-class ofSingleSender
which lets the drain's receive method run asynchronouously in a separate thread.Executes some code (given explicitly as argument) and sends the first exception caught to its message drain.Counts all received messages, per kind, in total, and per critical/non-critical.Auxiliary class which concretizesPrimitiveMessageDemux
in so far it calculates a set of enum values for every message it receives, and then calls thePrimitiveMessageDemux.receive(Enum,Message)
method for all these.Trivial instantiation ofMessageDemux
which propagates each message to all receivers in the map, as it has been constructed byPrimitiveMessageDemux.setReceiver(Enum,MessageReceiver)
MessageDemux.ByKind<M extends Message>AMessageDemux
which sorts messages by their kind.Does nothing with every message it receives.Wraps any kind of message to send it as an exception.Interprets theSimpleMessage.args
values as arguments to string formatting and callsString.format(String,Object...)
.Wraps any text as argument, which itself shall be translated and formatted.MessageKindFilter<M extends Message>A filter which propagates only those messages theMessage.Kind
of which is currently in the selection.A filter which propagates only those messages which lie in certain areas of locations.A message receiver which receives a message of one type, and propagates the result of applying a function to this message, which may be of different type.MessagePasser<M extends Message>Simply passes every message it receives to a single target.MessagePrinter<M extends Message>Prints textual representations of all received messages to an output stream.MessagePrinter.Indenting<M extends Message>Specialization ofMessagePrinter
with addtional features.MessageReceiver<M extends Message>Everything which can receive a Message.MessageStore<M extends Message>Storage for a sequence ofMessage
s with dynamic sorting, graphic interfaces and propagation facilities.MessageStore_<M extends Message>Common superclass for the two kinds of message storage,MessageStore
andMessageStoreSorted
.MessageStoreSorted<M extends Message>Storage for a sequence ofMessage
s in order of their arrival.MessageStripExceptions<M extends Message>A filter which strips off all exceptions, or at least the stack traces, for a slimmer appearance of print-outs.MessageSync<M extends Message>Can accept messages from many different parallel threads.MessageTee<M extends Message>Re-sends the message received sequentially to a multitude of current drains. The identical message object is sent to all receivers, so in most use cases it should be treated read-only by subsequent processing in the drains.MessageThrower<M extends Message>"Throws" each message it receives after wrapping it into aMessageException
.Prints textual representations of all receiv1ed messages to an output stream.Pipes every printed line (on its completion) into one "log" message sent to the messageOutstream2Log.receiver
.Patterns for messages.Auxiliary class administrating an enumeration type and a map from this type to optionalMessageReceiver
s.A minimal selection of message data which is useful in practice.Passes all incoming messages to its drain, after applying the given location map.Log message with not more informative content than "I am still alive".SingleSender<M extends Message>Common superclass of all which send messages to one single drain.SwingMessageField<M extends Message>A one-line display for messages to be included in a Swing based GUI.Multi-line rendering for message text.A graphic object showing a traffic light in different phases.The states of aTrafficLight
and of aTrafficMessageReceiver
.Graphic indication of received messages.