EvaluationFactory

Inheritance diagram of 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_AUTHORITY = '//localhost'
DEFAULT_DATABASE = '_DefaultEvalDB'
DEFAULT_DEVICE = '@DefaultEvaluator'
elementTypesMap = {3: <class 'taurus.core.evaluation.evaldevice.EvaluationDevice'>, 13: <class 'taurus.core.evaluation.evalattribute.EvaluationAttribute'>, 18: <class 'taurus.core.evaluation.evalauthority.EvaluationAuthority'>}
findObjectClass(absolute_name)[source]

Operation models are always OperationAttributes

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 (str) – the attribute name string. See taurus.core.evaluation for valid attribute names

Any aditional keyword arguments will be passed directly to the constructor of :class:EvaluationAttribute

Return type

EvaluationAttribute

Returns

@throws TaurusException if the given name is invalid.

getAttributeNameValidator()[source]

Return EvaluationAttributeNameValidator

getAuthority(name=None)[source]

Obtain the EvaluationDatabase object.

Parameters

db_name (str) – this is ignored because only one database is supported

Return type

EvaluationDatabase

Returns

getAuthorityNameValidator()[source]

Return EvaluationAuthorityNameValidator

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 (str) – the device name string. See taurus.core.evaluation for valid device names

Return type

EvaluationDevice

Returns

@throws TaurusException if the given name is invalid.

getDeviceNameValidator()[source]

Return EvaluationDeviceNameValidator

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

Singleton instance initialization.

schemes = ('eval', 'evaluation')