
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 two additional public methods - getGroups() and
#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 |
|---|---|
List<String> |
getAgents()
Returns a list of subsystem names accepted by this filter, or
null if any subsystem might be accepted. |
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.
|
List<String> |
getDisplayPaths(org.lsst.ccs.gconsole.services.aggregator.AgentChannel channel)
Returns a list of display channels for the specified original channel.
|
protected List<String> |
getDisplayPaths(org.lsst.ccs.gconsole.services.aggregator.AgentChannel channel,
List<String> groups) |
List<String> |
getGroups()
Returns a list of groups generated 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.
|
List<String> |
getOriginPaths(String displayPath)
Returns the list of original paths mapped to the specified display channel.
|
FocalPlaneFilter.Descriptor |
save() |
addListener, notifyListeners, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getUnfilteredpublic static final String CATEGORY
public List<String> getAgents()
null if any subsystem might be accepted.
The implementation provided by this class returns null.
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 List<String> getOriginPaths(String displayPath)
The implementation provided by this class returns a list that contains one element - the
path returned by getOriginPath(...) - or an
empty list if getOriginPath(...) returns null.
displayPath - Display channel path.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> getDisplayPaths(org.lsst.ccs.gconsole.services.aggregator.AgentChannel channel)
Note that if getOriginChannels() method returns a non-null list and that list does not contain
the path of the specified original channel, most views will not display it.
The implementation provided by this class returns a list that contains one element - the
path returned by getDisplayPath(channel) - or an
empty list if getDisplayPath(channel) returns null.
channel - Original data channel.public List<String> getGroups()
The implementation provided by this class returns null.
null if this filter does not provide an explicit list of groups.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 © 2020 LSST. All rights reserved.