EpicsFactory

Inheritance diagram of EpicsFactory
class EpicsFactory[source]

Bases: taurus.core.util.singleton.Singleton, taurus.core.taurusfactory.TaurusFactory, taurus.core.util.log.Logger

A Singleton class that provides Epics related objects.

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

Return type

EpicsAttribute

Returns

Raise
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

Return type

EpicsAuthority

Returns

getAuthorityNameValidator()[source]

Return EpicsAuthorityNameValidator

getDevice(dev_name)[source]

Obtain the EpicsDevice object.

Parameters

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

Return type

EpicsDevice

Returns

Todo

epics.Device may be wrapped as taurus device…

getDeviceNameValidator()[source]

Return EpicsDeviceNameValidator

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

Singleton instance initialization.

schemes = ('ca', 'epics')