diff --git a/StructureHelperCommon/FunctionDecorator.cd b/StructureHelperCommon/FunctionDecorator.cd new file mode 100644 index 0000000..b352279 --- /dev/null +++ b/StructureHelperCommon/FunctionDecorator.cd @@ -0,0 +1,48 @@ + + + + + + AAAAAAgAAAAAAAAAAAAAAAQAAAAIAAAAAQAAAAAAAAA= + Models\Functions\TableFunction.cs + + + + + + + AAAAAAgAAAAAAAAAAAAAAAQAAAAIAAAAAQAAAAAAAAA= + Models\Functions\FormulaFunction.cs + + + + + + + AAAAAAgAAAAAAAAAAAAAAAQAAAAIAAAAAQAAAAAAAAA= + Infrastructures\Interfaces\IOneVariableFunction.cs + + + + + + AAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAA= + Models\Functions\IScaleFunction.cs + + + + + + AAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA= + Models\Functions\ILimitFunction.cs + + + + + + AAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAA= + Infrastructures\Interfaces\IFunctionDecorator.cs + + + + \ No newline at end of file diff --git a/StructureHelperCommon/Infrastructures/Enums/FunctionType.cs b/StructureHelperCommon/Infrastructures/Enums/FunctionType.cs new file mode 100644 index 0000000..215ba29 --- /dev/null +++ b/StructureHelperCommon/Infrastructures/Enums/FunctionType.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StructureHelperCommon.Infrastructures.Enums +{ + public enum FunctionType + { + TableFunction, + FormulaFunction + } +} diff --git a/StructureHelperCommon/Infrastructures/Interfaces/IFunctionDecorator.cs b/StructureHelperCommon/Infrastructures/Interfaces/IFunctionDecorator.cs new file mode 100644 index 0000000..f8d5e67 --- /dev/null +++ b/StructureHelperCommon/Infrastructures/Interfaces/IFunctionDecorator.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StructureHelperCommon.Infrastructures.Interfaces +{ + public interface IFunctionDecorator + { + public IOneVariableFunction OneVariableFunction { get; } + } +} diff --git a/StructureHelperCommon/Infrastructures/Interfaces/IOneVariableFunction.cs b/StructureHelperCommon/Infrastructures/Interfaces/IOneVariableFunction.cs new file mode 100644 index 0000000..cbe3e92 --- /dev/null +++ b/StructureHelperCommon/Infrastructures/Interfaces/IOneVariableFunction.cs @@ -0,0 +1,17 @@ +using StructureHelperCommon.Infrastructures.Enums; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StructureHelperCommon.Infrastructures.Interfaces +{ + public interface IOneVariableFunction + { + public FunctionType Type { get; set; } + public string Name { get; set; } + public bool Check(); + public double GetByX(double xValue); + } +} diff --git a/StructureHelperCommon/Models/Functions/FormulaFunction.cs b/StructureHelperCommon/Models/Functions/FormulaFunction.cs new file mode 100644 index 0000000..544c02c --- /dev/null +++ b/StructureHelperCommon/Models/Functions/FormulaFunction.cs @@ -0,0 +1,40 @@ +using StructureHelperCommon.Infrastructures.Enums; +using StructureHelperCommon.Infrastructures.Interfaces; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StructureHelperCommon.Models.Functions +{ + public class FormulaFunction : IOneVariableFunction + { + public FunctionType Type { get; set; } + public string Name { get; set; } + + public bool Check() + { + throw new NotImplementedException(); + } + public double GetByX(double xValue) + { + throw new NotImplementedException(); + } + } + + public class CopyOfFormulaFunction : IOneVariableFunction + { + public FunctionType Type { get; set; } + public string Name { get; set; } + + public bool Check() + { + throw new NotImplementedException(); + } + public double GetByX(double xValue) + { + throw new NotImplementedException(); + } + } +} diff --git a/StructureHelperCommon/Models/Functions/ILimitFunction.cs b/StructureHelperCommon/Models/Functions/ILimitFunction.cs new file mode 100644 index 0000000..d56c643 --- /dev/null +++ b/StructureHelperCommon/Models/Functions/ILimitFunction.cs @@ -0,0 +1,14 @@ +using StructureHelperCommon.Infrastructures.Interfaces; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StructureHelperCommon.Models.Functions +{ + public interface ILimitFunction : IFunctionDecorator + { + public void Limit(); + } +} diff --git a/StructureHelperCommon/Models/Functions/IScaleFunction.cs b/StructureHelperCommon/Models/Functions/IScaleFunction.cs new file mode 100644 index 0000000..8735ccc --- /dev/null +++ b/StructureHelperCommon/Models/Functions/IScaleFunction.cs @@ -0,0 +1,14 @@ +using StructureHelperCommon.Infrastructures.Interfaces; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StructureHelperCommon.Models.Functions +{ + public interface IScaleFunction : IFunctionDecorator + { + public void Scale(); + } +} diff --git a/StructureHelperCommon/Models/Functions/TableFunction.cs b/StructureHelperCommon/Models/Functions/TableFunction.cs new file mode 100644 index 0000000..27e9df1 --- /dev/null +++ b/StructureHelperCommon/Models/Functions/TableFunction.cs @@ -0,0 +1,40 @@ +using StructureHelperCommon.Infrastructures.Enums; +using StructureHelperCommon.Infrastructures.Interfaces; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StructureHelperCommon.Models.Functions +{ + public class TableFunction : IOneVariableFunction + { + public FunctionType Type { get; set; } + public string Name { get; set; } + + public bool Check() + { + throw new NotImplementedException(); + } + public double GetByX(double xValue) + { + throw new NotImplementedException(); + } + } + + public class CopyOfTableFunction : IOneVariableFunction + { + public FunctionType Type { get; set; } + public string Name { get; set; } + + public bool Check() + { + throw new NotImplementedException(); + } + public double GetByX(double xValue) + { + throw new NotImplementedException(); + } + } +}