Mercurial > hg > Database > jungle-network
changeset 61:e871e8fc3f69
added aliceInstall.sh
author | one |
---|---|
date | Mon, 15 Jul 2013 18:26:10 +0900 |
parents | ea858089fbd9 |
children | 85bc7416ae02 |
files | aliceInstall.sh src/jungle/test/bbs/transformer/MergeBBS.java src/jungle/test/codesegment/local/HasFieldCodeSegment.java src/jungle/test/codesegment/local/StartLocalCodeSegment.java |
diffstat | 4 files changed, 58 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/aliceInstall.sh Mon Jul 15 18:26:10 2013 +0900 @@ -0,0 +1,2 @@ +#!/bin/sh +mvn install:install-file -Dfile=$WORKSPACE_PATH/Alice/Alice.jar -DgroupId=alice -DartifactId=alice -Dversion=0.1 -Dpackagin=jar \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/jungle/test/bbs/transformer/MergeBBS.java Mon Jul 15 18:26:10 2013 +0900 @@ -0,0 +1,22 @@ +package jungle.test.bbs.transformer; + +import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.trasnformer.EditableNode; +import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.trasnformer.NodeEditor; +import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Either; +import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Error; + +public class MergeBBS implements NodeEditor { + + + public MergeBBS() { + + } + + @Override + public <T extends EditableNode<T>> Either<Error,T> edit(T _e) + { + return _e.getChildren().deleteChildAt(0); + } + + +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/jungle/test/codesegment/local/HasFieldCodeSegment.java Mon Jul 15 18:26:10 2013 +0900 @@ -0,0 +1,23 @@ +package jungle.test.codesegment.local; + +import alice.codesegment.CodeSegment; +import alice.datasegment.CommandType; +import alice.datasegment.Receiver; + +public class HasFieldCodeSegment extends CodeSegment { + + Receiver arg1 = ids.create(CommandType.TAKE); + String str; + + public HasFieldCodeSegment(String s) { + str = s; + } + + + public void run() { + int count = arg1.asInteger(); + System.out.println("-HasFieldCodeSegment- : "+str); + System.exit(0); + } + +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/jungle/test/codesegment/local/StartLocalCodeSegment.java Mon Jul 15 18:26:10 2013 +0900 @@ -0,0 +1,11 @@ +package jungle.test.codesegment.local; + +public class StartLocalCodeSegment { + + public static void main(String[] arg) { + HasFieldCodeSegment cs = new HasFieldCodeSegment("test"); + cs.arg1.setKey("count"); + cs.ods.update("count", 0); + } + +}