public void RemoveFactor(int factorLabel) { if (FactorDictionary.ContainsKey(factorLabel)) { FactorDictionary.Remove(factorLabel); } }
public void DisableFactor(int factorLabel) { if (FactorDictionary.ContainsKey(factorLabel)) { FactorEnabled[factorLabel] = false; } }
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); } }