EvaluationFactory
¶
-
class
EvaluationFactory
[source]¶ Bases:
taurus.core.util.singleton.Singleton
,taurus.core.taurusfactory.TaurusFactory
,taurus.core.util.log.Logger
A Singleton class that provides Evaluation related objects.
-
DEFAULT_DATABASE
= '_DefaultEvalDB'¶
-
DEFAULT_DEVICE
= '_DefaultEvaluator'¶
-
addAttributeToPolling
(attribute, period, unsubscribe_evts=False)[source]¶ Activates the polling (client side) for the given attribute with the given period (seconds).
Parameters: - attribute (:class:~`taurus.core.tango.TangoAttribute`) – attribute name.
- period (:class:~`float`) – polling period (in seconds)
- unsubscribe_evts (:class:~`bool`) – whether or not to unsubscribe from events
-
getAttribute
(attr_name, **kwargs)[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 evaluator device associated to this attribute will also be created if necessary.
Parameters: attr_name (:class:~`str`) – the attribute name string. See taurus.core.evaluation
for valid attribute namesReturn type: :class:~`EvaluationAttribute` Returns: @throws TaurusException if the given name is invalid.
-
getConfiguration
(param) → taurus.core.taurusconfiguration.TaurusConfiguration[source]¶ Obtain the object corresponding to the given attribute or full name. If the corresponding configuration already exists, the existing instance is returned. Otherwise a new instance is stored and returned.
@param[in] param taurus.core.taurusattribute.TaurusAttribute object or full configuration name
@return a taurus.core.taurusattribute.TaurusAttribute object @throws TaurusException if the given name is invalid.
-
getDatabase
(db_name=None)[source]¶ Obtain the EvaluationDatabase object.
Parameters: db_name (:class:~`str`) – this is ignored because only one database is supported Return type: :class:~`EvaluationDatabase` Returns:
-
getDevice
(dev_name)[source]¶ Obtain the object corresponding to the given device name. If the corresponding device already exists, the existing instance is returned. Otherwise a new instance is stored and returned.
Parameters: dev_name (:class:~`str`) – the device name string. See taurus.core.evaluation
for valid device namesReturn type: :class:~`EvaluationDevice` Returns: @throws TaurusException if the given name is invalid.
-
removeAttributeFromPolling
(attribute)[source]¶ Deactivate the polling (client side) for the given attribute. If the polling of the attribute was not previously enabled, nothing happens.
Parameters: attribute (:class:~`str`) – attribute name.
-
schemes
= ('eval', 'evaluation')¶
-