예제 #1
0
        /// <summary>
        /// Update the FuzzySets from the Global cache
        /// </summary>
        public void GetSets()
        {
            Type oldSets = null;

            if(_sets != null)
                oldSets = _sets.GetType(); //Scope out what sets are coming in...

            _sets = Globals.Controller; //Update the Sets from Global cache

            if(_sets != null) //Incase there have been no sets defined for the Simulator...
                if(_sets.GetType() != oldSets) //Check for Simulator Type Change
                    DrawSets(); //If they're new, draw 'em
        }