Tests of crack calculator were added
This commit is contained in:
@@ -1,8 +1,17 @@
|
||||
namespace StructureHelperCommon.Models.Calculators
|
||||
{
|
||||
/// <summary>
|
||||
/// Rate of calculation which based on iteration of finished accuracy
|
||||
/// </summary>
|
||||
public interface IAccuracy
|
||||
{
|
||||
/// <summary>
|
||||
/// Max accuracy of iteration
|
||||
/// </summary>
|
||||
double IterationAccuracy { get; set; }
|
||||
/// <summary>
|
||||
/// Limit iteration count for calculation
|
||||
/// </summary>
|
||||
int MaxIterationCount { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,9 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace StructureHelperCommon.Models.Calculators
|
||||
{
|
||||
/// <summary>
|
||||
/// Base interface of input data for calculation
|
||||
/// </summary>
|
||||
public interface IInputData
|
||||
{
|
||||
}
|
||||
|
||||
@@ -6,12 +6,18 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace StructureHelperCommon.Models.Calculators
|
||||
{
|
||||
/// <summary>
|
||||
/// Base interface of result of calculation
|
||||
/// </summary>
|
||||
public interface IResult
|
||||
{
|
||||
/// <summary>
|
||||
/// True if result of calculation is valid
|
||||
/// </summary>
|
||||
bool IsValid { get; set; }
|
||||
/// <summary>
|
||||
/// Description of result of calculation
|
||||
/// </summary>
|
||||
string? Description { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user