RemoteInfo¶
- class lsst.ts.watcher.RemoteInfo(name, index, callback_names=None, poll_names=None, index_required=True)¶
Bases:
object
Information about a remote SAL component.
- Parameters:
- name
str
Name of SAL component.
- index
int
SAL component index; use 0 if the component is not indexed.
- callback_names
list
[str
], optional Names of telemetry or event topics for which the rule is called when a sample is read. If None then no such topics. Each name must include prefix
evt_
ortel_
for event or telemetry. For example [“evt_FilterChangeInPosition”, “evt_TrackingTarget”]- poll_names
list
[str
], optional Names of telemetry or event topics which are available to the rule, but do not trigger a rule callback. If None then no such topics. Each name must include prefix
evt_
ortel_
for event or telemetry.- index_required
bool
, optional If the component is indexed, is a non-zero index required? Defaults to True, since it is rare for a rule to be able to handle more than one instance of a CSC.
- name
- Raises:
- ValueError
If any name in
callback_names
orpoll_names
does not begin withevt_
ortel_
.- ValueError
If the same name appears more than once in
callback_names + poll_names
, in other words, more than once in either list or in both lists taken together.- ValueError
If no
callback_names
norpoll_names
are specified.- ValueError
If
index
cannot be cast to anint
.
- Attributes:
- name
str
Name of SAL component.
- index
int
SAL component index; use 0 if the component is not indexed.
- callback_names
tuple
[str
] The
callback_names
argument converted to a tuple; an empty tuple if the argument is None.- poll_names
tuple
[str
] The
poll_names
argument converted to a tuple; an empty tuple if the argument is None.
- name
Attributes Summary
Get all topic names: callback_names + poll_names.
Attributes Documentation
- key¶
- topic_names¶
Get all topic names: callback_names + poll_names.