annotate Paper/src/StartCGExample.java @ 14:d76af2a472b9

update Christie chapter
author riono <e165729@ie.u-ryukyu.ac.jp>
date Thu, 27 Jan 2022 02:00:35 +0900
parents e40d7a603b3f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
13
e40d7a603b3f update Christie chapter
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 public class StartCGExample extends StartCodeGear {
e40d7a603b3f update Christie chapter
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 public StartCGExample(CodeGearManager cgm) { super(cgm); }
e40d7a603b3f update Christie chapter
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
e40d7a603b3f update Christie chapter
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 public static void main(String args[]) {
14
d76af2a472b9 update Christie chapter
riono <e165729@ie.u-ryukyu.ac.jp>
parents: 13
diff changeset
5 StartCGExample start = StartCGExample(createCGM(10001));
d76af2a472b9 update Christie chapter
riono <e165729@ie.u-ryukyu.ac.jp>
parents: 13
diff changeset
6 }
d76af2a472b9 update Christie chapter
riono <e165729@ie.u-ryukyu.ac.jp>
parents: 13
diff changeset
7
d76af2a472b9 update Christie chapter
riono <e165729@ie.u-ryukyu.ac.jp>
parents: 13
diff changeset
8 @Override
d76af2a472b9 update Christie chapter
riono <e165729@ie.u-ryukyu.ac.jp>
parents: 13
diff changeset
9 protected void run(CodeGearManager cgm) {
13
e40d7a603b3f update Christie chapter
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 cgm.setup(new CodeGearExample());
e40d7a603b3f update Christie chapter
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 CountObject count = new CountObject(1);
14
d76af2a472b9 update Christie chapter
riono <e165729@ie.u-ryukyu.ac.jp>
parents: 13
diff changeset
12 put("count", count);
13
e40d7a603b3f update Christie chapter
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 }
e40d7a603b3f update Christie chapter
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 }