public class StateChannel extends BasicChannel
AgentChannel to be used for states whose values can be assigned one of the DataProviderState categories.
This can be useful for color coding, etc.
Implementation note. Currently, DataProviderState categories are assigned manually in the constructor, only
to core states. If we ever want to assign categories to subsystem-specific states, it would make sense to shift those
assignments to state enum definitions.
AgentChannel.Keydata, valueMARK_ALERT, MARK_CONFIG, MARK_STATE| Constructor and Description |
|---|
StateChannel(String path,
org.lsst.ccs.bus.data.AgentInfo agent,
Map<String,Object> attributes,
Object value)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
set(Object value)
Sets the value of this channel.
|
equals, get, get, getAgent, getAgentName, getAttributes, getLocalPath, getPath, hashCode, set, toStringpublic StateChannel(String path, org.lsst.ccs.bus.data.AgentInfo agent, Map<String,Object> attributes, Object value)
path - Unique path identifying this channel.agent - Agent this channel belongs to.attributes - Static attributes and metadata associated with this channel.value - Current value.public boolean set(Object value)
BasicChannelset in interface AgentChannelset in class BasicChannelvalue - New value.true if the value has changed as a result of this call.Copyright © 2024 LSST. All rights reserved.