コード例 #1
0
        /// <summary>
        /// Prevents a default instance of ActuatorManager class from being created
        /// </summary>
        private ActuatorManager()
        {
            SwitchConfigMap = new SwitchConfig();

            _activeSwitches     = new Dictionary <String, IActuatorSwitch>();
            _nonActuateSwitches = new Dictionary <String, IActuatorSwitch>();

            _syncObjectSwitches = new object();
        }
コード例 #2
0
ファイル: ActuatorManager.cs プロジェクト: nbsrujan/acat
        /// <summary>
        /// Prevents a default instance of ActuatorManager class from being created
        /// </summary>
        private ActuatorManager()
        {
            SwitchConfigMap = new SwitchConfig();

            _activeSwitches = new Dictionary<String, IActuatorSwitch>();
            _nonActuateSwitches= new Dictionary<String, IActuatorSwitch>();

            _syncObjectSwitches = new object();
        }
コード例 #3
0
ファイル: AnimationManager.cs プロジェクト: glwu/acat
        /// <summary>
        /// Allcoate resources, parse the config file which contains all the
        /// animations and create a list of animation objects. Subscribe to
        /// events
        /// </summary>
        /// <param name="configPath">Name of the config file for the panel</param>
        /// <returns>true on success</returns>
        public bool Init(String configPath)
        {
            bool retVal = _animationsCollection.Load(configPath);
            if (retVal)
            {
                retVal = _interpreter.LoadScripts(configPath);
            }

            if (retVal)
            {
                _switchConfig = new SwitchConfig();
                _switchConfig.Load(configPath);
            }

            if (retVal)
            {
                subscribeToInterpreterEvents();

                subscribeToActuatorEvents();
            }

            Log.Debug("returning from Anim manager init()");

            return retVal;
        }