annotate src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/store/impl/logger/LoggingNode.java @ 108:69bbf08894aa

move
author one
date Fri, 12 Sep 2014 21:53:52 +0900
parents bed3afd5c2e2
children cf17350a2415
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
92
14ce7a0dedca Logging Node and Editor
one
parents: 78
diff changeset
1 package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.logger;
14ce7a0dedca Logging Node and Editor
one
parents: 78
diff changeset
2
103
bed3afd5c2e2 add Index but Not use
one
parents: 92
diff changeset
3 import fj.data.List;
bed3afd5c2e2 add Index but Not use
one
parents: 92
diff changeset
4 import fj.data.TreeMap;
92
14ce7a0dedca Logging Node and Editor
one
parents: 78
diff changeset
5 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.TreeNode;
103
bed3afd5c2e2 add Index but Not use
one
parents: 92
diff changeset
6 import jp.ac.u_ryukyu.ie.cr.tatsuki.jungle.store.index.Logging;
21
848f73545c4d add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff changeset
7
848f73545c4d add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff changeset
8
103
bed3afd5c2e2 add Index but Not use
one
parents: 92
diff changeset
9 public class LoggingNode implements Logging
21
848f73545c4d add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff changeset
10 {
92
14ce7a0dedca Logging Node and Editor
one
parents: 78
diff changeset
11 public LoggingNode(TreeNode _wrap)
21
848f73545c4d add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff changeset
12 {
50
0a3bff2d9c89 modified operation things
Shoshi TAMAKI
parents: 41
diff changeset
13 this(_wrap,new DefaultOperationLog());
21
848f73545c4d add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff changeset
14 }
848f73545c4d add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff changeset
15
92
14ce7a0dedca Logging Node and Editor
one
parents: 78
diff changeset
16 public LoggingNode(TreeNode _wrap,OperationLog _log)
21
848f73545c4d add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff changeset
17 {
848f73545c4d add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff changeset
18 wrap = _wrap;
848f73545c4d add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff changeset
19 log = _log;
848f73545c4d add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff changeset
20 }
848f73545c4d add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff changeset
21
92
14ce7a0dedca Logging Node and Editor
one
parents: 78
diff changeset
22 private final TreeNode wrap;
51
bc119c52d5cc modified LoggingNode package
Shoshi TAMAKI
parents: 50
diff changeset
23 private final OperationLog log;
21
848f73545c4d add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff changeset
24
103
bed3afd5c2e2 add Index but Not use
one
parents: 92
diff changeset
25 @Override
92
14ce7a0dedca Logging Node and Editor
one
parents: 78
diff changeset
26 public LoggingAttributes getAttributes()
21
848f73545c4d add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff changeset
27 {
92
14ce7a0dedca Logging Node and Editor
one
parents: 78
diff changeset
28 return new LoggingAttributes(wrap,log);
21
848f73545c4d add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff changeset
29 }
848f73545c4d add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff changeset
30
103
bed3afd5c2e2 add Index but Not use
one
parents: 92
diff changeset
31 @Override
92
14ce7a0dedca Logging Node and Editor
one
parents: 78
diff changeset
32 public LoggingChildren getChildren()
21
848f73545c4d add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff changeset
33 {
92
14ce7a0dedca Logging Node and Editor
one
parents: 78
diff changeset
34 return new LoggingChildren(wrap,log);
21
848f73545c4d add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff changeset
35 }
22
9fd57b7c6adb added Either
Shoshi TAMAKI
parents: 21
diff changeset
36
103
bed3afd5c2e2 add Index but Not use
one
parents: 92
diff changeset
37 @Override
53
ed890dcb673e modified JungleTreeEditor
Shoshi TAMAKI
parents: 51
diff changeset
38 public OperationLog getOperationLog()
22
9fd57b7c6adb added Either
Shoshi TAMAKI
parents: 21
diff changeset
39 {
9fd57b7c6adb added Either
Shoshi TAMAKI
parents: 21
diff changeset
40 return log;
9fd57b7c6adb added Either
Shoshi TAMAKI
parents: 21
diff changeset
41 }
29
53090dc21231 added Commitment
Shoshi TAMAKI
parents: 28
diff changeset
42
103
bed3afd5c2e2 add Index but Not use
one
parents: 92
diff changeset
43 @Override
92
14ce7a0dedca Logging Node and Editor
one
parents: 78
diff changeset
44 public TreeNode getWrap()
29
53090dc21231 added Commitment
Shoshi TAMAKI
parents: 28
diff changeset
45 {
53090dc21231 added Commitment
Shoshi TAMAKI
parents: 28
diff changeset
46 return wrap;
53090dc21231 added Commitment
Shoshi TAMAKI
parents: 28
diff changeset
47 }
103
bed3afd5c2e2 add Index but Not use
one
parents: 92
diff changeset
48
bed3afd5c2e2 add Index but Not use
one
parents: 92
diff changeset
49 @Override
108
one
parents: 103
diff changeset
50 public TreeMap<String,TreeMap<String, List<TreeNode>>> getIndex() {
103
bed3afd5c2e2 add Index but Not use
one
parents: 92
diff changeset
51 return null;
bed3afd5c2e2 add Index but Not use
one
parents: 92
diff changeset
52 }
21
848f73545c4d add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff changeset
53 }