How to Run the simulator `LSNS‘

本文详细介绍了如何使用LSNS模拟器,包括在Intelij中打开项目,加载项目模块,配置主类,解决缺少TensorFlow包和权限设置问题,以及运行模拟器并调整参数。
摘要由CSDN通过智能技术生成

Tutorial on using LSNS simulator

First of all, thank you for using the simulator LSNS. Here is a detailed introduction on how to make the simulation platform run successfully based on the files downloaded from github (https://github.com/infonetlijian/Large-Scale-Satellite-Network-Simulator-LSNS).

1、use intelij to open project

I suggest that you use Intelij to open the project. When opening it for the first time, it will involve selecting the type of project, including Eclipse project and Maven project. Here, choose Eclipse project.
在这里插入图片描述

2、load the project

You should add the modules as the follows.

Click `File->Project Structure->Modules’在这里插入图片描述

The project (Large-Scale-Satellite-Network-Simulator-LSNS-master) in my compuer is unzipped to G:\Large-Scale-Satellite-Network-Simulator-LSNS-master. Here you should choose the your File according to your unique file location.
在这里插入图片描述
在这里插入图片描述

Here, we just need to click `NEXT’s. When finish the configuration, we should click OK.
在这里插入图片描述
So far, the project has been loaded and the complete project path can be seen in the directory bar.

3、edit the configurations

Choose the main class according to the following steps.在这里插入图片描述
在这里插入图片描述

Click `Application’ and choose DTNSim as the main class.
在这里插入图片描述

We name this applicaion as ‘test1221’ as follows, and then click ‘OK’.
在这里插入图片描述
So far, all the initial work has been completed, but due to some code issues (2 minor issues), the next step is to debug some of the code.

3、debug the some problems

problem1:Missing org.tensorflow package, running directly will result in an error:java packge org.tensorflow does not exist.
在这里插入图片描述
The solution is to delete the file ‘gnn_router.java’ under directory ‘routing’.

problem2:two functions’ permission settings
在这里插入图片描述
在这里插入图片描述
The solution to problem2 is to annotate the ‘try catch’ bodies in these two problems.
在这里插入图片描述
在这里插入图片描述
So far, all the issues have been resolved.

4、run the simulator

Successfully running the code and adjusting the window to an appropriate scale reveals the satellite simulation world, as shown in the following figure. You can modify the parameters in file ‘default_settings’ to run different satellite constellations.在这里插入图片描述

  • 22
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值