198
|
1 package alice.test.codesegment.api;
|
|
2
|
|
3 import alice.codesegment.CodeSegment;
|
|
4 import alice.datasegment.CommandType;
|
|
5 import alice.datasegment.Receiver;
|
|
6
|
|
7 public class FlipTest extends CodeSegment{
|
|
8
|
|
9 private Receiver arg1 = ids.create(CommandType.PEEK);
|
|
10 public static long t = 0;
|
|
11 public static boolean flag = false;
|
|
12 public static int count = 0;
|
|
13
|
|
14 public FlipTest(String key){
|
|
15 arg1.setKey(key);
|
|
16 }
|
|
17
|
|
18 public FlipTest(String key, int index){
|
|
19 arg1.setKey(key, index);
|
|
20 }
|
|
21
|
|
22 @Override
|
|
23 public void run() {
|
205
|
24
|
198
|
25 }
|
|
26
|
205
|
27
|
198
|
28 }
|