public void AddChargingStation([NotNull] CalcLoadType gridchargingLoadType, [NotNull] CalcTransportationDeviceCategory cat, double chargingDeviceMaxChargingPower, [NotNull] CalcLoadType carChargingLoadType, CalcRepo calcRepo) { string name = Name + " - Charging station " + (ChargingDevices.Count + 1); CalcChargingStation station = new CalcChargingStation(cat, gridchargingLoadType, chargingDeviceMaxChargingPower, name, System.Guid.NewGuid().ToStrGuid(), _householdKey, carChargingLoadType, calcRepo); ChargingDevices.Add(station); }
public List <CalcChargingStation> CollectChargingDevicesFor([NotNull] CalcTransportationDeviceCategory category, [NotNull] CalcLoadType carLoadType) { return(ChargingDevices.Where(x => x.DeviceCategory == category && x.CarChargingLoadType == carLoadType).ToList()); }