public TravelRouteStep([CanBeNull] int?pID, int routeID, [NotNull] string connectionString, [NotNull] string name,
                        [CanBeNull] TransportationDeviceCategory deviceCategory, double distance, int stepNumber, StrGuid guid, [CanBeNull] string stepKey) : base(name, TableName,
                                                                                                                                                                   connectionString, guid)
 {
     StepKey         = stepKey;
     TypeDescription = "Travel Route Step";
     ID = pID;
     _deviceCategory = deviceCategory;
     _distance       = distance;
     _routeID        = routeID;
     _stepNumber     = stepNumber;
 }
Exemplo n.º 2
0
 public ChargingStationSetEntry([CanBeNull] int?pID, [CanBeNull] VLoadType carChargingLoadtype, [CanBeNull] TransportationDeviceCategory transportationDeviceCategory,
                                int chargingStationSetID, double maxChargingPower, [NotNull] string connectionString,
                                [NotNull] string name, [CanBeNull] Site site, StrGuid guid, [CanBeNull] VLoadType gridChargingLoadtype) : base(name, TableName, connectionString, guid)
 {
     _site           = site;
     TypeDescription = "Site Location";
     ID = pID;
     ChargingStationSetID          = chargingStationSetID;
     _carChargingLoadtype          = carChargingLoadtype;
     _gridChargingLoadtype         = gridChargingLoadtype;
     _transportationDeviceCategory = transportationDeviceCategory;
     _maxChargingPower             = maxChargingPower;
 }
Exemplo n.º 3
0
 public TransportationDevice([NotNull] string name, [CanBeNull] int?pID, [NotNull] string connectionString,
                             [CanBeNull] string description, double speedInMPerSecond,
                             SpeedUnit speedUnit, [CanBeNull] TransportationDeviceCategory category,
                             double totalRangeinMeters,
                             double chargingPower,
                             double chargingDistanceAmount,
                             double chargingEnergyAmount,
                             [CanBeNull] VLoadType chargingLoadType, StrGuid guid) : base(name, TableName,
                                                                                          connectionString, guid)
 {
     _description = description;
     ID           = pID;
     AreNumbersOkInNameForIntegrityCheck = true;
     TypeDescription               = "Transportation Device";
     _speedInMPerSecond            = speedInMPerSecond;
     _speedUnit                    = speedUnit;
     _transportationDeviceCategory = category;
     _totalRangeInMeters           = totalRangeinMeters;
     _chargingPower                = chargingPower;
     _chargingDistanceAmount       = chargingDistanceAmount;
     _chargingEnergyAmount         = chargingEnergyAmount;
     _chargingLoadType             = chargingLoadType;
 }