From 7680ba697b50ce80402dbe49bd6c9d5e31770192 Mon Sep 17 00:00:00 2001 From: kejian Date: Thu, 25 Apr 2024 11:55:03 +0800 Subject: [PATCH] add getter/setter for TreeLogger --- .../thinker/logic/rule/TreeLogger.java | 58 +++++++++++++++++-- 1 file changed, 54 insertions(+), 4 deletions(-) diff --git a/reasoner/thinker/src/main/java/com/antgroup/openspg/reasoner/thinker/logic/rule/TreeLogger.java b/reasoner/thinker/src/main/java/com/antgroup/openspg/reasoner/thinker/logic/rule/TreeLogger.java index 850d681a..42a11dbe 100644 --- a/reasoner/thinker/src/main/java/com/antgroup/openspg/reasoner/thinker/logic/rule/TreeLogger.java +++ b/reasoner/thinker/src/main/java/com/antgroup/openspg/reasoner/thinker/logic/rule/TreeLogger.java @@ -23,10 +23,6 @@ public class TreeLogger implements Serializable { this.currentNodeName = currentNodeName; } - public void setCurrentNodeName(String currentNodeName) { - this.currentNodeName = currentNodeName; - } - public TreeLogger log(Object msg) { if (this.currentNodeMsg == null) { this.currentNodeMsg = new StringBuilder(); @@ -95,4 +91,58 @@ public class TreeLogger implements Serializable { } } } + + /** + * Setter method for property currentNodeName. + * + * @param currentNodeName value to be assigned to property currentNodeName + */ + public void setCurrentNodeName(String currentNodeName) { + this.currentNodeName = currentNodeName; + } + + /** + * Getter method for property currentNodeName. + * + * @return property value of currentNodeName + */ + public String getCurrentNodeName() { + return currentNodeName; + } + + /** + * Getter method for property currentNodeMsg. + * + * @return property value of currentNodeMsg + */ + public StringBuilder getCurrentNodeMsg() { + return currentNodeMsg; + } + + /** + * Setter method for property currentNodeMsg. + * + * @param currentNodeMsg value to be assigned to property currentNodeMsg + */ + public void setCurrentNodeMsg(StringBuilder currentNodeMsg) { + this.currentNodeMsg = currentNodeMsg; + } + + /** + * Getter method for property children. + * + * @return property value of children + */ + public List getChildren() { + return children; + } + + /** + * Setter method for property children. + * + * @param children value to be assigned to property children + */ + public void setChildren(List children) { + this.children = children; + } }