public class FilteredMessage extends Object
BusMessage object and to the textual
representation, additional flags and properties added by filters.| Modifier and Type | Class and Description |
|---|---|
static class |
FilteredMessage.Flag
Flags that can trigger various actions by the tracer and/or the graphical console.
|
| Constructor and Description |
|---|
FilteredMessage(org.lsst.ccs.bus.messages.BusMessage busMessage) |
FilteredMessage(FilteredMessage filteredMessage) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFlag(FilteredMessage.Flag action)
Associates a flags with this message.
|
void |
clearFlags()
Removes all flags from this message.
|
Color |
getColor()
Returns the color to be used for printing this message.
|
EnumSet<FilteredMessage.Flag> |
getFlags()
Returns the flags associated with this message.
|
org.lsst.ccs.bus.messages.BusMessage |
getMessage()
Returns the wrapped bus message, usually the original message received over the buses.
|
String |
getText()
Returns the textual representation associated with this filtered message.
|
void |
setColor(Color color)
Sets the color to be used for printing this message.
|
void |
setText(String text)
Associates a textual representation with this filtered message.
|
public FilteredMessage(org.lsst.ccs.bus.messages.BusMessage busMessage)
public FilteredMessage(FilteredMessage filteredMessage)
public org.lsst.ccs.bus.messages.BusMessage getMessage()
public String getText()
public void setText(String text)
text - New string representation for this message.public EnumSet<FilteredMessage.Flag> getFlags()
null if there are no flags.public void addFlag(FilteredMessage.Flag action)
action - The flag.public void clearFlags()
public Color getColor()
null if there is no associated color.public void setColor(Color color)
color - Color for this message.Copyright © 2023 LSST. All rights reserved.