Mercurial > hg > Database > jungle-sharp
comparison src/main/csharp/jp.ac.u-ryukyu.ie.cr/jungle-main/traverser/InterfaceTraverser.cs @ 10:abe0c247f5a5
Add Network module. but, unComplete NetworkDefaultJungleTreeEditor.cs
author | Kazuma Takeda <kazuma-arashi@hotmail.co.jp> |
---|---|
date | Sun, 23 Oct 2016 07:40:50 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
9:e6ad9016601c | 10:abe0c247f5a5 |
---|---|
1 | |
2 public class InterfaceTraverser { | |
3 TreeNode root; | |
4 TreeMap<string, TreeMap<string, List<TreeNode>>> indexList; | |
5 ParentIndex parentIndex; | |
6 bool parentUpdateFlag; | |
7 bool useIndex; | |
8 | |
9 public InterfaceTraverser(TreeNode root, bool indexFlag) | |
10 : this (root, new TreeMap<string, TreeMap<string, List<TreeNode>>> (), new ParentIndex (), indexFlag) | |
11 { | |
12 } | |
13 | |
14 public InterfaceTraverser(TreeNode root, TreeMap<string, TreeMap<string, List<TreeNode>>> index, | |
15 ParentIndex parentIndex, bool useIndex) { | |
16 this.root = root; | |
17 this.indexList = index; | |
18 this.parentIndex = parentIndex; | |
19 if (parentIndex.isEmpty()) | |
20 parentUpdateFlag = true; | |
21 else | |
22 parentUpdateFlag = false; | |
23 this.useIndex = useIndex; | |
24 } | |
25 | |
26 public TreeMap<string, TreeMap<string, List<TreeNode>>> getIndex() { | |
27 return indexList; | |
28 } | |
29 | |
30 public void commit() { | |
31 parentUpdateFlag = false; | |
32 } | |
33 | |
34 public ParentIndex getParentIndex() { | |
35 return parentIndex; | |
36 } | |
37 | |
38 | |
39 } |