Skip to content

Commit 4da4f3a

Browse files
update
1 parent e244615 commit 4da4f3a

File tree

9 files changed

+77
-90
lines changed

9 files changed

+77
-90
lines changed

.idea/workspace.xml

Lines changed: 25 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README-Chinese.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ AS库目录有多个版本,如果希望查询不同版本的更新日志以及
3232
<dependency>
3333
<groupId>io.github.BeardedManZhao</groupId>
3434
<artifactId>algorithmStar</artifactId>
35-
<version>1.42</version>
35+
<version>1.43</version>
3636
</dependency>
3737
</dependencies>
3838
```
@@ -43,6 +43,8 @@ AS库目录有多个版本,如果希望查询不同版本的更新日志以及
4343

4444
#### 必选依赖项
4545

46+
> 注意:log4j2 在 1.43 以及以后的版本中不需要导入了!!!为了增强性能,1.43 版本中将log4j2 移除!
47+
4648
AS库在进行诸多计算函数的时候会产生一些日志数据,因此AS库的使用需要导入日志依赖项,这个依赖项是必不可少的,请按照如下的方式导入依赖。
4749

4850
```xml

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ can add it to your maven project, or you can download it from Releases and manua
4141
<dependency>
4242
<groupId>io.github.BeardedManZhao</groupId>
4343
<artifactId>algorithmStar</artifactId>
44-
<version>1.42</version>
44+
<version>1.44</version>
4545
</dependency>
4646
</dependencies>
4747
```
@@ -55,6 +55,8 @@ here.
5555

5656
#### Required Dependencies
5757

58+
> Note: log4j2 does not need to be imported in versions 1.43 and later!!! To enhance performance, log4j2 has been removed in version 1.43!
59+
5860
The AS library generates some log data when performing many calculation functions. Therefore, the use of the AS library
5961
requires importing log dependencies, which are essential. Please import the dependencies as follows.
6062

src_code/README-Chinese.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88

99
### 更新日志
1010

11-
* 框架版本:1.41 - 1.42
12-
* 修正复数矩阵使用字符串解析会发生解析不全的情况
13-
* 在矩阵工厂添加了对于复数矩阵的支持!
14-
* 移除了冗余错误的工厂类 `MatixFactory`
11+
* 框架版本:1.42 - 1.43
12+
* 移除了日志。增强性能!
1513

16-
### Version update date : 2024-08-03
14+
### Version update date : 2024-12-25

src_code/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88

99
### Update log:
1010

11-
* Framework version: 1.41 - 1.42
12-
* Fixed the problem that complex matrices would be incomplete when parsing strings
13-
* Added support for complex matrices in the matrix factory!
14-
* Removed redundant errors in the factory class `MatixFactory`
11+
* Framework version: 1.42-1.43
12+
* Removed the log. Enhance performance!
1513

16-
### Version update date : 2024-08-03
14+
### Version update date : 2024-12-25

src_code/pom.xml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>io.github.BeardedManZhao</groupId>
77
<artifactId>algorithmStar</artifactId>
8-
<version>1.42</version>
8+
<version>1.43</version>
99
<packaging>jar</packaging>
1010
<name>algorithmStar</name>
1111
<description>algorithmStar-java</description>
@@ -41,29 +41,6 @@
4141
<version>1.0.20230927</version>
4242
</dependency>
4343

44-
<!-- 使用 log4j2 的适配器进行绑定 -->
45-
<dependency>
46-
<groupId>org.apache.logging.log4j</groupId>
47-
<artifactId>log4j-slf4j-impl</artifactId>
48-
<version>2.20.0</version>
49-
<scope>provided</scope>
50-
</dependency>
51-
52-
<!-- log4j2 日志门面 -->
53-
<dependency>
54-
<groupId>org.apache.logging.log4j</groupId>
55-
<artifactId>log4j-api</artifactId>
56-
<version>2.20.0</version>
57-
<scope>provided</scope>
58-
</dependency>
59-
<!-- log4j2 日志实面 -->
60-
<dependency>
61-
<groupId>org.apache.logging.log4j</groupId>
62-
<artifactId>log4j-core</artifactId>
63-
<version>2.20.0</version>
64-
<scope>provided</scope>
65-
</dependency>
66-
6744
<dependency>
6845
<groupId>com.mysql</groupId>
6946
<artifactId>mysql-connector-j</artifactId>

src_code/src/main/java/io/github/beardedManZhao/algorithmStar/algorithm/OperationAlgorithmManager.java

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public final class OperationAlgorithmManager implements OperationAlgorithm {
2121
/**
2222
* AS version
2323
*/
24-
public final static float VERSION = 1.41f;
24+
public final static float VERSION = 1.43f;
2525

2626
/**
2727
* 计算组件的日志打印开关,当此处值为false的时候,计算组件中的日志将不会被打印,logger也不会被调用,一般来说,这里为了减少冗余的字符串实例化操作,会设置为false,当需要调试的时候才需要打开此处的数值。
@@ -35,18 +35,8 @@ public final class OperationAlgorithmManager implements OperationAlgorithm {
3535
* An archive collection of algorithm objects into which you can store algorithm objects
3636
*/
3737
private final static HashMap<String, OperationAlgorithm> STRING_OPERATION_ALGORITHM_HASH_MAP = new HashMap<>();
38-
private final static Logger LOGGER = LoggerFactory.getLogger("OperationAlgorithmManager");
3938
private final static OperationAlgorithmManager OPERATION_ALGORITHM_MANAGER = new OperationAlgorithmManager();
4039

41-
static {
42-
LOGGER.info("+============================== Welcome to [AlgorithmStar-Java] ==============================+");
43-
LOGGER.info("+ \tStart time " + new Date());
44-
LOGGER.info("+ \tversion: " + VERSION);
45-
LOGGER.info("+ \tCalculation component manager initialized successfully");
46-
LOGGER.info("+ \tFor more information, see: https://github.com/BeardedManZhao/algorithmStar.git");
47-
LOGGER.info("+--------------------------------------------------------------------------------------------------+");
48-
}
49-
5040

5141
private OperationAlgorithmManager() {
5242
}
@@ -94,7 +84,6 @@ public static boolean containsAlgorithmName(String algorithmName) {
9484
* The algorithm object that needs to be registered
9585
*/
9686
public void register(OperationAlgorithm operationAlgorithm) {
97-
LOGGER.info("register OperationAlgorithm:" + operationAlgorithm.getAlgorithmName());
9887
STRING_OPERATION_ALGORITHM_HASH_MAP.put(operationAlgorithm.getAlgorithmName(), operationAlgorithm);
9988
}
10089

@@ -106,23 +95,17 @@ public void register(OperationAlgorithm operationAlgorithm) {
10695
* @param algorithmName 需要取注册的算法名称
10796
* <p>
10897
* The name of the algorithm that needs to be registered
109-
* @return 是否取消注册成功!
98+
* @return 是否取消注册成功! 如果没有成功返回 falas 错误原因:"It seems that the algorithm you want to unregister has never been registered in the management class, and cannot be found in the management: [algorithmName]
11099
* <p>
111100
* Whether the cancellation of registration is successful!
112101
*/
113102
public boolean unRegister(String algorithmName) {
114103
if (DependentAlgorithmNameLibrary.isPrefabricated(algorithmName)) {
115-
String s = "您想要取消注册的算法属于其它算法的依赖,因此为了程序的安全不予执行!如果您一定要删除,请使用管理类的'Unloading(algorithmName)'";
116-
LOGGER.error(s, new OperationAlgorithmManagementException(s));
117-
return false;
104+
throw new OperationAlgorithmManagementException(
105+
"您想要取消注册的算法属于其它算法的依赖,因此为了程序的安全不予执行!如果您一定要删除,请使用管理类的'Unloading(algorithmName)'"
106+
);
118107
} else {
119-
if (Unloading(algorithmName)) {
120-
LOGGER.info("Cancelled the registration of an algorithm, name:" + algorithmName);
121-
return true;
122-
} else {
123-
LOGGER.error("It seems that the algorithm you want to unregister has never been registered in the management class, and cannot be found in the management:" + algorithmName);
124-
return false;
125-
}
108+
return Unloading(algorithmName);
126109
}
127110
}
128111

@@ -146,13 +129,9 @@ public boolean Unloading(String algorithmName) {
146129
public OperationAlgorithm get(String algorithmName) {
147130
OperationAlgorithm operationAlgorithm = STRING_OPERATION_ALGORITHM_HASH_MAP.get(algorithmName);
148131
if (operationAlgorithm != null) {
149-
LOGGER.info("An operation algorithm was obtained:" + algorithmName);
150132
return operationAlgorithm;
151133
} else {
152-
String s = "没有找到名为[" + algorithmName + "]的算法\tNo name was found[" + algorithmName + "]algorithm";
153-
OperationAlgorithmNotFound operationAlgorithmNotFound = new OperationAlgorithmNotFound(s);
154-
LOGGER.error(s, operationAlgorithmNotFound);
155-
throw operationAlgorithmNotFound;
134+
throw new OperationAlgorithmNotFound("没有找到名为[" + algorithmName + "]的算法\tNo name was found[" + algorithmName + "]algorithm");
156135
}
157136
}
158137

src_code/update/README-Chinese.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# ![image](https://user-images.githubusercontent.com/113756063/194830221-abe24fcc-484b-4769-b3b7-ec6d8138f436.png) 算法之星-机器大脑
2+
3+
- Switch to [English Document](https://github.com/BeardedManZhao/algorithmStar/blob/Zhao-develop/src_code/README.md)
4+
- knowledge base
5+
<a href="https://github.com/BeardedManZhao/algorithmStar/blob/main/KnowledgeDocument/knowledge%20base-Chinese.md">
6+
<img src = "https://user-images.githubusercontent.com/113756063/194838003-7ad14dac-b38c-4b57-a942-ba58f00baaf7.png"/>
7+
</a>
8+
9+
### 更新日志
10+
11+
* 框架版本:1.41 - 1.42
12+
* 修正复数矩阵使用字符串解析会发生解析不全的情况
13+
* 在矩阵工厂添加了对于复数矩阵的支持!
14+
* 移除了冗余错误的工厂类 `MatixFactory`
15+
16+
### Version update date : 2024-08-03

src_code/update/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# ![image](https://user-images.githubusercontent.com/113756063/194830221-abe24fcc-484b-4769-b3b7-ec6d8138f436.png) Algorithm Star-MachineBrain
2+
3+
- 切换到 [中文文档](https://github.com/BeardedManZhao/algorithmStar/blob/Zhao-develop/src_code/README-Chinese.md)
4+
- knowledge base
5+
<a href="https://github.com/BeardedManZhao/algorithmStar/blob/main/KnowledgeDocument/knowledge%20base.md">
6+
<img src = "https://user-images.githubusercontent.com/113756063/194832492-f8c184c1-55e8-4f16-943a-34b99ac751d4.png"/>
7+
</a>
8+
9+
### Update log:
10+
11+
* Framework version: 1.41 - 1.42
12+
* Fixed the problem that complex matrices would be incomplete when parsing strings
13+
* Added support for complex matrices in the matrix factory!
14+
* Removed redundant errors in the factory class `MatixFactory`
15+
16+
### Version update date : 2024-08-03

0 commit comments

Comments
 (0)