1using System.Collections.ObjectModel;
10 private readonly IReadOnlyDictionary<int, int> _production;
11 private readonly IReadOnlyDictionary<int, int> _setup;
12 private readonly IReadOnlyDictionary<int, int> _inventory;
13 private readonly IReadOnlyDictionary<(
int First,
int Second),
int>
15 private readonly IReadOnlyDictionary<(
int From,
int To),
int>
20 IDictionary<int, int>? production =
null,
21 IDictionary<int, int>? setup =
null,
22 IDictionary<int, int>? inventory =
null,
23 IDictionary<(
int First,
int Second),
int>? disaggregated =
null,
24 IDictionary<(
int From,
int To),
int>? arcs =
null)
27 new ReadOnlyDictionary<int, int>(
29 ?
new Dictionary<int, int>()
30 :
new Dictionary<int, int>(production));
33 new ReadOnlyDictionary<int, int>(
35 ?
new Dictionary<int, int>()
36 :
new Dictionary<int, int>(setup));
39 new ReadOnlyDictionary<int, int>(
41 ?
new Dictionary<int, int>()
42 :
new Dictionary<int, int>(inventory));
45 new ReadOnlyDictionary<(int First, int Second), int>(
47 ?
new Dictionary<(
int First,
int Second),
int>()
48 :
new Dictionary<(
int First,
int Second),
int>(
52 new ReadOnlyDictionary<(int From, int To), int>(
54 ?
new Dictionary<(
int From,
int To),
int>()
55 :
new Dictionary<(
int From,
int To),
int>(arcs));
59 public IReadOnlyDictionary<int, int>
Production => _production;
62 public IReadOnlyDictionary<int, int>
Setup => _setup;
65 public IReadOnlyDictionary<int, int>
Inventory => _inventory;
71 public IReadOnlyDictionary<(
int First,
int Second),
int>
77 public IReadOnlyDictionary<(
int From,
int To),
int>
Arcs => _arcs;