EpicsFactory

Inheritance diagram of 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:

EpicsAttribute

Raises:
TaurusException:

if the given name is invalid.

getAttributeNameValidator()[source]

Return EpicsAttributeNameValidator

getAuthority(name=None)[source]

Obtain the Epics (ca) authority object.

Parameters:

name (str) – only a dummy authority (“ca://”) is supported

Returns:

Return type:

EpicsAuthority

getAuthorityNameValidator()[source]

Return EpicsAuthorityNameValidator

getDevice(dev_name)[source]

Obtain the EpicsDevice object.

Parameters:

dev_name (str) – only one dummy device (“”) is supported

Returns:

Return type:

EpicsDevice

Todo

epics.Device may be wrapped as taurus device…

getDeviceNameValidator()[source]

Return EpicsDeviceNameValidator

init(*args, **kwargs)[source]

Singleton instance initialization.

schemes = ('ca', 'epics')