public Beam(IList <ISpan> spans, ICollection <INode> nodes, IBeamCalculationEngine beamCalculationEngine, IResultsContainer resultsContainer, bool includeSelfWeight) : this(spans, nodes, includeSelfWeight) { CalculationEngine = beamCalculationEngine ?? throw new ArgumentNullException(nameof(beamCalculationEngine)); Results = resultsContainer ?? throw new ArgumentNullException(nameof(beamCalculationEngine)); }
public Beam(IList <ISpan> spans, ICollection <INode> nodes, bool includeSelfWeight) { Spans = spans ?? throw new ArgumentNullException(nameof(spans)); Nodes = nodes ?? throw new ArgumentNullException(nameof(nodes)); CalculationEngine = new DirectStiffnessCalculationEngine(this); Results = new ResultsContainer(this); IncludeSelfWeight = includeSelfWeight; }