EpicsFactory
- class EpicsFactory(*p, **k)[source]
A Singleton class that provides Epics related objects.
Import from
taurus.core.epics
as:from taurus.core.epics import EpicsFactory
- DEFAULT_AUTHORITY = 'ca://'
- DEFAULT_DEVICE = 'ca:'
- caseSensitive = True
- elementTypesMap = {3: <class 'taurus.core.epics.epicsdevice.EpicsDevice'>, 13: <class 'taurus.core.epics.epicsattribute.EpicsAttribute'>, 18: <class 'taurus.core.epics.epicsauthority.EpicsAuthority'>}
- getAttribute(attr_name)[source]
Obtain the object corresponding to the given attribute name. If the corresponding attribute already exists, the existing instance is returned. Otherwise a new instance is stored and returned. The device associated to this attribute will also be created if necessary.
- Parameters:
attr_name (str) – the attribute name string. See
taurus.core.epics
for valid attribute names- Returns:
- Return type:
- Raises:
- TaurusException:
if the given name is invalid.
- getAuthority(name=None)[source]
Obtain the Epics (ca) authority object.
- Parameters:
name (str) – only a dummy authority (“ca://”) is supported
- Returns:
- Return type:
- getDevice(dev_name)[source]
Obtain the EpicsDevice object.
- Parameters:
dev_name (str) – only one dummy device (“”) is supported
- Returns:
- Return type:
Todo
epics.Device may be wrapped as taurus device…
- schemes = ('ca', 'epics')