annotate src/alice/test/codesegment/local/TestCodeSegment.java @ 192:a8b0d44bbe68 working

not use value object in bitonic
author e095732
date Thu, 07 Mar 2013 22:20:54 +0900
parents a85ff8dc16c1
children caee170e6cfa
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
22
2ca2d961a8d2 implements outline of TopologyManager
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 19
diff changeset
1 package alice.test.codesegment.local;
3
91057e15065f add DataSegment API and CodeSegment
one
parents:
diff changeset
2
91057e15065f add DataSegment API and CodeSegment
one
parents:
diff changeset
3 import alice.codesegment.CodeSegment;
18
72dd27d952b0 change InputDataSegment API
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
4 import alice.datasegment.CommandType;
33
20c67f673224 change name of DataSegmentReceiver
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 32
diff changeset
5 import alice.datasegment.Receiver;
192
a8b0d44bbe68 not use value object in bitonic
e095732
parents: 190
diff changeset
6 import alice.test.codesegment.local.bitonicsort.DataList;
3
91057e15065f add DataSegment API and CodeSegment
one
parents:
diff changeset
7
91057e15065f add DataSegment API and CodeSegment
one
parents:
diff changeset
8 public class TestCodeSegment extends CodeSegment {
91057e15065f add DataSegment API and CodeSegment
one
parents:
diff changeset
9
119
f84e1684c6be put NULL in CS
sugi
parents: 107
diff changeset
10 static int count = 0;
f84e1684c6be put NULL in CS
sugi
parents: 107
diff changeset
11
57
7fa9ddb31f64 add comment
one
parents: 34
diff changeset
12 // create input datasegment arg1
182
52a1fa5ba38b add filp api
e095732
parents: 175
diff changeset
13 Receiver arg1 = ids.create(CommandType.PEEK);
97
df786bf8f036 add FishPoint.java and Test
sugi
parents: 71
diff changeset
14 public TestCodeSegment(){
df786bf8f036 add FishPoint.java and Test
sugi
parents: 71
diff changeset
15 arg1.setKey("key1");
df786bf8f036 add FishPoint.java and Test
sugi
parents: 71
diff changeset
16 }
df786bf8f036 add FishPoint.java and Test
sugi
parents: 71
diff changeset
17 public TestCodeSegment(int index){
df786bf8f036 add FishPoint.java and Test
sugi
parents: 71
diff changeset
18 arg1.setKey("key1",index);
df786bf8f036 add FishPoint.java and Test
sugi
parents: 71
diff changeset
19 }
16
433e601a8e28 network bug fix
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 13
diff changeset
20
3
91057e15065f add DataSegment API and CodeSegment
one
parents:
diff changeset
21 @Override
91057e15065f add DataSegment API and CodeSegment
one
parents:
diff changeset
22 public void run() {
192
a8b0d44bbe68 not use value object in bitonic
e095732
parents: 190
diff changeset
23 if(count > 0){
182
52a1fa5ba38b add filp api
e095732
parents: 175
diff changeset
24 System.out.println(System.currentTimeMillis() - StartCodeSegment.t);
52a1fa5ba38b add filp api
e095732
parents: 175
diff changeset
25 System.exit(1);
52a1fa5ba38b add filp api
e095732
parents: 175
diff changeset
26 }
192
a8b0d44bbe68 not use value object in bitonic
e095732
parents: 190
diff changeset
27 DataList list = (DataList)arg1.obj;
a8b0d44bbe68 not use value object in bitonic
e095732
parents: 190
diff changeset
28 System.out.println("ssss"+list.table);
190
a85ff8dc16c1 add Object data
one
parents: 184
diff changeset
29 //System.out.println(arg1.val);
150
206c7dd9cb48 remove version alpha beta
sugi
parents: 134
diff changeset
30
183
75150396681c use synchronizedList
e095732
parents: 182
diff changeset
31 //ods.update("key1",arg1.asInteger()+1);
169
16418c2c3e72 minor change
sugi
parents: 150
diff changeset
32 new TestCodeSegment();
184
4475ba30238f minor change
e095732
parents: 183
diff changeset
33
169
16418c2c3e72 minor change
sugi
parents: 150
diff changeset
34 //new TestCodeSegment(arg1.index);
16418c2c3e72 minor change
sugi
parents: 150
diff changeset
35
182
52a1fa5ba38b add filp api
e095732
parents: 175
diff changeset
36 count++;
57
7fa9ddb31f64 add comment
one
parents: 34
diff changeset
37 // DataSegment.get("local").update
169
16418c2c3e72 minor change
sugi
parents: 150
diff changeset
38 //ods.update("local", "key1", arg1.index);
119
f84e1684c6be put NULL in CS
sugi
parents: 107
diff changeset
39
3
91057e15065f add DataSegment API and CodeSegment
one
parents:
diff changeset
40 }
91057e15065f add DataSegment API and CodeSegment
one
parents:
diff changeset
41
91057e15065f add DataSegment API and CodeSegment
one
parents:
diff changeset
42 }