|
@@ -9,7 +9,7 @@ import com.dc.datachange.core.entity.platformInfo.InterferPlatform;
|
|
import com.dc.datachange.core.entity.platformInfo.RadarPlatform;
|
|
import com.dc.datachange.core.entity.platformInfo.RadarPlatform;
|
|
import com.dc.datachange.core.exchange.DataManager;
|
|
import com.dc.datachange.core.exchange.DataManager;
|
|
import com.dc.datachange.networkGroup.controller.NetworkController;
|
|
import com.dc.datachange.networkGroup.controller.NetworkController;
|
|
-import com.dc.datachange.core.entity.NetworkGroup;
|
|
|
|
|
|
+import com.dc.datachange.core.entity.networkGroup.NetworkGroup;
|
|
import com.dc.datachange.networkGroup.entity.NetworkParams;
|
|
import com.dc.datachange.networkGroup.entity.NetworkParams;
|
|
import com.dc.datachange.networkGroup.entity.RawGroup;
|
|
import com.dc.datachange.networkGroup.entity.RawGroup;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -178,4 +178,42 @@ public class Simulator {
|
|
data.setPlatformSet(new HashSet<>(ids));
|
|
data.setPlatformSet(new HashSet<>(ids));
|
|
return networkController.updateNetworkParams(data);
|
|
return networkController.updateNetworkParams(data);
|
|
}
|
|
}
|
|
|
|
+ @GetMapping("/addMessage1")
|
|
|
|
+ public R addMessage1(Integer id1,Integer id2){
|
|
|
|
+ count++;
|
|
|
|
+
|
|
|
|
+ Message message = new Message(
|
|
|
|
+ id1 + " " + PlatConstants.EXCHANGE_PLATFORM + " " + id2,
|
|
|
|
+ MsgConstants.RADAR_PULSE,
|
|
|
|
+ count,
|
|
|
|
+ "雷达 空中 21 127 10000 5000 " + count,
|
|
|
|
+ count);
|
|
|
|
+ publisher.sendMessage(message);
|
|
|
|
+ return R.ok(message.toString());
|
|
|
|
+ }
|
|
|
|
+ @GetMapping("/addMessage2")
|
|
|
|
+ public R addMessage2(Integer id1,Integer id2){
|
|
|
|
+ count++;
|
|
|
|
+ Message message = new Message(
|
|
|
|
+ id1 + " " + PlatConstants.EXCHANGE_PLATFORM + " " + id2,
|
|
|
|
+ MsgConstants.ELECTRIC_INTERFERE,
|
|
|
|
+ count,
|
|
|
|
+ "宽带干扰 空中 区域A 宽带干扰 未知 否 " + count,
|
|
|
|
+ count);
|
|
|
|
+ publisher.sendMessage(message);
|
|
|
|
+ return R.ok(message.toString());
|
|
|
|
+ }
|
|
|
|
+ @GetMapping("/addMessage3")
|
|
|
|
+ public R addMessage3(Integer id1,Integer id2){
|
|
|
|
+ count++;
|
|
|
|
+
|
|
|
|
+ Message message = new Message(
|
|
|
|
+ id1 + " " + PlatConstants.EXCHANGE_PLATFORM + " " + id2,
|
|
|
|
+ MsgConstants.COMPREHEN_INTELL,
|
|
|
|
+ count,
|
|
|
|
+ "综合 " + count + " 否 在侦察完成后立刻启动干扰",
|
|
|
|
+ count);
|
|
|
|
+ publisher.sendMessage(message);
|
|
|
|
+ return R.ok(message.toString());
|
|
|
|
+ }
|
|
}
|
|
}
|