Skip to content

Commit accc96e

Browse files
committed
添加注释
1 parent b0a2aa8 commit accc96e

27 files changed

+307
-67
lines changed

csharp/ToolGood.Algorithm2/AlgorithmEngineEx.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public AlgorithmEngineEx(ConditionCache multiConditionCache)
6060
/// <summary>
6161
/// 带缓存关键字大小写参数
6262
/// </summary>
63+
/// <param name="multiConditionCache"></param>
6364
/// <param name="ignoreCase"></param>
6465
public AlgorithmEngineEx(ConditionCache multiConditionCache, bool ignoreCase)
6566
{

csharp/ToolGood.Algorithm2/DiyNameInfo.cs

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,27 @@
33

44
namespace ToolGood.Algorithm
55
{
6+
/// <summary>
7+
/// 自定义类型
8+
/// </summary>
69
public class DiyNameInfo
710
{
8-
public List<String> Parameters=new List<String>();
9-
public List<String> Functions=new List<String>();
10-
11+
/// <summary>
12+
/// 自定义 参数
13+
/// </summary>
14+
public List<String> Parameters { get; set; }
15+
/// <summary>
16+
/// 自定义方法
17+
/// </summary>
18+
public List<String> Functions { get; set; }
19+
20+
/// <summary>
21+
/// 自定义类型
22+
/// </summary>
23+
public DiyNameInfo()
24+
{
25+
Parameters = new List<String>();
26+
Functions = new List<String>();
27+
}
1128
}
1229
}

csharp/ToolGood.Algorithm2/Internals/AntlrCharStream.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class AntlrCharStream : ICharStream
2525
/// all characters to upper case or lower case.
2626
/// </summary>
2727
/// <param name="stream">The stream to wrap.</param>
28-
/// <param name="upper">If true force each symbol to upper case, otherwise force to lower.</param>
2928
public AntlrCharStream(ICharStream stream)
3029
{
3130
this.stream = stream;

csharp/ToolGood.Algorithm2/Internals/ConditionCacheInfo.cs

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,26 @@
44

55
namespace ToolGood.Algorithm.Internals
66
{
7-
internal class ConditionCacheInfo
7+
/// <summary>
8+
/// 条件缓存
9+
/// </summary>
10+
public class ConditionCacheInfo
811
{
9-
12+
/// <summary>
13+
/// 类型名
14+
/// </summary>
1015
public string CategoryName;
11-
16+
/// <summary>
17+
/// 备注
18+
/// </summary>
1219
public string Remark;
13-
20+
/// <summary>
21+
/// 条件字符串
22+
/// </summary>
1423
public string ConditionString;
1524

1625
private ProgContext _ConditionProg;
17-
public ProgContext ConditionProg {
26+
internal ProgContext ConditionProg {
1827
get {
1928
if (_ConditionProg == null && string.IsNullOrEmpty(ConditionString) == false && string.IsNullOrEmpty(LastError)) {
2029
_ConditionProg = Parse(ConditionString);
@@ -23,10 +32,12 @@ public ProgContext ConditionProg {
2332
}
2433
set { _ConditionProg = value; }
2534
}
26-
35+
/// <summary>
36+
/// 工式字符串
37+
/// </summary>
2738
public string FormulaString;
2839
private ProgContext _FormulaProg;
29-
public ProgContext FormulaProg {
40+
internal ProgContext FormulaProg {
3041
get {
3142
if (_FormulaProg == null && string.IsNullOrEmpty(FormulaString) == false && string.IsNullOrEmpty(LastError)) {
3243
_FormulaProg = Parse(FormulaString);
@@ -36,7 +47,9 @@ public ProgContext FormulaProg {
3647
set { _FormulaProg = value; }
3748
}
3849

39-
50+
/// <summary>
51+
/// 最后错误信息
52+
/// </summary>
4053
public string LastError;
4154
private ProgContext Parse(string exp)
4255
{

csharp/ToolGood.Algorithm2/Internals/ConditionTree.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
namespace ToolGood.Algorithm.Internals
66
{
7+
/// <summary>
8+
/// 条件树
9+
/// </summary>
710
public class ConditionTree
811
{
912
/// <summary>
@@ -31,11 +34,16 @@ public class ConditionTree
3134
/// </summary>
3235
public String ErrorMessage { get; internal set; }
3336

37+
3438
internal ConditionTree()
3539
{
3640
}
3741

38-
42+
/// <summary>
43+
/// 解析
44+
/// </summary>
45+
/// <param name="condition"></param>
46+
/// <returns></returns>
3947
public static ConditionTree Parse(string condition)
4048
{
4149
ConditionTree tree = new ConditionTree();

csharp/ToolGood.Algorithm2/Internals/ConditionTreeType.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
namespace ToolGood.Algorithm.Internals
22
{
3+
/// <summary>
4+
/// 条件树类型
5+
/// </summary>
36
public enum ConditionTreeType
47
{
58
/// <summary>

csharp/ToolGood.Algorithm2/MathNet/Constants.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
namespace ToolGood.Algorithm.MathNet.Numerics
22
{
3+
/// <summary>
4+
/// 常量
5+
/// </summary>
36
public static class Constants
47
{
58
#region Mathematical Constants

csharp/ToolGood.Algorithm2/MathNet/Distributions/Beta.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace ToolGood.Algorithm.MathNet.Numerics.Distributions
44
{
5-
public class Beta
5+
class Beta
66
{
77

88
public static double CDF(double a, double b, double x)

csharp/ToolGood.Algorithm2/MathNet/Distributions/FisherSnedecor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace ToolGood.Algorithm.MathNet.Numerics.Distributions
44
{
5-
public class FisherSnedecor
5+
class FisherSnedecor
66
{
77
public static double CDF(double d1, double d2, double x)
88
{

csharp/ToolGood.Algorithm2/MathNet/Distributions/LogNormal.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace ToolGood.Algorithm.MathNet.Numerics.Distributions
77
/// For details about this distribution, see
88
/// <a href="http://en.wikipedia.org/wiki/Log-normal_distribution">Wikipedia - Log-Normal distribution</a>.
99
/// </summary>
10-
public class LogNormal
10+
class LogNormal
1111
{
1212
public static double CDF(double mu, double sigma, double x)
1313
{

0 commit comments

Comments
 (0)