17 using System.Collections.Generic;
29 private readonly Func<IEnumerable<CoarseFundamental>, IEnumerable<Symbol>> _coarseSelector;
30 private readonly Func<IEnumerable<FineFundamental>, IEnumerable<Symbol>> _fineSelector;
39 Func<IEnumerable<CoarseFundamental>, IEnumerable<Symbol>> coarseSelector,
40 Func<IEnumerable<FineFundamental>, IEnumerable<Symbol>> fineSelector,
42 : base(true, universeSettings)
44 _coarseSelector = coarseSelector;
45 _fineSelector = fineSelector;
55 PyObject coarseSelector,
56 PyObject fineSelector,
59 : base(true, universeSettings)
61 Func<IEnumerable<FineFundamental>,
object> fineFunc;
62 Func<IEnumerable<CoarseFundamental>,
object> coarseFunc;
63 if (fineSelector.TryConvertToDelegate(out fineFunc) &&
64 coarseSelector.TryConvertToDelegate(out coarseFunc))
66 _fineSelector = fineFunc.ConvertToUniverseSelectionSymbolDelegate();
67 _coarseSelector = coarseFunc.ConvertToUniverseSelectionSymbolDelegate();
74 return _coarseSelector(coarse);
80 return _fineSelector(fine);