Mercurial > hg > Database > jungle-sharp
comparison src/main/csharp/jp.ac.u-ryukyu.ie.cr/jungle-network/transaction/NetworkDefaultJungleTree.cs @ 12:b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
author | Kazuma |
---|---|
date | Sun, 23 Oct 2016 12:25:57 +0900 |
parents | abe0c247f5a5 |
children |
comparison
equal
deleted
inserted
replaced
11:220433691c2e | 12:b71d9ea6bd8e |
---|---|
56 public TreeMap<string, TreeMap<string, List<TreeNode>>> getIndex () { | 56 public TreeMap<string, TreeMap<string, List<TreeNode>>> getIndex () { |
57 TreeContext tc = this.Repository.Get(); | 57 TreeContext tc = this.Repository.Get(); |
58 return tc.getIndex(); | 58 return tc.getIndex(); |
59 } | 59 } |
60 | 60 |
61 // public InterfaceTraverser getTraverser (bool useIndex) { | |
62 // TreeMap<string, TreeMap<string, List<TreeNode>>> index = getIndex(); | |
63 // } | |
64 | |
65 public Either<Error, TreeNode> getNodeOfPath (NodePath path) { | 61 public Either<Error, TreeNode> getNodeOfPath (NodePath path) { |
66 TreeNode node = this.Repository.Get().getRoot(); | 62 TreeNode node = this.Repository.Get().getRoot(); |
67 foreach(var num in path) { | 63 foreach(var num in path) { |
68 if (num == -1) { | 64 if (num == -1) { |
69 continue; | 65 continue; |