public ECS(int windowthr, int heaterthr, ISensor tempSensor, IRegulator heater, IRegulator window) { _tempSensor = tempSensor; _heater = heater; _window = window; SetHeaterThreshold(heaterthr); SetWindowThreshold(windowthr); }
public static RegulatorEntity Update(RegulatorEntity from, IRegulator to) { from.Name = to.Name; from.InternalId = to.InternalId; from.IsDefault = to.IsDefault; from.Countries = to.Countries; from.TermsOfUseUrl = to.TermsOfUseUrl; from.MarginTradingConditions = to.MarginTradingConditions; from.CreditVoucherUrl = to.CreditVoucherUrl; from.RiskDescriptionUrl = to.RiskDescriptionUrl; return(Create(from)); }
public static RegulatorEntity Create(IRegulator regulator) { return(new RegulatorEntity { PartitionKey = GeneratePartition(), RowKey = GenerateRowKey(regulator.InternalId), InternalId = regulator.InternalId, Name = regulator.Name, IsDefault = regulator.IsDefault, Countries = regulator.Countries, TermsOfUseUrl = regulator.TermsOfUseUrl, MarginTradingConditions = regulator.MarginTradingConditions, CreditVoucherUrl = regulator.CreditVoucherUrl, RiskDescriptionUrl = regulator.RiskDescriptionUrl }); }
public void addRegulator(IRegulator r, Location loc) { rm.mapOfTemperatureRegulators.Add(loc, (TemperatureRegulator)r); }
public void Regulator(IRegulator obj) { Console.WriteLine("Увеличить температуру устройства. Введите 6"); Console.WriteLine("Снизить температуру устройства. Введите 7"); }
public void addRegulator(IRegulator r, Location loc) { rm.mapOfWetnessRegulators.Add(loc, (WetnessRegulator)r); }
public void addRegulator(IRegulator r, Location loc) { rm.mapOfLightRegulators.Add(loc, (LightRegulator)r); }
public Stock(string name, int value, IRegulator stockRegulator = null) { Navn = name; Value = value; _stockRegulator = stockRegulator ?? new StockRegulator(new DefaultRandom(1, 3), this); }
public void addRegulator(IRegulator r, Location loc) { rm.mapOfAcidityRegulators.Add(loc, (AcidityRegulator)r); }