Simulation of grooming in IP over optical network with fixed/flex-grid

时间:2019-11-04 18:00:08   收藏:0   阅读:94

该项目是在已有的固定栅格和灵活栅格节点混合组网的基本项目框架(eclipse项目)下修改的。使用的IDE是idea2018。

1.将eclipse项目导入idea中。https://www.jianshu.com/p/c96d63b8aa97

2.运行simulation函数中的main函数,报错如下:

java.io.FileNotFoundException: nsf.txt (系统找不到指定的文件。)
java.io.FileNotFoundException: nsf_k_paths.txt (系统找不到指定的文件。)
Exception in thread "main" java.lang.NullPointerException
 at Network.setFlxeNodes(Network.java:104)
 at Simulation.main(Simulation.java:64)

解决办法:通过直接导入的办法是不行的,可能会有依赖错误。使用idea新建项目,将原src中的文件copy到现在的src中,再次运行simulation类中的main函数即可。

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!