Mercurial > hg > Members > nobuyasu > jungle-network
annotate src/jungle/test/codesegment/operation/StartJungleCodeSegment.java @ 75:87ec5dd0dc27
Rename from alice.jungle.datasegment.store.operation to alice.jungle.datasegment.store.container
author | one |
---|---|
date | Tue, 15 Oct 2013 14:43:29 +0900 |
parents | 29127ac788a6 |
children |
rev | line source |
---|---|
27 | 1 package jungle.test.codesegment.operation; |
15 | 2 |
17
c767e7af4d88
add TestPutAttributeCodeSegmnet and StartJungleCodeSegment
one
parents:
16
diff
changeset
|
3 import java.io.IOException; |
c767e7af4d88
add TestPutAttributeCodeSegmnet and StartJungleCodeSegment
one
parents:
16
diff
changeset
|
4 import java.nio.ByteBuffer; |
c767e7af4d88
add TestPutAttributeCodeSegmnet and StartJungleCodeSegment
one
parents:
16
diff
changeset
|
5 |
16 | 6 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.JungleTree; |
20 | 7 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.JungleTreeEditor; |
17
c767e7af4d88
add TestPutAttributeCodeSegmnet and StartJungleCodeSegment
one
parents:
16
diff
changeset
|
8 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.DefaultNodePath; |
c767e7af4d88
add TestPutAttributeCodeSegmnet and StartJungleCodeSegment
one
parents:
16
diff
changeset
|
9 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.operations.DefaultTreeOperation; |
c767e7af4d88
add TestPutAttributeCodeSegmnet and StartJungleCodeSegment
one
parents:
16
diff
changeset
|
10 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.operations.PutAttributeOperation; |
66 | 11 import jungle.app.bbs.JungleManager; |
15 | 12 import alice.codesegment.CodeSegment; |
75
87ec5dd0dc27
Rename from alice.jungle.datasegment.store.operation to alice.jungle.datasegment.store.container
one
parents:
66
diff
changeset
|
13 import alice.jungle.datasegment.store.container.DefaultTreeOperationContainer; |
15 | 14 |
15 public class StartJungleCodeSegment { | |
16 | |
17 public static void main(String[] args) { | |
18 | 18 System.out.println("--StartJungleCodeSegment--"); |
19 | |
45 | 20 JungleTree tree = JungleManager.createNewTree("tree"); |
20 | 21 JungleTreeEditor editor = tree.getTreeEditor(); |
22 DefaultNodePath path = new DefaultNodePath(); | |
23 path = path.add(0); | |
24 editor.addNewChildAt(path, 0); | |
25 editor.success(); | |
26 | |
18 | 27 TestPutAttributeCodeSegment cs = new TestPutAttributeCodeSegment(); |
19 | 28 DefaultTreeOperation treeOp = cs.getSampleOperation("message0"); |
17
c767e7af4d88
add TestPutAttributeCodeSegmnet and StartJungleCodeSegment
one
parents:
16
diff
changeset
|
29 DefaultTreeOperationContainer treeOperationContainer = new DefaultTreeOperationContainer(); |
c767e7af4d88
add TestPutAttributeCodeSegmnet and StartJungleCodeSegment
one
parents:
16
diff
changeset
|
30 try { |
c767e7af4d88
add TestPutAttributeCodeSegmnet and StartJungleCodeSegment
one
parents:
16
diff
changeset
|
31 treeOperationContainer.unconvert(treeOp); |
c767e7af4d88
add TestPutAttributeCodeSegmnet and StartJungleCodeSegment
one
parents:
16
diff
changeset
|
32 } catch (IOException e) { |
c767e7af4d88
add TestPutAttributeCodeSegmnet and StartJungleCodeSegment
one
parents:
16
diff
changeset
|
33 e.printStackTrace(); |
c767e7af4d88
add TestPutAttributeCodeSegmnet and StartJungleCodeSegment
one
parents:
16
diff
changeset
|
34 } |
c767e7af4d88
add TestPutAttributeCodeSegmnet and StartJungleCodeSegment
one
parents:
16
diff
changeset
|
35 cs.ods.update("local", "log", treeOperationContainer); |
15 | 36 } |
20 | 37 |
15 | 38 } |