taurus taurus

Previous topic

SimulationDevice

Next topic

taurus.core.tango

This Page

SimulationFactory

Inheritance diagram of SimulationFactory

class SimulationFactory

Bases: taurus.core.util.singleton.Singleton, taurus.core.taurusfactory.TaurusFactory, taurus.core.util.log.Logger

A Singleton class designed to provide Simulation related objects.

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.

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.

init(*args, **kwargs)

Singleton instance initialization.

schemes = ('simulation',)