public class DisplayChannelMulti extends Object implements DisplayChannel
DisplayChannel that can be associated with multiple original data channels.| Constructor and Description |
|---|
DisplayChannelMulti(String path) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChannel(AgentChannel channel)
Adds an original published data channel to the list of channels associated with this display channel.
|
List<AgentChannel> |
getChannels()
Returns an unmodifiable list of original published data channels associated with this display channel.
|
String |
getPath()
Returns the display path associated with this channel.
|
Updatable |
getTarget()
Returns the object that should be notified whenever there are changes to data channels associated with this display channel.
|
boolean |
purgeOfflineChannels(String agentName)
Removes all offline channels from the specified agent.
|
boolean |
removeChannel(String path)
Removes an original published data channel from the list of channels associated with this display channel.
|
void |
setChannel(AgentChannel channel)
Sets the original published data channel associated with this display channel.
|
void |
setChannels(Collection<AgentChannel> channels)
Sets the list of original published data channels associated with this display channel.
|
void |
setTarget(Updatable target)
Set the object that should be notified whenever there are changes to data channels associated with this display channel.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChannel, updatepublic DisplayChannelMulti(String path)
public String getPath()
DisplayChannelgetPath in interface DisplayChannelpublic Updatable getTarget()
DisplayChannelgetTarget in interface DisplayChannelpublic void setTarget(Updatable target)
DisplayChannelsetTarget in interface DisplayChanneltarget - Target to be notified of changes.public List<AgentChannel> getChannels()
DisplayChannelgetChannels in interface DisplayChannelpublic void setChannel(AgentChannel channel)
DisplayChannelsetChannel in interface DisplayChannelchannel - Data channel.public void setChannels(Collection<AgentChannel> channels)
DisplayChannelsetChannels in interface DisplayChannelchannels - Data channels to be associated with this display channel.public void addChannel(AgentChannel channel)
DisplayChanneladdChannel in interface DisplayChannelchannel - Data channel.public boolean removeChannel(String path)
DisplayChannelremoveChannel in interface DisplayChannelpath - Original path of the channel to be removed.public boolean purgeOfflineChannels(String agentName)
DisplayChannelfalse.purgeOfflineChannels in interface DisplayChannelagentName - Agent name.Copyright © 2019 LSST. All rights reserved.