for(int k = 1; k < maxPaths; ++k) {
for(int i = 0; i < ((Path)resultPaths.get(k - 1)).edges().size() - 1; ++i) {
Vertex spurNode = ((Edge)((Path)resultPaths.get(k - 1)).edges().get(i)).src();
List rootPathEdgeList = ((Path)resultPaths.get(k - 1)).edges().subList(0, i);
Iterator spurPath = resultPaths.iterator();
and has problem by k ,
Can You please resolve this problem ?
Best Regards
--
You received this message because you are subscribed to the Google Groups "ONOS Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-dev+u...@onosproject.org.
To post to this group, send email to onos...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-dev/.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/onos-dev/29db6044-8bf6-4211-8cbb-79d82b0d42d1%40onosproject.org.
Can you please post the entire exception stack trace?Thomas
On Oct 25, 2016, at 1:47 AM, sh.attarha <sh.at...@gmail.com> wrote:
Hello
I want to use Kshortestpath Algorithm in my project, but it has an exception and when i saw the karaf log it has problem in this line of kshortestpath algorithm
for(int k = 1; k < maxPaths; ++k) {
for(int i = 0; i < ((Path)resultPaths.get(k - 1)).edges().size() - 1; ++i) {
Vertex spurNode = ((Edge)((Path)resultPaths.get(k - 1)).edges().get(i)).src();
List rootPathEdgeList = ((Path)resultPaths.get(k - 1)).edges().subList(0, i);
Iterator spurPath = resultPaths.iterator();
and has problem by k ,
Can You please resolve this problem ?
Best Regards
--
You received this message because you are subscribed to the Google Groups "ONOS Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-dev+unsubscribe@onosproject.org.
Hi ShaDAttarha,
I read your log (stacktrce.txt), and try to share my opinions.
1. It is the 'maxPaths' (in the search method of KShortestPathsSearch) caused the exception, not the 'k'. You can take a look of the source code in KShortestPathsSearch.java at line 48. The 'maxPaths' was expected to be greater than 0, but -1 which was set defaultly with ALL_PATHS (in GraphPathSearch).
2. ALL_PATHS means trying to search all the path, but the KShortestPathsSearch considers it as illegal.
I think you can post this bug on the jira.
田健 Tian Jian
软件开发工程师 Software Development
Engineer
预研标准部/有线研究院/有线产品经营部 Standard Preresearch Dept./Wireline Product Operation Division
武汉市东湖高新技术开发区华师园路6号中兴通讯 430223 2/F, R&D Building, ZTE Corporation Huashi Park Road, Donghu Hi-tech District, Wuhan, P.R.China, 430223 M: +86 15243616864E: tian...@zte.com.cn www.zte.com.cn |
Hi ShaDAttarha,
I read your log (stacktrce.txt), and try to share my opinions.
1. It is the 'maxPaths' (in the search method of KShortestPathsSearch) caused the exception, not the 'k'. You can take a look of the source code in KShortestPathsSearch.java at line 48. The 'maxPaths' was expected to be greater than 0, but -1 which was set defaultly with ALL_PATHS (in GraphPathSearch).<zMail_snapScreen_tmp.jpg>
2. ALL_PATHS means trying to search all the path, but the KShortestPathsSearch considers it as illegal. <zMail_snapScreen_tmp.jpg>
I think you can post this bug on the jira.
田健 Tian Jian
软件开发工程师 Software Development
Engineer
预研标准部/有线研究院/有线产品经营部 Standard Preresearch Dept./Wireline Product Operation Division
| <9ae3e214c17d49ed935d87c674ba3ee2.jpg> | <24242e5637af428891c4db731e7765ad.jpg> |
Aaron
原始邮件
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/onos-dev/CANH7vgPcHo0%3DZDj8nPvTQdyrhPkCpG-moMZ_qQUFq9FuEXoiOg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "ONOS Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-dev+unsubscribe@onosproject.org.
To post to this group, send email to onos...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-dev/.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/onos-dev/201610271316365342597%40zte.com.cn.
<zMail_snapScreen_tmp.jpg>
--
You received this message because you are subscribed to the Google Groups "ONOS Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-dev+unsubscribe@onosproject.org.
To post to this group, send email to onos...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-dev/.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/onos-dev/0A202528-1F1A-4578-A703-E859FCB6AC01%40onlab.us.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-dev+unsubscribe@onosproject.org.
To post to this group, send email to onos...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-dev/.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/onos-dev/9173a500-a1d0-4412-bba2-00c96ff6fb35%40onosproject.org.