feat(behaviour): 添加行为树系统核心功能模块
- 创建行为树主对象实体类Behaviortree,包含ID、名称、描述、创建时间、更新时间、英文名和XML内容字段 - 实现行为树控制器BehaviortreeController,提供增删改查和导出功能接口 - 开发行为树数据访问层,包括Mapper接口和MyBatis XML映射文件 - 构建行为树服务层接口及实现类,封装业务逻辑处理 - 添加节点连接、节点参数、节点模板、模板参数定义和行为树实例节点等相关实体和服务接口 - 实现节点连接管理功能,支持父子节点关系建立和执行顺序配置 - 提供完整的CRUD操作和权限控制,集成Excel导出功能
This commit is contained in:
@@ -0,0 +1,127 @@
|
||||
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;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private String uuid;
|
||||
|
||||
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 void setUuid(String uuid)
|
||||
{
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
public String getUuid()
|
||||
{
|
||||
return uuid;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("treeId", getTreeId())
|
||||
.append("templateId", getTemplateId())
|
||||
.append("instanceName", getInstanceName())
|
||||
.append("isRoot", getIsRoot())
|
||||
.append("preconditionTempleteId", getPreconditionTempleteId())
|
||||
.append("uuid", getUuid())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user