Esempio n. 1
0
 public void RemoveFactor(int factorLabel)
 {
     if (FactorDictionary.ContainsKey(factorLabel))
     {
         FactorDictionary.Remove(factorLabel);
     }
 }
Esempio n. 2
0
 public void DisableFactor(int factorLabel)
 {
     if (FactorDictionary.ContainsKey(factorLabel))
     {
         FactorEnabled[factorLabel] = false;
     }
 }
Esempio n. 3
0
        public byte GetUnitaryFactor(int factorLabel)
        {
            if (!FactorDictionary.ContainsKey(factorLabel))
            {
                return(byte.MaxValue);
            }
            if (!FactorEnabled[factorLabel])
            {
                return(byte.MaxValue);
            }

            switch (FactorTypes[factorLabel])
            {
            case FactorType.Unitary:
                return(((UnitaryFactor)FactorDictionary[factorLabel])(this, DataSource));

            default:
                return(byte.MaxValue);
            }
        }
Esempio n. 4
0
 public void ClearFactor()
 {
     FactorDictionary.Clear();
 }