Exemple #1
0
        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);
        }
Exemple #2
0
 public List <CalcChargingStation> CollectChargingDevicesFor([NotNull] CalcTransportationDeviceCategory category, [NotNull] CalcLoadType carLoadType)
 {
     return(ChargingDevices.Where(x => x.DeviceCategory == category && x.CarChargingLoadType == carLoadType).ToList());
 }