EpicsFactory¶
-
class
EpicsFactory[source]¶ Bases:
taurus.core.util.singleton.Singleton,taurus.core.taurusfactory.TaurusFactory,taurus.core.util.log.LoggerA Singleton class that provides Epics related objects.
-
DEFAULT_AUTHORITY= 'ca://'¶
-
DEFAULT_DEVICE= 'ca:'¶
-
caseSensitive= False¶
-
elementTypesMap= {18: <class 'taurus.core.epics.epicsauthority.EpicsAuthority'>, 3: <class 'taurus.core.epics.epicsdevice.EpicsDevice'>, 13: <class 'taurus.core.epics.epicsattribute.EpicsAttribute'>}¶
-
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. Seetaurus.core.epicsfor valid attribute namesReturn type: EpicsAttributeReturns: Raise: 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 supportedReturn type: EpicsAuthorityReturns:
-
getDevice(dev_name)[source]¶ Obtain the EpicsDevice object.
Parameters: dev_name ( str) – only one dummy device (“”) is supportedReturn type: EpicsDeviceReturns: Todo
epics.Device may be wrapped as taurus device...
-
schemes= ('ca', 'epics')¶
-