Mercurial > hg > Members > tatsuki > Alice
comparison src/alice/codesegment/InputDataSegment.java @ 218:d50cddf64396 working
TestRemoteAlice works
author | sugi |
---|---|
date | Wed, 27 Mar 2013 20:35:08 +0900 |
parents | b5daccf36104 |
children | 913ee9dfec4f |
comparison
equal
deleted
inserted
replaced
217:b5c642ba998e | 218:d50cddf64396 |
---|---|
57 } | 57 } |
58 | 58 |
59 public void reply(Receiver receiver, Command reply) { | 59 public void reply(Receiver receiver, Command reply) { |
60 receiver.index = reply.index; | 60 receiver.index = reply.index; |
61 receiver.from = reply.reverseKey; | 61 receiver.from = reply.reverseKey; |
62 if (!reply.reverseKey.equals("local")) { | 62 if (reply.reverseKey==null){ |
63 receiver.setData(new ReceiveRemoteData(reply.val)); | |
64 } else if (!reply.reverseKey.equals("local")) { | |
63 receiver.setData(new ReceiveRemoteData(reply.val)); | 65 receiver.setData(new ReceiveRemoteData(reply.val)); |
64 } else { | 66 } else { |
65 receiver.setData(new ReceiveLocalData(reply.obj)); | 67 receiver.setData(new ReceiveLocalData(reply.obj)); |
66 } | 68 } |
67 receive(); | 69 receive(); |
68 } | 70 } |
69 | 71 |
70 public void regist() { | 72 public void regist() { |