annotate Paper/src/HelloWorldCodeGear.java @ 10:7573c185aecf

add impl
author ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
date Tue, 25 Jan 2022 22:27:17 +0900
parents e950b7aaeeaa
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
e950b7aaeeaa add about Christie
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 package christie.example.HelloWorld;
e950b7aaeeaa add about Christie
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
e950b7aaeeaa add about Christie
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 import christie.annotation.Peek;
e950b7aaeeaa add about Christie
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 import christie.annotation.Take;
e950b7aaeeaa add about Christie
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 import christie.codegear.CodeGear;
e950b7aaeeaa add about Christie
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 import christie.codegear.CodeGearManager;
e950b7aaeeaa add about Christie
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7
e950b7aaeeaa add about Christie
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 public class HelloWorldCodeGear extends CodeGear {
e950b7aaeeaa add about Christie
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9
e950b7aaeeaa add about Christie
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 \@Take
e950b7aaeeaa add about Christie
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 String helloWorld;
e950b7aaeeaa add about Christie
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12
e950b7aaeeaa add about Christie
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 @Override
e950b7aaeeaa add about Christie
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 protected void run(CodeGearManager cgm) {
e950b7aaeeaa add about Christie
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 System.out.print(helloWorld + " ");
e950b7aaeeaa add about Christie
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 cgm.setup(new HelloWorldCodeGear());
e950b7aaeeaa add about Christie
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 cgm.getLocalDGM().put(helloWorld,helloWorld);
e950b7aaeeaa add about Christie
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 }
e950b7aaeeaa add about Christie
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 }