changeset 19:88508b9cb03f

organizing src directory
author riono <e165729@ie.u-ryukyu.ac.jp>
date Sat, 29 Jan 2022 15:18:09 +0900
parents 54229d70b7b3
children d550ccb7f803
files Paper/master_paper.pdf Paper/src/CodeGearExample.java Paper/src/CountObject.java Paper/src/InputDG.java Paper/src/RemoteDGMCommunication.java Paper/src/StartCGExample.java Paper/src/Take.java Paper/src/cs/Take.cs Paper/src/cs/TakeExample.cs Paper/src/java/CodeGearExample.java Paper/src/java/CountObject.java Paper/src/java/InputDG.java Paper/src/java/RemoteDGMCommunication.java Paper/src/java/StartCGExample.java Paper/src/java/Take.java Paper/src/java/TakeExample.java Paper/src/java/TakeFromExample.java
diffstat 16 files changed, 69 insertions(+), 63 deletions(-) [+]
line wrap: on
line diff
Binary file Paper/master_paper.pdf has changed
--- a/Paper/src/CodeGearExample.java	Sat Jan 29 15:11:07 2022 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-public class CodeGearExample extends CodeGear {
-    @Take
-    public CountObject count;
-
-    @Override
-    protected void run(CodeGearManager cgm) {
-        System.out.println(count);
-        
-        if (count < 10) {
-            cgm.setup(new CodeGearExample());
-            count.number += 1;
-            put("count", count);
-        } else {
-            cgm.getLocalDGM().finish();
-        }
-    }
-}
--- a/Paper/src/CountObject.java	Sat Jan 29 15:11:07 2022 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,8 +0,0 @@
-@Message
-public class CountObject {
-    public int number;
-
-    public CountObject(int number) {
-        this.number = number;
-    }
-}
--- a/Paper/src/InputDG.java	Sat Jan 29 15:11:07 2022 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-public class GetData extends CodeGear {
-    @Take
-    public String name;
-
-    @Override
-    protected void run(CodeGearManager cgm) {
-        System.out.println("This name is:" + name);
-    }
-}
\ No newline at end of file
--- a/Paper/src/RemoteDGMCommunication.java	Sat Jan 29 15:11:07 2022 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-public class StartRemoteTake {
-    public StartRemoteTake(CodeGearManager cgm) { super(cgm); }
-    
-    public static void main(String args[]) {
-        CodeGearManager cgm1 = createCGM(10001);
-        cgm1.createRemoteDGM("cgm2", "localhost", 10002);
-        cgm1.setup(new RemoteTakeTest());
-
-        CodeGearManager cgm2 = createCGM(10002);
-        cgm2.createRemoteDGM("cgm1", "localhost", 10001);
-        cgm2.setpu(new RemoteTakeTest());
-    }
-}
--- a/Paper/src/StartCGExample.java	Sat Jan 29 15:11:07 2022 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-public class StartCGExample extends StartCodeGear {
-    public StartCGExample(CodeGearManager cgm) { super(cgm); }
-
-    public static void main(String args[]) {
-        StartCGExample start = StartCGExample(createCGM(10001));
-    }
-    
-    @Override
-    protected void run(CodeGearManager cgm) {
-        cgm.setup(new CodeGearExample());
-        CountObject count = new CountObject(1);
-        put("count", count);
-    }
-}
\ No newline at end of file
--- a/Paper/src/Take.java	Sat Jan 29 15:11:07 2022 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-@Take
-public String data;
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Paper/src/cs/Take.cs	Sat Jan 29 15:18:09 2022 +0900
@@ -0,0 +1,2 @@
+[AttributeUnsage(AttributeTargets.Field)]
+public class Take : Attribute {}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Paper/src/java/CodeGearExample.java	Sat Jan 29 15:18:09 2022 +0900
@@ -0,0 +1,17 @@
+public class CodeGearExample extends CodeGear {
+    @Take
+    public CountObject count;
+
+    @Override
+    protected void run(CodeGearManager cgm) {
+        System.out.println(count);
+        
+        if (count < 10) {
+            cgm.setup(new CodeGearExample());
+            count.number += 1;
+            put("count", count);
+        } else {
+            cgm.getLocalDGM().finish();
+        }
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Paper/src/java/CountObject.java	Sat Jan 29 15:18:09 2022 +0900
@@ -0,0 +1,8 @@
+@Message
+public class CountObject {
+    public int number;
+
+    public CountObject(int number) {
+        this.number = number;
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Paper/src/java/InputDG.java	Sat Jan 29 15:18:09 2022 +0900
@@ -0,0 +1,9 @@
+public class GetData extends CodeGear {
+    @Take
+    public String name;
+
+    @Override
+    protected void run(CodeGearManager cgm) {
+        System.out.println("This name is:" + name);
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Paper/src/java/RemoteDGMCommunication.java	Sat Jan 29 15:18:09 2022 +0900
@@ -0,0 +1,13 @@
+public class StartRemoteTake {
+    public StartRemoteTake(CodeGearManager cgm) { super(cgm); }
+    
+    public static void main(String args[]) {
+        CodeGearManager cgm1 = createCGM(10001);
+        cgm1.createRemoteDGM("cgm2", "localhost", 10002);
+        cgm1.setup(new RemoteTakeTest());
+
+        CodeGearManager cgm2 = createCGM(10002);
+        cgm2.createRemoteDGM("cgm1", "localhost", 10001);
+        cgm2.setpu(new RemoteTakeTest());
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Paper/src/java/StartCGExample.java	Sat Jan 29 15:18:09 2022 +0900
@@ -0,0 +1,14 @@
+public class StartCGExample extends StartCodeGear {
+    public StartCGExample(CodeGearManager cgm) { super(cgm); }
+
+    public static void main(String args[]) {
+        StartCGExample start = StartCGExample(createCGM(10001));
+    }
+    
+    @Override
+    protected void run(CodeGearManager cgm) {
+        cgm.setup(new CodeGearExample());
+        CountObject count = new CountObject(1);
+        put("count", count);
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Paper/src/java/Take.java	Sat Jan 29 15:18:09 2022 +0900
@@ -0,0 +1,2 @@
+@Take
+public String data;
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Paper/src/java/TakeExample.java	Sat Jan 29 15:18:09 2022 +0900
@@ -0,0 +1,2 @@
+@Take
+public String data;
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Paper/src/java/TakeFromExample.java	Sat Jan 29 15:18:09 2022 +0900
@@ -0,0 +1,2 @@
+@TakeFrom("remote_name")
+public String data;
\ No newline at end of file