Mercurial > hg > Database > Christie
changeset 136:08bd1ecbafc1
update example HelloWorld
author | ichikitakahiro <e165713@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 28 Dec 2018 17:51:09 +0900 |
parents | cf00c3cd7672 |
children | cb2a15d5c915 |
files | src/test/java/christie/example/HelloWorld/HelloWorldCodeGear.java src/test/java/christie/example/HelloWorld/StartHelloWorld.java |
diffstat | 2 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/test/java/christie/example/HelloWorld/HelloWorldCodeGear.java Fri Dec 28 17:40:03 2018 +0900 +++ b/src/test/java/christie/example/HelloWorld/HelloWorldCodeGear.java Fri Dec 28 17:51:09 2018 +0900 @@ -7,12 +7,11 @@ public class HelloWorldCodeGear extends CodeGear { @Take - String hello; - @Take - String world; + String helloWorld; @Override protected void run(CodeGearManager cgm) { - System.out.println(hello + " " + world); + System.out.print(helloWorld + " "); + cgm.setup(new HelloWorldCodeGear()); } }
--- a/src/test/java/christie/example/HelloWorld/StartHelloWorld.java Fri Dec 28 17:40:03 2018 +0900 +++ b/src/test/java/christie/example/HelloWorld/StartHelloWorld.java Fri Dec 28 17:51:09 2018 +0900 @@ -12,7 +12,7 @@ public static void main(String[] args){ CodeGearManager cgm = createCGM(10000); cgm.setup(new HelloWorldCodeGear()); - cgm.getLocalDGM().put("hello","hello"); - cgm.getLocalDGM().put("world", "world"); + cgm.getLocalDGM().put("helloWorld","hello"); + cgm.getLocalDGM().put("helloWorld","world"); } }