protected override void OnChangeCategoryConstraints(ICategoryConstraints categoryConstraints) { foreach (var indicators in _indicatorsDictionary.Values) { indicators.CategoryConstraints = categoryConstraints; } }
public CompositeQuantityIndicators(string name, ICategoryConstraints constraints, IEnumerable <QuantityIndicators> indicatorsList) : this(name, constraints) { var indicators = indicatorsList.ToArray(); foreach (var quantityIndicators in indicators) { _indicatorsDictionary[quantityIndicators.Name] = quantityIndicators; } }
public Productivity2(Employee employee) { Employee = employee ?? throw new ArgumentNullException(); _timeConstraints = new DefaultTimeConstraints(); _categoryConstraints = new DefaultCategoryConstraints(); _times = new TimeIndicators("Рабочее время", _timeConstraints); _gathered = new CompositeQuantityIndicators("Набор", _categoryConstraints); FillGetheringIndicators(_gathered); _placed = new LineIndicators(_indicatorsNames[OperationGroups.Placing], _categoryConstraints); _defragment = new LineIndicators(_indicatorsNames[OperationGroups.Defragmentation], _categoryConstraints); _inventory = new LineIndicators(_indicatorsNames[OperationGroups.Inventory], _categoryConstraints); _scanned = new CompositeQuantityIndicators("Сканирование"); //FillScanningIndicators( _scanned ); _shipment = new CompositeQuantityIndicators(_indicatorsNames[OperationGroups.Shipment]); //FillShipmentIndicators( _shipment ); }
protected QuantityIndicators(string name, ICategoryConstraints constraints) : base(name) { _categoryConstraints = constraints ?? throw new ArgumentNullException(); }
protected override void OnChangeCategoryConstraints(ICategoryConstraints categoryConstraints) { throw new NotImplementedException(); }
protected ValueIndicators(string name, ICategoryConstraints constraints) : base(name, constraints) { ValueList = new List <double>(_categoryConstraints.Count); }
public CargoIndicators(string name, ICategoryConstraints constraints) : base(name, constraints) { }
public CompositeQuantityIndicators(string name, ICategoryConstraints constraints) : base(name, constraints) { _indicatorsDictionary = new Dictionary <string, QuantityIndicators>(); }
public WeightIndicators(string name, ICategoryConstraints constraints) : base(name, constraints) { }
public VolumeIndicators(string name, ICategoryConstraints constraints) : base(name, constraints) { }