public CalcChargingStationDto([NotNull] CalcTransportationDeviceCategoryDto deviceCategory, [NotNull] CalcLoadTypeDto gridchargingLoadType, double maxChargingPower,
                               [NotNull] CalcLoadTypeDto carChargingLoadType)
 {
     DeviceCategory       = deviceCategory;
     GridChargingLoadType = gridchargingLoadType;
     CarChargingLoadType  = carChargingLoadType;
     MaxChargingPower     = maxChargingPower;
 }
 public CalcTravelRouteStepDto([NotNull] string name, int id,
                               [NotNull] CalcTransportationDeviceCategoryDto transportationDeviceCategory, int stepNumber,
                               double distanceInM,
                               StrGuid guid)
 {
     Name = name;
     ID   = id;
     TransportationDeviceCategory = transportationDeviceCategory;
     StepNumber  = stepNumber;
     DistanceInM = distanceInM;
     Guid        = guid;
 }
 public CalcTransportationDeviceDto([NotNull] string name, int id, [NotNull] CalcTransportationDeviceCategoryDto category,
                                    double averageSpeedInMPerS, [NotNull][ItemNotNull] List <CalcDeviceLoadDto> loads,
                                    [NotNull] HouseholdKey householdKey, double fullRangeInMeters,
                                    double energyToDistanceFactor,
                                    double maxChargingPower,
                                    [CanBeNull] string chargingCalcLoadTypeName, [CanBeNull] StrGuid?chargingCalcLoadTypeGuid,
                                    StrGuid guid, bool isLimitedToSingleLocation)
 {
     Name                      = name;
     ID                        = id;
     Category                  = category;
     AverageSpeedInMPerS       = averageSpeedInMPerS;
     Loads                     = loads;
     HouseholdKey              = householdKey;
     FullRangeInMeters         = fullRangeInMeters;
     EnergyToDistanceFactor    = energyToDistanceFactor;
     MaxChargingPower          = maxChargingPower;
     ChargingCalcLoadTypeName  = chargingCalcLoadTypeName;
     ChargingCalcLoadTypeGuid  = chargingCalcLoadTypeGuid;
     Guid                      = guid;
     IsLimitedToSingleLocation = isLimitedToSingleLocation;
 }
예제 #4
0
        public void AddTravelRouteStep([NotNull] string stepName, int stepIntID, [NotNull] CalcTransportationDeviceCategoryDto deviceCategory, int stepNumber, double distanceInM, StrGuid guid)
        {
            CalcTravelRouteStepDto trs = new CalcTravelRouteStepDto(stepName, stepIntID, deviceCategory, stepNumber, distanceInM, guid);

            Steps.Add(trs);
        }
예제 #5
0
 public void AddChargingStation([NotNull] CalcLoadTypeDto gridLoadType, [NotNull] CalcTransportationDeviceCategoryDto cat,
                                double chargingDeviceMaxChargingPower, [NotNull] CalcLoadTypeDto carLoadType)
 {
     ChargingStations.Add(new CalcChargingStationDto(cat, gridLoadType, chargingDeviceMaxChargingPower, carLoadType));
 }