138 lines
3.4 KiB
Java
138 lines
3.4 KiB
Java
package com.solution.system.domain;
|
|
|
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
import com.solution.common.annotation.Excel;
|
|
import com.solution.common.core.domain.BaseEntity;
|
|
|
|
/**
|
|
* 行为树实例节点对象 treenodeinstance
|
|
*
|
|
* @author ruoyi
|
|
* @date 2026-02-05
|
|
*/
|
|
public class Treenodeinstance extends BaseEntity
|
|
{
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
/** 节点实例ID (主键) */
|
|
private Long id;
|
|
|
|
/** 属于哪棵行为树 (外键: BehaviorTree.id) */
|
|
@Excel(name = "属于哪棵行为树 (外键: BehaviorTree.id)")
|
|
private Long treeId;
|
|
|
|
/** 引用哪个节点模板 (外键: NodeTemplate.id) */
|
|
@Excel(name = "引用哪个节点模板 (外键: NodeTemplate.id)")
|
|
private Long templateId;
|
|
|
|
/** 节点的显示名称 (可能与模板名称不同, 用于区分实例) */
|
|
@Excel(name = "节点的显示名称 (可能与模板名称不同, 用于区分实例)")
|
|
private String instanceName;
|
|
|
|
/** 判断当前节点是否为根节点,默认情况下是非根节点 */
|
|
@Excel(name = "判断当前节点是否为根节点,默认情况下是非根节点")
|
|
private Long isRoot;
|
|
|
|
/** 节点执行的判断条件对应的模版id */
|
|
@Excel(name = "节点执行的判断条件对应的模版id")
|
|
private Long preconditionTempleteId;
|
|
|
|
@Excel(name = "节点介绍")
|
|
private String nodeValue;
|
|
|
|
/** $column.columnComment */
|
|
@Excel(name = "是否外部节点", readConverterExp = "0=否,1=是")
|
|
private String isExtern;
|
|
|
|
public void setId(Long id)
|
|
{
|
|
this.id = id;
|
|
}
|
|
|
|
public Long getId()
|
|
{
|
|
return id;
|
|
}
|
|
|
|
public void setTreeId(Long treeId)
|
|
{
|
|
this.treeId = treeId;
|
|
}
|
|
|
|
public Long getTreeId()
|
|
{
|
|
return treeId;
|
|
}
|
|
|
|
public void setTemplateId(Long templateId)
|
|
{
|
|
this.templateId = templateId;
|
|
}
|
|
|
|
public Long getTemplateId()
|
|
{
|
|
return templateId;
|
|
}
|
|
|
|
public void setInstanceName(String instanceName)
|
|
{
|
|
this.instanceName = instanceName;
|
|
}
|
|
|
|
public String getInstanceName()
|
|
{
|
|
return instanceName;
|
|
}
|
|
|
|
public void setIsRoot(Long isRoot)
|
|
{
|
|
this.isRoot = isRoot;
|
|
}
|
|
|
|
public Long getIsRoot()
|
|
{
|
|
return isRoot;
|
|
}
|
|
|
|
public void setPreconditionTempleteId(Long preconditionTempleteId)
|
|
{
|
|
this.preconditionTempleteId = preconditionTempleteId;
|
|
}
|
|
|
|
public Long getPreconditionTempleteId()
|
|
{
|
|
return preconditionTempleteId;
|
|
}
|
|
|
|
public String getNodeValue() {
|
|
return nodeValue;
|
|
}
|
|
|
|
public void setNodeValue(String nodeValue) {
|
|
this.nodeValue = nodeValue;
|
|
}
|
|
|
|
public String getIsExtern() {
|
|
return isExtern;
|
|
}
|
|
|
|
public void setIsExtern(String isExtern) {
|
|
this.isExtern = isExtern;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "Treenodeinstance{" +
|
|
"id=" + id +
|
|
", treeId=" + treeId +
|
|
", templateId=" + templateId +
|
|
", instanceName='" + instanceName + '\'' +
|
|
", isRoot=" + isRoot +
|
|
", preconditionTempleteId=" + preconditionTempleteId +
|
|
", nodeValue='" + nodeValue + '\'' +
|
|
", isExtern='" + isExtern + '\'' +
|
|
'}';
|
|
}
|
|
}
|