Add calculators saving

This commit is contained in:
Evgeny Redikultsev
2024-10-19 20:32:25 +05:00
parent d16c0e1f79
commit d3a1992f4d
131 changed files with 1742 additions and 375 deletions

View File

@@ -12,16 +12,16 @@ namespace StructureHelperLogics.NdmCalculations.Cracking
{
public class CrackCalculatorInputData : ICrackCalculatorInputData
{
public Guid Id { get; } = new();
/// <inheritdoc/>
public List<INdmPrimitive> Primitives { get; private set; }
public List<INdmPrimitive> Primitives { get; private set; } = new();
/// <inheritdoc/>
public List<IForceAction> ForceActions { get; private set; }
public IUserCrackInputData UserCrackInputData { get; set; }
public CrackCalculatorInputData()
public List<IForceAction> ForceActions { get; private set; } = new();
public IUserCrackInputData UserCrackInputData { get; set; } = GetNewUserData();
private static UserCrackInputData GetNewUserData()
{
Primitives = new();
ForceActions = new();
UserCrackInputData = new UserCrackInputData()
return new UserCrackInputData()
{
SetSofteningFactor = true,
SofteningFactor = 1d,