Add beam shear converting to DTO
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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; }
|
||||
|
||||
17
StructureHelperCommon/Models/Calculators/ILogicCalculator.cs
Normal file
17
StructureHelperCommon/Models/Calculators/ILogicCalculator.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user