Fix cloninng BeamShearAction
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using StructureHelperCommon.Infrastructures.Interfaces;
|
||||
using System;
|
||||
|
||||
namespace StructureHelperCommon.Models.Forces
|
||||
{
|
||||
public class FactoredForceTuple : IFactoredForceTuple
|
||||
{
|
||||
private IUpdateStrategy<IFactoredForceTuple> updateStrategy;
|
||||
|
||||
public Guid Id { get; }
|
||||
public IForceTuple ForceTuple { get; set; } = new ForceTuple();
|
||||
public IFactoredCombinationProperty CombinationProperty { get; set; } = new FactoredCombinationProperty(Guid.NewGuid());
|
||||
@@ -19,7 +18,10 @@ namespace StructureHelperCommon.Models.Forces
|
||||
|
||||
public object Clone()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
updateStrategy ??= new FactoredForceTupleUpdateStrategy();
|
||||
FactoredForceTuple newItem = new(Guid.NewGuid());
|
||||
updateStrategy.Update(newItem, this);
|
||||
return newItem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user