/// <summary> /// Initializes the manager. Reads and parses the actuators /// XML file and creates a list of actuators from it. The /// extension dirs parameter contains the root directory under /// which to search for Actuator DLL files. The directories /// are specified in a comma delimited fashion. /// E.g. Base, Hawking /// These are relative to the application execution directory or /// to the directory where the ACAT framework has been installed. /// It recusrively walks the directories and looks for Actuator /// extension DLL files /// </summary> /// <param name="extensionDirs">Directories to search</param> /// <returns>true on success</returns> public bool Init(IEnumerable <String> extensionDirs) { bool retVal = true; // load all the acutators if (_actuators == null) { String configFile = UserManager.GetFullPath(ActuatorConfigFileName); _actuators = new Actuators(); retVal = _actuators.Load(extensionDirs, configFile); if (retVal) { retVal = init(_actuators); } } if (retVal) { // load the switchmap config file for the user which contains // switch configuration mappings String switchConfigFile = UserManager.GetFullPath(SwitchConfigMapFilename); retVal = SwitchConfigMap.Load(switchConfigFile); } return(retVal); }
/// <summary> /// Loads actuator DLL's. /// The extension dirs parameter contains the root directory under /// which to search for Actuator DLL files. The directories /// are specified in a comma delimited fashion. /// E.g. Default, SomeDir /// These are relative to the application execution directory or /// to the directory where the ACAT framework has been installed. /// It recusrively walks the directories and looks for Actuator /// extension DLL files /// </summary> /// <param name="extensionDirs">Directories to search</param> /// <returns>true on success</returns> public bool LoadExtensions(IEnumerable <String> extensionDirs, bool all = false) { bool retVal = true; if (_actuators == null) { String configFile = UserManager.GetFullPath(ActuatorSettingsFileName); _actuators = new Actuators(); retVal = _actuators.Load(extensionDirs, configFile, all); } return(retVal); }
/// <summary> /// Initializes the manager. Reads and parses the actuators /// XML file and creates a list of actuators from it. The /// extension dirs parameter contains the root directory under /// which to search for Actuator DLL files. The directories /// are specified in a comma delimited fashion. /// E.g. Base, Hawking /// These are relative to the application execution directory or /// to the directory where the ACAT framework has been installed. /// It recusrively walks the directories and looks for Actuator /// extension DLL files /// </summary> /// <param name="extensionDirs">Directories to search</param> /// <returns>true on success</returns> public bool Init(IEnumerable <String> extensionDirs) { bool retVal = true; _initInProgress = true; _thread = new Thread(calibrationHandlerThread) { IsBackground = true }; _thread.Start(); // load all the acutators if (_actuators == null) { String configFile = UserManager.GetFullPath(ActuatorConfigFileName); _actuators = new Actuators(); retVal = _actuators.Load(extensionDirs, configFile); if (retVal) { retVal = init(); } } if (retVal) { // load the switchmap config file for the user which contains // switch configuration mappings String switchConfigFile = UserManager.GetFullPath(SwitchConfigMapFilename); retVal = SwitchConfigMap.Load(switchConfigFile); } _initInProgress = false; return(retVal); }
/// <summary> /// Initializes the manager. Reads and parses the actuators /// XML file and creates a list of actuators from it. The /// extension dirs parameter contains the root directory under /// which to search for Actuator DLL files. The directories /// are specified in a comma delimited fashion. /// E.g. Base, Hawking /// These are relative to the application execution directory or /// to the directory where the ACAT framework has been installed. /// It recusrively walks the directories and looks for Actuator /// extension DLL files /// </summary> /// <param name="extensionDirs">Directories to search</param> /// <returns>true on success</returns> public bool Init(IEnumerable<String> extensionDirs) { bool retVal = true; // load all the acutators if (_actuators == null) { String configFile = UserManager.GetFullPath(ActuatorConfigFileName); _actuators = new Actuators(); retVal = _actuators.Load(extensionDirs, configFile); if (retVal) { retVal = init(_actuators); } } if (retVal) { // load the switchmap config file for the user which contains // switch configuration mappings String switchConfigFile = UserManager.GetFullPath(SwitchConfigMapFilename); retVal = SwitchConfigMap.Load(switchConfigFile); } return retVal; }
/// <summary> /// Initializes the manager. Reads and parses the actuators /// XML file and creates a list of actuators from it. The /// extension dirs parameter contains the root directory under /// which to search for Actuator DLL files. The directories /// are specified in a comma delimited fashion. /// E.g. Base, Hawking /// These are relative to the application execution directory or /// to the directory where the ACAT framework has been installed. /// It recusrively walks the directories and looks for Actuator /// extension DLL files /// </summary> /// <param name="extensionDirs">Directories to search</param> /// <returns>true on success</returns> public bool Init(IEnumerable<String> extensionDirs) { bool retVal = true; _initInProgress = true; _thread = new Thread(calibrationHandlerThread) { IsBackground = true }; _thread.Start(); // load all the acutators if (_actuators == null) { String configFile = UserManager.GetFullPath(ActuatorConfigFileName); _actuators = new Actuators(); retVal = _actuators.Load(extensionDirs, configFile); if (retVal) { retVal = init(); } } if (retVal) { // load the switchmap config file for the user which contains // switch configuration mappings String switchConfigFile = UserManager.GetFullPath(SwitchConfigMapFilename); retVal = SwitchConfigMap.Load(switchConfigFile); } _initInProgress = false; return retVal; }