public abstract class FocalPlaneFilter
extends org.lsst.ccs.gconsole.base.filter.AbstractChannelsFilter
FocalPlaneFilter selects some of the data channels associated with particular focal plane segments,
and splits them into one or more groups. The number of groups should be small enough for monitoring views to
conveniently display (typically 10 or less). Some views treat groups as columns in a table, others provide
combo boxes for the user to select the group to be displayed.
Filters extending this class specify (possibly many-to-many) mappings between original published data channels
and display paths in the
RXX[[/RebX][/SXX[/SegmentXX]]]/GroupName
format.
This class conforms to the general AgentChannelsFilter contract, so its subclasses can be used as
general purpose filters by any tool. It also provides an additional public method - getGroupFields(),
focal plane specific default implementations for several methods, and utility
methods intended to simplify implementing concrete subclasses.
To be useful, subclasses should implement at least one method -
getDisplayPaths(channel) - either directly or by overriding one of the
methods its default implementation uses: getDisplayPath(channel) or
getDisplayPath(originalPath).
Segment class provides static utility methods that can be useful for implementing focal plane filters.
| Modifier and Type | Class and Description |
|---|---|
static class |
FocalPlaneFilter.Descriptor |
| Modifier and Type | Field and Description |
|---|---|
static String |
CATEGORY
Persistable category for focal plane filters.
|
| Constructor and Description |
|---|
FocalPlaneFilter() |
| Modifier and Type | Method and Description |
|---|---|
FocalPlaneFilter.Descriptor |
getDescriptor() |
String |
getDisplayPath(org.lsst.ccs.gconsole.services.aggregator.AgentChannel channel)
Returns the display channel corresponding to the specified original channel.
|
protected String |
getDisplayPath(org.lsst.ccs.gconsole.services.aggregator.AgentChannel channel,
String group) |
String |
getDisplayPath(String originPath)
Returns the display channel corresponding to the specified original path.
|
protected List<String> |
getDisplayPaths(org.lsst.ccs.gconsole.services.aggregator.AgentChannel channel,
List<String> groups) |
List<String> |
getGroupFields()
Returns a list of monitor fields corresponding to groups of display paths produced by this filter.
|
List<String> |
getOriginChannels()
Returns a list of original channel paths accepted by this filter.
|
String |
getOriginPath(String displayPath)
Returns the original path corresponding to the specified display channel.
|
FocalPlaneFilter.Descriptor |
save() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamepublic static final String CATEGORY
public List<String> getOriginChannels()
AgentStatusAggregator.addListener(listener, agents, channels)
for details.
The implementation provided by this class returns a singleton list that contains a selector for channels that have RAFT ID attribute.
null if any original path for which
getDisplayPaths(channel) returns a non-empty list is accepted.public String getOriginPath(String displayPath)
null.
None of the currently known focal plane views call this method directly. However, it is called by
getOriginPaths(displayPath) implementation unless the latter is overridden.
The implementation provided by this class returns null.
displayPath - Display channel path.null if the specified path does not correspond to any original channel.public String getDisplayPath(org.lsst.ccs.gconsole.services.aggregator.AgentChannel channel)
null.
None of the currently known focal plane views call this method directly. However, it is called by
getDisplayPaths(channel) implementation unless the latter is overridden.
The implementation provided by this class forwards the call to getDisplayPath(String) method.
channel - Original data channel.public String getDisplayPath(String originPath)
null.
None of the currently known focal plane views call this method directly. However, it is called by
getDisplayPath(channel) implementation unless the latter is overridden.
The implementation provided by this class returns null.
originPath - Original path.public List<String> getGroupFields()
getFields(true).null if this filter does not provide any hints on what fields a view should use.protected List<String> getDisplayPaths(org.lsst.ccs.gconsole.services.aggregator.AgentChannel channel, List<String> groups)
protected String getDisplayPath(org.lsst.ccs.gconsole.services.aggregator.AgentChannel channel, String group)
public FocalPlaneFilter.Descriptor getDescriptor()
getDescriptor in interface org.lsst.ccs.gconsole.services.persist.PersistablegetDescriptor in class org.lsst.ccs.gconsole.base.filter.AbstractChannelsFilterpublic FocalPlaneFilter.Descriptor save()
Copyright © 2023 LSST. All rights reserved.