annotate src/main/java/alice/test/topology/aquarium/TakePnum.java @ 467:6e304a7a60e7 dispose

remove white space
author sugi
date Sat, 22 Nov 2014 12:08:24 +0900
parents aefbe41fcf12
children e91a574b69de
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
345
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
1 package alice.test.topology.aquarium;
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
2
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
3 import alice.codesegment.CodeSegment;
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
4 import alice.datasegment.CommandType;
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
5 import alice.datasegment.Receiver;
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
6
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
7 public class TakePnum extends CodeSegment {
419
aefbe41fcf12 change tab to space
sugi
parents: 345
diff changeset
8 // this CodeSegment has bug
aefbe41fcf12 change tab to space
sugi
parents: 345
diff changeset
9
aefbe41fcf12 change tab to space
sugi
parents: 345
diff changeset
10 private Receiver pnum = ids.create(CommandType.TAKE);
aefbe41fcf12 change tab to space
sugi
parents: 345
diff changeset
11 private Receiver mynum;
345
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
12
419
aefbe41fcf12 change tab to space
sugi
parents: 345
diff changeset
13 public TakePnum(Receiver data){
aefbe41fcf12 change tab to space
sugi
parents: 345
diff changeset
14 this.pnum.setKey("parent", "num");
aefbe41fcf12 change tab to space
sugi
parents: 345
diff changeset
15 this.mynum = data;
aefbe41fcf12 change tab to space
sugi
parents: 345
diff changeset
16 }
aefbe41fcf12 change tab to space
sugi
parents: 345
diff changeset
17
aefbe41fcf12 change tab to space
sugi
parents: 345
diff changeset
18 @Override
aefbe41fcf12 change tab to space
sugi
parents: 345
diff changeset
19 public void run() {
467
6e304a7a60e7 remove white space
sugi
parents: 419
diff changeset
20 ods.update("parent", "num",
419
aefbe41fcf12 change tab to space
sugi
parents: 345
diff changeset
21 this.pnum.asInteger()+this.mynum.asInteger());
aefbe41fcf12 change tab to space
sugi
parents: 345
diff changeset
22 }
345
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
23
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
24 }