public class SubsystemSelectorFilter extends AbstractChannelsFilter
AbstractChannelsFilter that selects channels from the specified subsystem.
Strips the subsystem name, but leaves the channel path otherwise unchanged.Persistable.Descriptor| Modifier and Type | Field and Description |
|---|---|
static String |
CREATOR_PATH |
ALL, CREATOR_PATH_UNFILTERED, descriptorCATEGORY| Constructor and Description |
|---|
SubsystemSelectorFilter(String subsystem) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAgents()
Returns a list of agent names accepted by this filter.
|
String |
getDisplayPath(String originPath)
Returns the display channel corresponding to the specified original path.
|
String |
getName()
Returns the name of this filter.
|
String |
getOriginPath(String displayPath)
Returns the original path corresponding to the specified display channel.
|
getDescriptor, getUnfilteredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDisplayChannels, getDisplayPath, getDisplayPath, getDisplayPaths, getDisplayPaths, getFields, getGroups, getOriginChannels, getOriginPaths, isSelector, matchTemplateedit, getCategory, getPath, restore, restore, savepublic static final String CREATOR_PATH
@Create(category="AgentChannelsFilter", name="Subsystem Selector", path="Built-In/Basic/Subsystem Selector", description="Selects channels from the specified subsystem only. Strips the subsystem name, but leaves the channel path otherwise unchanged.") public SubsystemSelectorFilter(@Par(desc="Subsystem name.") String subsystem)
public List<String> getAgents()
AgentChannelsFiltergetOriginChannels(): every selector that does not explicitly specify agent is
only applied to agents from the list.
The default implementation returns null.
null if any agent is accepted.public String getOriginPath(String displayPath)
AgentChannelsFilternull.
The default implementation returns the display path provided as an argument.
displayPath - Display channel path.null if the specified path does not correspond to any original channel.public String getDisplayPath(String originPath)
AgentChannelsFilternull.
If the specified original channel is not accepted by this filter,
this method should return an empty list. null should never be returned.
The default implementation returns an unmodified original path.
originPath - Original path.public String getName()
PersistableAgentChannelsFilternull if this filter has no name.Copyright © 2023 LSST. All rights reserved.