- 用alevin运行DPVNE算法时,DPVNE算法与其它算法不同,并不能在alevin的main程序打开的图形界面中选择到该算法,DPVNE算法有着单独的程序。
- 在DPVNE程序的main方法中,调用AlgorithmEvaluation类(对象)的executeTests方法,进支DPVNE算法的计算。
- 在DPVNE算法那部分程序中,原本没有通过xml文件输入底层网络、虚拟网络、需求的功能。
- 我通过调用XMLImporter.importScenario("xxx.xml")从描述scenario的xml文件中得到一个scenario对象,再通过scenario对象(类)的getNetworkStack()方法从scenario中得到一个NetworkStack对象,再通过NetworkStack对象(类)的getSubstrate方法获得一个SubstrageNetwork对象(底层网络),通过NetworkStack对象(类)的getVirtuals方法获得一个List对象,并转换为LinkedList对象。
- 在AlgorithmEvaluation类的executeTests方法中,调用algorithm.map()方法时,把从xml中获取到的SubstrageNetwork对象和LinkedList对象做为algorithm.map()的参数。
- 这样就用DPVNE算法对该xml文件中的情景进行了计算。
- 用alevin对DPVNE算法进行实验时的数据和用到的各种程序。
forked from KeepTheBeats/alevin-svn2
-
Notifications
You must be signed in to change notification settings - Fork 0
(2017/5)改进:在用alevin运行DPVNE算法时,用xml导入拓扑
License
wshwb/alevin-svn2
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
(2017/5)改进:在用alevin运行DPVNE算法时,用xml导入拓扑
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Java 98.6%
- AMPL 1.4%