Mercurial > hg > Database > jungle-network
changeset 15:bf4a7f899c4e
add some files
author | one |
---|---|
date | Thu, 27 Jun 2013 21:10:10 +0900 |
parents | 6dc6b25021a3 |
children | d2436fd71c61 |
files | src/jungle/test/codesegment/log/practice/TestCodeSegment.java src/jungle/test/codesegment/practice/CodeSegmentJournal.java src/jungle/test/codesegment/practice/JungleManager.java src/jungle/test/codesegment/practice/StartJungleCodeSegment.java |
diffstat | 4 files changed, 59 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/jungle/test/codesegment/log/practice/TestCodeSegment.java Thu Jun 27 21:04:33 2013 +0900 +++ b/src/jungle/test/codesegment/log/practice/TestCodeSegment.java Thu Jun 27 21:10:10 2013 +0900 @@ -32,14 +32,11 @@ public class TestCodeSegment extends CodeSegment { - static Jungle jungle = new NetworkDefaultJungle(null,"hoge",new DefaultTreeEditor(new DefaultTraverser())); - // create input datasegment arg1 Receiver arg1 = ids.create(CommandType.PEEK); public TestCodeSegment() { arg1.setKey("log"); - jungle.createNewTree("tree"); } @Override
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/jungle/test/codesegment/practice/CodeSegmentJournal.java Thu Jun 27 21:10:10 2013 +0900 @@ -0,0 +1,20 @@ +package jungle.test.codesegment.practice; + +import alice.codesegment.CodeSegment; +import alice.datasegment.CommandType; +import alice.datasegment.Receiver; + +public class CodeSegmentJournal extends CodeSegment { + + Receiver arg1 = ids.create(CommandType.PEEK); + + @Override + public void run() { + + + } + + + + +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/jungle/test/codesegment/practice/JungleManager.java Thu Jun 27 21:10:10 2013 +0900 @@ -0,0 +1,26 @@ +package jungle.test.codesegment.practice; + +import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.Jungle; +import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.JungleTree; +import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.DefaultTreeEditor; +import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.traverser.DefaultTraverser; +import jungle.test.core.NetworkDefaultJungle; + +public class JungleManager { + + static Jungle jungle = new NetworkDefaultJungle(null,"hoge",new DefaultTreeEditor(new DefaultTraverser())); + + public JungleManager() { + + } + + public Jungle getJungle() { + return jungle; + } + + public JungleTree createTree(String name) { + return jungle.createNewTree(name); + } + + +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/jungle/test/codesegment/practice/StartJungleCodeSegment.java Thu Jun 27 21:10:10 2013 +0900 @@ -0,0 +1,13 @@ +package jungle.test.codesegment.practice; + +import alice.codesegment.CodeSegment; + +public class StartJungleCodeSegment { + + public static void main(String[] args) { + CodeSegmentJournal cs = new CodeSegmentJournal(); + + + } + +}