taurus taurus

Previous topic

TaurusExceptionListener

Next topic

TaurusInfo

This Page

TaurusFactory

Inheritance diagram of TaurusFactory

class TaurusFactory

Bases: object

The base class for valid Factories in Taurus.

DefaultPollingPeriod = 3000
addAttributeToPolling(attribute, period, unsubscribe_evts=False)

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
changeDefaultPollingPeriod(period)
disablePolling()

Disable the application tango polling

enablePolling()

Enable the application tango polling

findObject(absolute_name)

Must give an absolute name

findObjectClass(string absolute_name) → taurus.core.TaurusModel subclass

Obtain the class object corresponding to the given name.

@param[in] absolute_name the object absolute name string

@return a class object that should be a subclass of a taurus.core.TaurusModel @throws TaurusException if the given name is invalid.

getAttribute(string attr_name) → taurus.core.TaurusAttribute

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.

@param[in] attr_name string attribute name

@return a taurus.core.TaurusAttribute object @throws TaurusException if the given name is invalid.

getConfiguration(param) → taurus.core.TaurusConfiguration

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 object or full configuration name

@return a taurus.core.TaurusAttribute object @throws TaurusException if the given name is invalid.

getDatabase(string db_name) → taurus.core.TaurusDatabase

Obtain the object corresponding to the given database name or the default database if db_name is None. If the corresponding database object already exists, the existing instance is returned. Otherwise a new instance is stored and returned.

@param[in] db_name database name string. It should be formed like:
<schema>://<authority>. If <schema> is ommited then it will use the default schema. if db_name is None, the default database is used

@return a taurus.core.TaurusDatabase object @throws TaurusException if the given name is invalid.

getDefaultPollingPeriod()
getDevice(string dev_name) → taurus.core.TaurusDevice

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.

@param[in] dev_name the device name string. It should be formed like:
<schema>://<authority>/<device name>. If <schema> is ommited then it will use the default schema. If authority is ommited then it will use the default authority for the schema.

@return a taurus.core.TaurusDevice object @throws TaurusException if the given name is invalid.

getObject(cls, name)
getOperationMode()
getSerializationMode()

Gives the serialization operation mode.

Return type::class:~`TaurusSerializationMode`
Returns:the current serialization mode
isPollingEnabled()

Tells if the local tango polling is enabled

Return type::class:~`bool`
Returns:wheter or not the polling is enabled
registerAttributeClass(attr_name, attr_klass)
registerDeviceClass(dev_klass_name, dev_klass)
removeAttributeFromPolling(attribute)

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 = ()
setOperationMode(OperationMode mode) → None

Sets the operation mode for the Tango system.

setSerializationMode(mode)

Sets the serialization mode for the system.

Parameters:mode (:class:~`TaurusSerializationMode`) – the new serialization mode
supportsScheme(scheme)
unregisterAttributeClass(attr_name)
unregisterDeviceClass(dev_klass_name)