public ExcelExporter(
     IJ4JLoggerFactory loggerFactory
     )
 {
     _loggerFactory = loggerFactory ?? throw new NullReferenceException(nameof(loggerFactory));
     _logger        = _loggerFactory.CreateLogger(typeof(ExcelExporter));
 }
        public ExcelTable(
            ExcelSheet excelSheet,
            IJ4JLoggerFactory loggerFactory,
            TableOrientation orientation = TableOrientation.ColumnHeaders,
            int?row = null,
            int?col = null
            )
        {
            _logger = loggerFactory?.CreateLogger(typeof(ExcelTable)) ??
                      throw new NullReferenceException(nameof(loggerFactory));

            _orientation = orientation;

            ExcelSheet = excelSheet ?? throw new NullReferenceException(nameof(excelSheet));

            if (row.HasValue && col.HasValue)
            {
                UpperLeftColumn = col.Value;
                UpperLeftRow    = row.Value;
            }
            else
            {
                UpperLeftRow    = ExcelSheet.ActiveRowNumber;
                UpperLeftColumn = ExcelSheet.ActiveColumnNumber;
            }
        }
Beispiel #3
0
        public ExcelSheet(
            ISheet sheet,
            IJ4JLoggerFactory loggerFactory
            )
        {
            _loggerFactory = loggerFactory ?? throw new NullReferenceException(nameof(loggerFactory));
            _logger        = _loggerFactory.CreateLogger(typeof(ExcelSheet));

            Sheet = sheet ?? throw new NullReferenceException(nameof(sheet));
        }
        public SimulationContext(IJ4JLoggerFactory loggerFactory)
            : base("Investment Simulator")
        {
            _logger = loggerFactory?.CreateLogger(typeof(SimulationContext)) ??
                      throw new NullReferenceException(nameof(loggerFactory));

            Betas = new BetaDistribution(this, loggerFactory);

            ChildModels.Add(Betas);
        }
 public BetaDistribution(SimulationContext simContext, IJ4JLoggerFactory loggerFactory)
     : base("beta", simContext)
 {
     _logger = loggerFactory?.CreateLogger(this.GetType()) ??
               throw new NullReferenceException(nameof(loggerFactory));
 }
 public Simulator(IJ4JLoggerFactory loggerFactory)
 {
     _logger = loggerFactory?.CreateLogger(typeof(Simulator)) ??
               throw new NullReferenceException(nameof(loggerFactory));
 }