Add beam shear converting to DTO
This commit is contained in:
@@ -24,7 +24,7 @@ namespace StructureHelperLogics.NdmCalculations.Analyses.ByForces
|
||||
public IShiftTraceLogger? TraceLogger { get; set; }
|
||||
/// <inheritdoc/>
|
||||
public IResult Result { get; private set; }
|
||||
|
||||
public bool ShowTraceData { get; set; }
|
||||
|
||||
public ForceCalculator(
|
||||
ICheckInputDataLogic<IForceCalculatorInputData> checkInputDataLogic,
|
||||
|
||||
@@ -12,7 +12,6 @@ namespace StructureHelperLogics.NdmCalculations.Analyses.ByForces
|
||||
private IForceTupleCalcLogic calcLogic;
|
||||
|
||||
public IForceTupleInputData InputData { get; set; }
|
||||
public string Name { get; set; }
|
||||
public IResult Result => result;
|
||||
|
||||
public Action<IResult> ActionToOutputResults { get; set; }
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace StructureHelperLogics.NdmCalculations.Analyses.ByForces
|
||||
/// <summary>
|
||||
/// Calculator for obtaining solution from loader calculator
|
||||
/// </summary>
|
||||
public interface IForceTupleCalculator : ICalculator, IHasActionByResult
|
||||
public interface IForceTupleCalculator : ILogicCalculator, IHasActionByResult
|
||||
{
|
||||
/// <summary>
|
||||
/// Input data for analysis
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace StructureHelperLogics.NdmCalculations.Analyses.ByForces
|
||||
{
|
||||
public interface ILimitCurveCalculator : ICalculator, IHasActionByResult
|
||||
public interface ILimitCurveCalculator : ILogicCalculator, IHasActionByResult
|
||||
{
|
||||
Action<IResult> ActionToOutputResults { get; set; }
|
||||
ISurroundData SurroundData { get; set; }
|
||||
|
||||
@@ -20,18 +20,14 @@ namespace StructureHelperLogics.NdmCalculations.Analyses.ByForces
|
||||
private LimitCurvesCalculatorUpdateStrategy updateStrategy => new();
|
||||
|
||||
public Guid Id { get; }
|
||||
public string Name { get; set; }
|
||||
public ILimitCurvesCalculatorInputData InputData { get; set; }
|
||||
public string Name { get; set; } = "New calculator";
|
||||
public ILimitCurvesCalculatorInputData InputData { get; set; } = new LimitCurvesCalculatorInputData();
|
||||
public IResult Result => result;
|
||||
|
||||
public Action<IResult> ActionToOutputResults { get; set; }
|
||||
public IShiftTraceLogger? TraceLogger { get; set; }
|
||||
public bool ShowTraceData { get; set; } = false;
|
||||
|
||||
public LimitCurvesCalculator()
|
||||
{
|
||||
Name = "New calculator";
|
||||
InputData = new LimitCurvesCalculatorInputData();
|
||||
}
|
||||
public void Run()
|
||||
{
|
||||
TraceLogger?.AddMessage($"Calculator type: {GetType()}", TraceLogStatuses.Service);
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using StructureHelperCommon.Infrastructures.Interfaces;
|
||||
using StructureHelperCommon.Models.Calculators;
|
||||
using StructureHelperCommon.Models.Sections;
|
||||
using StructureHelperCommon.Services;
|
||||
|
||||
namespace StructureHelperLogics.NdmCalculations.Analyses.ByForces.Logics
|
||||
@@ -19,6 +17,7 @@ namespace StructureHelperLogics.NdmCalculations.Analyses.ByForces.Logics
|
||||
CheckObject.IsNull(sourceObject);
|
||||
if (ReferenceEquals(targetObject, sourceObject)) { return; }
|
||||
targetObject.Name = sourceObject.Name;
|
||||
targetObject.ShowTraceData = sourceObject.ShowTraceData;
|
||||
targetObject.InputData ??= new ForceCalculatorInputData();
|
||||
inputDataUpdateStrategy.Update(targetObject.InputData, sourceObject.InputData);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user