TopicCallback#
- class lsst.ts.watcher.TopicCallback(topic, rule, model)#
Bases:
objectCall rules and/or wrapper callbacks when a topic receives data.
- Parameters:
- topic_wrappers#
List of topic wrappers.
- call_event#
An event that is set whenever this topic callback’s
__call__method finishes normally (without raising an exception). Intended for unit tests, which may clear this event and then wait for it to be set.- Type:
Attributes Summary
Get the topic name, with an
evt_ortel_prefix.Get the SAL index of the remote.
Get the name of the remote.
Methods Summary
__call__(data)Call self as a function.
add_rule(rule)Add a rule.
add_topic_wrapper(wrapper)Add a topic wrapper, or other non-rule callable.
Attributes Documentation
- attr_name#
Get the topic name, with an
evt_ortel_prefix.This is the name of the wrapped topic attribute in
RemoteWrapper.
- remote_index#
Get the SAL index of the remote.
- remote_name#
Get the name of the remote.
Methods Documentation