comparison src/main/java/alice/test/topology/ring/RingFinish.java @ 419:aefbe41fcf12 dispose

change tab to space
author sugi
date Tue, 15 Jul 2014 16:00:22 +0900
parents 8f71c3e6f11d
children
comparison
equal deleted inserted replaced
418:a269a019f5f8 419:aefbe41fcf12
5 import alice.codesegment.CodeSegment; 5 import alice.codesegment.CodeSegment;
6 import alice.datasegment.CommandType; 6 import alice.datasegment.CommandType;
7 import alice.datasegment.Receiver; 7 import alice.datasegment.Receiver;
8 8
9 public class RingFinish extends CodeSegment { 9 public class RingFinish extends CodeSegment {
10
11 private String sendKey;
12 public Receiver finish = ids.create(CommandType.TAKE);
13
14 public RingFinish(String sendKey) {
15 this.sendKey = sendKey;
16 }
17 10
18 @Override 11 private String sendKey;
19 public void run() { 12 public Receiver finish = ids.create(CommandType.TAKE);
20 ods.put(sendKey, "finish", ValueFactory.createNilValue()); 13
21 ods.finish(sendKey); 14 public RingFinish(String sendKey) {
22 } 15 this.sendKey = sendKey;
16 }
17
18 @Override
19 public void run() {
20 ods.put(sendKey, "finish", ValueFactory.createNilValue());
21 ods.finish(sendKey);
22 }
23 23
24 } 24 }