A Singleton class designed to provide Simulation related objects.
Obtain the class object corresponding to the given name.
| Parameter: | absolute_name (str) – the object absolute name string |
|---|---|
| Return type: | tau.core.TauModel |
| Returns: | a class object that should be a subclass of a tau.core.TauModel |
| Raise: | (tau.core.TauException) if the given name is invalid. |
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.
| Parameter: | alias (str) – attribute name string alias |
|---|---|
| Return type: | tau.core.TauAttribute |
| Returns: | attribute object |
| Raise: | (NameError) if the alias does not exist |
| Raise: | (tau.core.TauException) if the given alias is invalid. |
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.
| Parameter: | alias (str) – configuration name string alias |
|---|---|
| Return type: | tau.core.TauConfiguration |
| Returns: | configuration object |
| Raise: | (NameError) if the alias does not exist |
| Raise: | (tau.core.TauException) if the given alias is invalid. |
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.
| Parameter: | alias (str) – database name string alias. If None, the default database is used |
|---|---|
| Return type: | tau.core.TauDatabase |
| Returns: | database object |
| Raise: | (NameError) if the alias does not exist |
| Raise: | (tau.core.TauException) if the given alias is invalid. |
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.
| Parameter: | alias – device name string alias. |
|---|---|
| Return type: | tau.core.TauDevice |
| Returns: | device object |
| Raise: | (NameError) if the alias does not exist |
| Raise: | (tau.core.TauException) if the given alias is invalid. |
Returns the value for a given key
| Parameter: | key (str) – a key |
|---|---|
| Return type: | str |
| Returns: | the value for the given key |
(Re)Loads the given resource.
| Parameters: | |
|---|---|
| Return type: | |
| Returns: | a dictionary version of the given resource object |
(Re)Loads the given resource.
| Parameters: | |
|---|---|
| Return type: | |
| Returns: | a dictionary version of the given resource object |