Add beam shear converting to DTO

This commit is contained in:
Evgeny Redikultsev
2025-06-08 15:49:17 +05:00
parent 3dab65e3bd
commit 0d7f47653b
150 changed files with 710 additions and 259 deletions

View File

@@ -28,6 +28,7 @@ namespace StructureHelperCommon.Infrastructures.Interfaces
TraceLogger = baseConvertStrategy.TraceLogger;
ConvertStrategy = convertStrategy;
}
public DictionaryConvertStrategy(Dictionary<(Guid id, Type type), ISaveable> referenceDictionary, IShiftTraceLogger? traceLogger, IConvertStrategy<T, V> convertStrategy)
{
ReferenceDictionary = referenceDictionary;

View File

@@ -3,16 +3,13 @@ using System;
namespace StructureHelperCommon.Models.Calculators
{
public interface ICalculator : ILogic, ISaveable, ICloneable
public interface ICalculator : ILogicCalculator
{
string Name { get; set; }
/// <summary>
/// Method for calculating
/// Flag of exibiting of trace data
/// </summary>
void Run();
/// <summary>
/// Result of Calculations
/// </summary>
IResult Result { get; }
bool ShowTraceData { get; set; }
}
}

View File

@@ -1,6 +1,6 @@
namespace StructureHelperCommon.Models.Calculators
{
public interface IFindParameterCalculator : ICalculator, IHasActionByResult
public interface IFindParameterCalculator : ILogicCalculator, IHasActionByResult
{
IAccuracy Accuracy { get; set; }
IFindParameterCalculatorInputData InputData { get; set; }

View File

@@ -0,0 +1,17 @@
using StructureHelperCommon.Infrastructures.Interfaces;
using System;
namespace StructureHelperCommon.Models.Calculators
{
public interface ILogicCalculator : ILogic, ISaveable, ICloneable
{
/// <summary>
/// Method for calculating
/// </summary>
void Run();
/// <summary>
/// Result of Calculations
/// </summary>
IResult Result { get; }
}
}

View File

@@ -25,6 +25,8 @@ namespace StructureHelperCommon.Models.Soils
public Guid Id => throw new NotImplementedException();
public bool ShowTraceData { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
public AnchorCalculator(SoilAnchor soilAnchor, IAnchorSoilProperties anchorSoilProperties)
{
Anchor = soilAnchor;