public AffordanceDevice([CanBeNull] IAssignableDevice assignableDevice, [CanBeNull] TimeBasedProfile timeProfile, [CanBeNull] int?id, decimal timeOffset, [CanBeNull] int?affordanceID, [ItemNotNull][NotNull] ObservableCollection <RealDevice> simdevices, [ItemNotNull][NotNull] ObservableCollection <DeviceCategory> simdevcategories, [NotNull] string deviceName, [CanBeNull] VLoadType loadType, [NotNull] string connectionString, double probability, StrGuid guid) : base( deviceName, TableName, connectionString, guid) { _assignableDevice = assignableDevice; _timeProfile = timeProfile; ID = id; _timeOffset = timeOffset; _affordanceID = affordanceID; _loadType = loadType; if (!Config.IsInUnitTesting) { simdevices.CollectionChanged += SimdevicesOnCollectionChanged; } if (!Config.IsInUnitTesting) { simdevcategories.CollectionChanged += SimdevicesOnCollectionChanged; } TypeDescription = "Affordance Device"; if (_timeOffset < 0) { _timeOffset = 0; } _probability = probability; }
public RealDeviceLoadType([NotNull] string name, [CanBeNull] int?realDeviceID, [CanBeNull] int?loadTypeID, double maxPower, [CanBeNull] VLoadType loadType, double standardDeviation, double averageYearlyConsumption, [NotNull] string connectionString, StrGuid guid, [CanBeNull] int?id = null) : base(name, TableName, connectionString, guid) { _realDeviceID = realDeviceID; _loadTypeID = loadTypeID; _maxPower = maxPower; ID = id; _loadType = loadType; _standardDeviation = standardDeviation; _averageYearlyConsumption = averageYearlyConsumption; TypeDescription = "Device-Loadtype"; }
public DeviceActionProfile([CanBeNull] TimeBasedProfile timeprofile, [CanBeNull] int?id, decimal timeOffset, int deviceActionID, [NotNull] string deviceName, [CanBeNull] VLoadType vLoadType, [NotNull] string connectionString, double multiplier, StrGuid guid) : base(deviceName, TableName, connectionString, guid) { _deviceActionID = deviceActionID; _timeprofile = timeprofile; ID = id; _timeOffset = timeOffset; _vLoadType = vLoadType; TypeDescription = "Device Action Device"; if (_timeOffset < 0) { _timeOffset = 0; } _multiplier = multiplier; }