FSM-ConfDB Interface: Definition of constants | |
The following constants are used by the FSM - ConfDB Interface | |
const string | g_csErrorState = "ERROR" |
const string | g_csReadyState = "READY" |
const string | g_csNotReadyState = "NOT_READY" |
const int | fwFSMConfDB_OK = 0 |
const int | fwFSMConfDB_ERROR = -1 |
Functions | |
int | fwFSMConfDB_initialize (string sDomain, string sConfigurator) |
int | fwFSMConfDB_getFwHierarchy (string sDomain, string &sFwHierarchy) |
int | fwFSMConfDB_setFwHierarchy (string sDomain, string sFwHierarchy) |
bool | fwFSMConfDB_getUseConfDB (string sConfigurator) |
void | fwFSMConfDB_updateDeviceList (string sDomain, string sConfigurator) |
dyn_string | fwFSMConfDB_getDomainDevices (string sDomain) |
void | fwFSMConfDB_getAllDevices (string domain, string lunit, dyn_string &devices, int ignore_disabled=0) |
bool | fwFSMConfDB_isConfigurator (string sDevice) |
string | fwFSMConfDB_getDomainConfigurator (string sDomain) |
string | fwFSMConfDB_removeSystemName (string sDpName) |
bool | fwFSMConfDB_waitForStateChange (string sDomain, string sConfigurator, time timeout) |
int | fwFSMConfDB_waitForConfiguratorApplyRecipe (string sDomain, string sConfigurator) |
void | fwFSMConfDB_terminateCurrentCommand (string sDomain, string sDevice) |
int | fwFSMConfDB_initConfDBConnection () |
dyn_string | fwFSMConfDB_getConfiguratorDevices (string sConfigurator) |
int | fwFSMConfDB_cacheExists (string sCache) |
int | fwFSMConfDB_cacheAllRecipesForMode (string sDomain, string sMode="") |
int | fwFSMConfDB_cacheAllRecipes (string sDomain) |
int | fwFSMConfDB_setState (string sDevice, string sState) |
int | fwFSMConfDB_setCurrentMode (string sConfigurator, string sMode) |
string | fwFSMConfDB_getCurrentMode (string sConfigurator) |
int | fwFSMConfDB_applyRecipe (string sDomain, string sDevice, string sCommand, string sMode="") |
int | fwFSMConfDB_ApplyRecipe (string sDomain, string sDevice, string sCommand, string sMode="") |
int | fwFSMConfDB_applyUserRecipe (string recipeName, dyn_string devices="") |
int | fwFSMConfDB_checkDevicesInRecipe (string sRecipe, dyn_string dsDevices, dyn_string &dsCommonDevices, bool useConfDB=false) |
int | fwFSMConfDB_getAllTreeCUs (string fsmTree, dyn_string &CUlist) |
dyn_string | fwFSMConfDB_getAllCUs () |
string | fwFSMConfDB_getConfiguratorName (string sDomain) |
int | fwFSMConfDB_addConfigurator (string sDomain, string type="") |
int | fwFSMConfDB_changeConfigurator (string sDomain, int applyRecipeMode, int applyRecipeTimeout=20, bool useConfDB=FALSE) |
int | fwFSMConfDB_removeConfigurator (string sDomain, string sConfigurator) |
int | fwFSMConfDB_addAllConfigurators () |
string | fwFSMConfDB_removeConfiguratorName (string sDpName) |
int | fwFSMConfDB_getApplyRecipeUsingConfigurator (string sDomain) |
int | fwFSMConfDB_waitForDevices (string sDomain, string sConfigurator) |
int | fwFSMConfDB_applyAllRecipesFromCache (string sDomain, string sConfigurator, string sMode="") |
int | fwFSMConfDB_applyRecipeFromCache (string sDomain, string sDevice, string sCommand, string sMode="") |
int | fwFSMConfDB_ApplyRecipeFromCache (string sDomain, string sDevice, string sCommand, string sMode="") |
int | fwFSMConfDB_findDeviceNumber (string sDomain, string sDevice) |
int | fwFSMConfDB_requestApplyRecipes (string sDomain, string sDevice, string sCommand, string sMode="") |
int | fwFSMConfDB_getCache (string sDomain, string sDevice, string sCommand, string sMode, string &sCache) |
|
Add a configurator to all SMI++ domains for all trees.
|
|
The function adds a configurator to a SMI++ domain.
|
|
Fuction used by the configurator to apply the recipes to all enabled devices in a CU
|
|
Applies a recipe cache associated to a FSM command to a device
|
|
Applies a recipe cache associated to a FSM command to a device
|
|
Checks if it's either the configurator or the device to apply the recipe and calls respectively the function fwFSMConfDB_requestApplyRecipes()or fwFSMConfDB_ApplyRecipe().
|
|
Checks if it's either the configurator or the device to apply the recipe and calls respectively the function fwFSMConfDB_requestApplyRecipes()or fwFSMConfDB_applyRecipe().
|
|
Applies a user recipe cache associated to a device or group of devices
|
|
Loads to PVSS caches all existing recipes in the confDB
|
|
Synchronizes the contents (i.e. recipes) of the configuration DB and the internal PVSS caches used by the Configuration DB tool, for a given running mode of the experiment. This function also sets up the internal data-points which hold the so-called "Recipe Dictionary". The recipe dictionary is an internal table which holds the cache names for the different devices and recipes in a SMI++ control domain.
|
|
Checks if a recipe cache exists
|
|
The function changes the configurator settings.
|
|
Checks that all devices specified in the second argument are defined in the corresponding recipe
|
|
Finds the index number of the sDevice in the list of devices handle by a FSMConfDB configurator
|
|
Get all CU's from all Tree's nodes
|
|
Gets all Device Units in a SMI++ domain recursively
|
|
Get all CU's belonging to a Tree.
|
|
Gets the flag value that indicates the mode to be used to apply recipes
|
|
Retrieves the cache name where the configuration information is stored for a given mode and command in a SMI++ domain
|
|
Gets the list of device units to be configured by a FSMConfDB configurator
|
|
The function returns the name of the configurator to an SMI++ domain
|
|
Gets the running mode(PHYSICS,COSMICS,...) to the FSMConfDB Configurator
|
|
Retrieves the name of the configurator object in an SMI++ domain
|
|
Retrives the list of devices to be handle by a FSMConfDB configurator
|
|
Gets the FW hierarchy in use for the specified control domain
|
|
Gets the UseConfDB flag
|
|
Initializes the connection to the ConfDB for a given setup
|
|
Initializes the FSMConfDB configurator. In addition, it also initializes the connection to the Configuration DB and the internal list of devices to be configured in the SMI++ domain. If connection to ConfDB cannot be established, the configurator goes to an ERROR state, otherwise to NOT_READY state.
|
|
Function to check whether a device is a configurator or not
|
|
Removes a configurator of an SMI++ domain.
|
|
Removes the configurator name from a dp-name
|
|
Removes the system name from a dp-name
|
|
Request configurator to apply recipe(populate configurator's variables)if command comes from a parent, otherwise apply recipe to current device
|
|
Sets the running mode to the FSMConfDB Configurator
|
|
Sets the FW hierarchy in use for the specified control domain
|
|
Sets the state of the FSMConfDB Configurator
|
|
Terminates the current action for a device in a SMI++ domain
|
|
Updates the internal list of devices handled by a FSMConfDB configurator
|
|
This function waits for the configurator to apply the recipes. Is intended to be called from the DU to pause their transitions while the configurator applies all recipes to the devices. Should only be used when the option:Configurator apply recipe is active.
|
|
Waits for the requests of all the enabled devices that are executing an action
|
|
This function connects to the state of the FSMConfDB configurator. Should the state of the configurator is set to READY after the time given by the timeout value the function returns TRUE, otherwise FALSE. This function is intended to be called from the DU in the hierarchy to pause their transitions while the configurator object loads all recipes from the ConfDB.
|
|
general FSMCOnfDB error code |
|
FSMConfDB return OK |
|
Name of the ERROR state of the configurator |
|
Name of the NOT_READY state of the configurator |
|
Name of the READY state of the configurator |
|
Name of the FW Hierarchy to be used |