ResourcesFactory
- class ResourcesFactory(*p, **k)[source]
A Singleton class designed to provide Simulation related objects.
Import from
taurus.core.resource
as:from taurus.core.resource import ResourcesFactory
- DftResourceName = 'taurus_resources.py'
the default resource file name
- DftResourcePriority = 10
priority for the default resource
- findObjectClass(absolute_name)[source]
Obtain the class object corresponding to the given name.
- Parameters:
absolute_name (str) – the object absolute name string
- Returns:
the class for the model object mapped by absolute_name, or None if absolute_name is invalid.
- Return type:
- getAttribute(name)[source]
Obtain the attribute model object referenced by name.
- Parameters:
name (str) – name
- Returns:
attribute object :raise: (taurus.core.taurusexception.TaurusException) if name is invalid
- Return type:
- getAuthority(name=None)[source]
Obtain the authority model object referenced by name.
- Parameters:
name (str) – name
- Returns:
authority object :raise: (taurus.core.taurusexception.TaurusException) if name is invalid
- Return type:
- getDevice(name)[source]
Obtain the device model object referenced by name.
- Parameters:
name (str) – name
- Returns:
device object :raise: (taurus.core.taurusexception.TaurusException) if name is invalid
- Return type:
- loadResource(obj=None, priority=1, name=None)
(Re)Loads the given resource.
- Parameters:
- Returns:
a dictionary version of the given resource object
- Return type:
- reloadResource(obj=None, priority=1, name=None)[source]
(Re)Loads the given resource.
- Parameters:
- Returns:
a dictionary version of the given resource object
- Return type:
- schemes = ('res', 'resource')
‘res’ and ‘resources’ are the supported schemes
- Type:
the list of schemes that this factory supports. For this factory