添加behaviortreeId字段返回
This commit is contained in:
@@ -81,6 +81,21 @@
|
||||
<artifactId>solution-scene</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- 单元测试依赖 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- Spring Security 测试支持(如果接口有权限控制) -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.security</groupId>
|
||||
<artifactId>spring-security-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
@@ -20,6 +20,16 @@ public class BasicPlatform implements Serializable {
|
||||
|
||||
private String description;
|
||||
|
||||
private Integer behaviortreeId;
|
||||
|
||||
public Integer getBehaviortreeId() {
|
||||
return behaviortreeId;
|
||||
}
|
||||
|
||||
public void setBehaviortreeId(Integer behaviortreeId) {
|
||||
this.behaviortreeId = behaviortreeId;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@@ -88,6 +88,7 @@
|
||||
<resultMap id="VPBasicPlatformMap" type="com.solution.rule.domain.BasicPlatform">
|
||||
<result property="id" column="id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="behaviortreeId" column="behaviortree_id"/>
|
||||
<result property="description" column="description"/>
|
||||
</resultMap>
|
||||
<select id="findAllBasicPlatformComponents" resultMap="VPBasicPlatformMap">
|
||||
|
||||
204
auto-solution-rule/src/main/resources/task/data.json
Normal file
204
auto-solution-rule/src/main/resources/task/data.json
Normal file
@@ -0,0 +1,204 @@
|
||||
{
|
||||
"assign_target": [
|
||||
{
|
||||
"task": "task1",
|
||||
"type": "fire",
|
||||
"target": [
|
||||
"enemy_p1",
|
||||
"enemyp2"
|
||||
]
|
||||
},
|
||||
{
|
||||
"task": "task2",
|
||||
"type": "fire",
|
||||
"target": [
|
||||
"enemy_p1333",
|
||||
"enemyp2333"
|
||||
]
|
||||
},
|
||||
{
|
||||
"task": "task3",
|
||||
"type": "radar",
|
||||
"target": [
|
||||
"enemy_p1444",
|
||||
"enemyp2444"
|
||||
]
|
||||
}
|
||||
],
|
||||
"task": [
|
||||
{
|
||||
"task_name": "task1",
|
||||
"platform": [
|
||||
{
|
||||
"name": "platform1",
|
||||
"platform_type": "WSF_PLATFORM",
|
||||
"longitude": "120:49:24.79e",
|
||||
"latitude": "23:47:26.60n",
|
||||
"altitude": 0,
|
||||
"route": [
|
||||
{
|
||||
"longitude": "120:49:24.79e",
|
||||
"latitude": "23:47:26.60n",
|
||||
"altitude": 0,
|
||||
"speed": 100
|
||||
},
|
||||
{
|
||||
"longitude": "120:49:42.46e",
|
||||
"latitude": "23:47:42.80n",
|
||||
"altitude": 0,
|
||||
"speed": 100
|
||||
},
|
||||
{
|
||||
"longitude": "120:50:19.01e",
|
||||
"latitude": "23:47:51.84n",
|
||||
"altitude": 0,
|
||||
"speed": 100
|
||||
},
|
||||
{
|
||||
"longitude": "120:50:42.73e",
|
||||
"latitude": "23:48:09.86n",
|
||||
"altitude": 0,
|
||||
"speed": 100
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "platform2",
|
||||
"platform_type": "WSF_PLATFORM",
|
||||
"longitude": "120:50:19.01e",
|
||||
"latitude": "23:47:51.84n",
|
||||
"altitude": 0,
|
||||
"route": [
|
||||
{
|
||||
"longitude": "120:50:19.01e",
|
||||
"latitude": "23:47:51.84n",
|
||||
"altitude": 0,
|
||||
"speed": 100
|
||||
},
|
||||
{
|
||||
"longitude": "120:50:42.73e",
|
||||
"latitude": "23:48:09.86n",
|
||||
"altitude": 0,
|
||||
"speed": 100
|
||||
},
|
||||
{
|
||||
"longitude": "120:50:42.73e",
|
||||
"latitude": "23:48:09.86n",
|
||||
"altitude": 0,
|
||||
"speed": 100
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"time": {
|
||||
"begin": 50,
|
||||
"end": 300
|
||||
}
|
||||
},
|
||||
{
|
||||
"task_name": "task2",
|
||||
"platform": [
|
||||
{
|
||||
"name": "platform3",
|
||||
"platform_type": "SENSOR_TYPE",
|
||||
"longitude": "120:50:19.01e",
|
||||
"latitude": "23:47:51.84n",
|
||||
"altitude": 0,
|
||||
"route": [
|
||||
{
|
||||
"longitude": "120:50:19.01e",
|
||||
"latitude": "23:47:51.84n",
|
||||
"altitude": 0,
|
||||
"speed": 100
|
||||
},
|
||||
{
|
||||
"longitude": "120:50:42.73e",
|
||||
"latitude": "23:48:09.86n",
|
||||
"altitude": 0,
|
||||
"speed": 100
|
||||
},
|
||||
{
|
||||
"longitude": "120:50:42.73e",
|
||||
"latitude": "23:48:09.86n",
|
||||
"altitude": 0,
|
||||
"speed": 100
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "platform5",
|
||||
"platform_type": "SENSOR_TYPE",
|
||||
"longitude": "120:50:42.73e",
|
||||
"latitude": "23:48:09.86n",
|
||||
"altitude": 0,
|
||||
"route": [
|
||||
{
|
||||
"longitude": "120:50:42.73e",
|
||||
"latitude": "23:48:09.86n",
|
||||
"altitude": 0,
|
||||
"speed": 100
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "platform4",
|
||||
"platform_type": "JAM_TYPE",
|
||||
"longitude": "120:49:55.28e",
|
||||
"latitude": "23:48:38.68n",
|
||||
"altitude": 0,
|
||||
"route": [
|
||||
{
|
||||
"longitude": "120:49:55.28e",
|
||||
"latitude": "23:48:38.68n",
|
||||
"altitude": 0,
|
||||
"speed": 100
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "platform9",
|
||||
"platform_type": "JAM_TYPE",
|
||||
"longitude": "120:49:55.28e",
|
||||
"latitude": "23:48:38.68n",
|
||||
"altitude": 0,
|
||||
"route": [
|
||||
{
|
||||
"longitude": "120:49:55.28e",
|
||||
"latitude": "23:48:38.68n",
|
||||
"altitude": 0,
|
||||
"speed": 100
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"time": {
|
||||
"begin": 110,
|
||||
"end": 300
|
||||
}
|
||||
},
|
||||
{
|
||||
"task_name": "task3",
|
||||
"platform": [
|
||||
{
|
||||
"name": "platform6",
|
||||
"platform_type": "WSF_PLATFORM",
|
||||
"longitude": "120:49:45.11e",
|
||||
"latitude": "23:48:53.09n",
|
||||
"altitude": 0,
|
||||
"route": [
|
||||
{
|
||||
"longitude": "120:49:45.11e",
|
||||
"latitude": "23:48:53.09n",
|
||||
"altitude": 0,
|
||||
"speed": 100
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"time": {
|
||||
"begin": 50,
|
||||
"end": 300
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
6485
auto-solution-rule/src/main/resources/task/kj-3.json
Normal file
6485
auto-solution-rule/src/main/resources/task/kj-3.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user