annotate src/alice/test/codesegment/api/FlipCodeSegment.java @ 198:f151dea22b2c working

add flip api
author sugi
date Tue, 19 Mar 2013 01:25:09 +0900
parents
children 15b68b65f8a4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
198
f151dea22b2c add flip api
sugi
parents:
diff changeset
1 package alice.test.codesegment.api;
f151dea22b2c add flip api
sugi
parents:
diff changeset
2
f151dea22b2c add flip api
sugi
parents:
diff changeset
3 import alice.codesegment.CodeSegment;
f151dea22b2c add flip api
sugi
parents:
diff changeset
4
f151dea22b2c add flip api
sugi
parents:
diff changeset
5 public class FlipCodeSegment extends CodeSegment{
f151dea22b2c add flip api
sugi
parents:
diff changeset
6
f151dea22b2c add flip api
sugi
parents:
diff changeset
7 private String key;
f151dea22b2c add flip api
sugi
parents:
diff changeset
8 public FlipCodeSegment(String _key){
f151dea22b2c add flip api
sugi
parents:
diff changeset
9 this.key = _key;
f151dea22b2c add flip api
sugi
parents:
diff changeset
10 }
f151dea22b2c add flip api
sugi
parents:
diff changeset
11
f151dea22b2c add flip api
sugi
parents:
diff changeset
12 @Override
f151dea22b2c add flip api
sugi
parents:
diff changeset
13 public void run() {
f151dea22b2c add flip api
sugi
parents:
diff changeset
14 Integer num = new Integer(0);
f151dea22b2c add flip api
sugi
parents:
diff changeset
15 ods.put(key, num, false);
f151dea22b2c add flip api
sugi
parents:
diff changeset
16 //System.out.println("Key is " +key);
f151dea22b2c add flip api
sugi
parents:
diff changeset
17 new FlipTest(key);
f151dea22b2c add flip api
sugi
parents:
diff changeset
18 //for (int i = 0; i < 1000000; i++){
f151dea22b2c add flip api
sugi
parents:
diff changeset
19 //ods.put(key, num, false);
f151dea22b2c add flip api
sugi
parents:
diff changeset
20 //System.out.println("put");
f151dea22b2c add flip api
sugi
parents:
diff changeset
21 //}
f151dea22b2c add flip api
sugi
parents:
diff changeset
22
f151dea22b2c add flip api
sugi
parents:
diff changeset
23
f151dea22b2c add flip api
sugi
parents:
diff changeset
24 }
f151dea22b2c add flip api
sugi
parents:
diff changeset
25
f151dea22b2c add flip api
sugi
parents:
diff changeset
26 }