Mercurial > hg > Members > nobuyasu > jungle-network
view 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 |
line wrap: on
line source
package jungle.test.codesegment.operation; import java.io.IOException; import java.nio.ByteBuffer; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.JungleTree; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.JungleTreeEditor; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.DefaultNodePath; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.operations.DefaultTreeOperation; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.operations.PutAttributeOperation; import jungle.app.bbs.JungleManager; import alice.codesegment.CodeSegment; import alice.jungle.datasegment.store.container.DefaultTreeOperationContainer; public class StartJungleCodeSegment { public static void main(String[] args) { System.out.println("--StartJungleCodeSegment--"); JungleTree tree = JungleManager.createNewTree("tree"); JungleTreeEditor editor = tree.getTreeEditor(); DefaultNodePath path = new DefaultNodePath(); path = path.add(0); editor.addNewChildAt(path, 0); editor.success(); TestPutAttributeCodeSegment cs = new TestPutAttributeCodeSegment(); DefaultTreeOperation treeOp = cs.getSampleOperation("message0"); DefaultTreeOperationContainer treeOperationContainer = new DefaultTreeOperationContainer(); try { treeOperationContainer.unconvert(treeOp); } catch (IOException e) { e.printStackTrace(); } cs.ods.update("local", "log", treeOperationContainer); } }