Add BeamShearCalculator
This commit is contained in:
@@ -13,15 +13,33 @@ namespace StructureHelperLogics.Models.BeamShears
|
||||
|
||||
public Guid Id { get; }
|
||||
|
||||
public List<IBeamShearAction> BeamShearActions { get; }
|
||||
public List<IBeamShearAction> BeamShearActions {get;}
|
||||
|
||||
public List<ICalculator> Calculators { get; } = new();
|
||||
|
||||
public List<IBeamShearSection> ShearSections { get; } = new();
|
||||
|
||||
public List<IStirrup> Stirrups { get; } = new();
|
||||
|
||||
public List<ICalculator> Calculators { get; }
|
||||
|
||||
public BeamShearRepository(Guid id)
|
||||
{
|
||||
Id = id;
|
||||
}
|
||||
|
||||
public void DeleteBeamShearAction(IBeamShearAction beamShearAction)
|
||||
{
|
||||
foreach (var calculator in Calculators)
|
||||
{
|
||||
if (calculator is IBeamShearCalculator beamShearCalculator)
|
||||
{
|
||||
var inputData = beamShearCalculator.InputData;
|
||||
inputData.BeamShearActions.Remove(beamShearAction);
|
||||
}
|
||||
}
|
||||
BeamShearActions.Remove(beamShearAction);
|
||||
}
|
||||
|
||||
public object Clone()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
|
||||
Reference in New Issue
Block a user