예제 #1
0
        public bool ClearAlgorithm(string algoId)
        {
            AlgorithmDescription algorithmDescription = null;

            foreach (var algo in AssignedAlgorithmDescriptionMap)
            {
                if (algo.Key.Id == algoId && algo.Value)
                {
                    algorithmDescription = algo.Key;
                }
            }

            if (algorithmDescription != null)
            {
                AssignedAlgorithmDescriptionMap[algorithmDescription] = false;
            }
            else
            {
                return(false);
            }

            return(true);
        }
예제 #2
0
 public void SetAlgorithmActive(AlgorithmDescription algorithmDescription)
 {
     AssignedAlgorithmDescriptionMap[algorithmDescription] = true;
 }